@@ 113-117 (lines=5) @@ | ||
110 | return false; |
|
111 | } |
|
112 | } |
|
113 | if (Oledrion_utils::getModuleOption('nostock_display') == 0 && $this->getVar('product_stock') == 0) { |
|
114 | if (!$isAdmin) { |
|
115 | return false; |
|
116 | } |
|
117 | } |
|
118 | ||
119 | return true; |
|
120 | } |
|
@@ 1167-1169 (lines=3) @@ | ||
1164 | if (Oledrion_utils::getModuleOption('show_unpublished') == 0) { // Ne pas afficher les produits qui ne sont pas publiƩs |
|
1165 | $criteria->add(new Criteria('product_submitted', time(), '<=')); |
|
1166 | } |
|
1167 | if (Oledrion_utils::getModuleOption('nostock_display') == 0 |
|
1168 | && !$showAll |
|
1169 | ) { // Se limiter aux seuls produits encore en stock |
|
1170 | $criteria->add(new Criteria('product_stock', 0, '>')); |
|
1171 | } |
|
1172 | $criteria->add(new Criteria('product_id', '(' . implode(',', $ids) . ')', 'IN')); |