Skip to content

Commit

Permalink
SC-72 : Language synchronization filter disabled (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaraLpresta authored Nov 19, 2024
1 parent f127b8a commit 15de473
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/Repository/ProductRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,11 @@ public function getProductsTotal($shopId, array $options = [])

$sql->innerJoin('product_shop', 'ps', 'ps.id_product = p.id_product');
$sql->innerJoin('product_lang', 'pl', 'pl.id_product = ps.id_product AND pl.id_shop = ps.id_shop');
$sql->innerJoin('lang', 'l', 'l.id_lang = pl.id_lang');
$sql->leftJoin('product_attribute_shop', 'pas', 'pas.id_product = ps.id_product AND pas.id_shop = ps.id_shop');

$sql->where('ps.id_shop = ' . (int) $shopId);
$sql->where('l.active = 1');
if (isset($options['onlyActive'])) {
$sql->where('ps.active = 1');
}
Expand Down

0 comments on commit 15de473

Please sign in to comment.