| @@ 40-42 (lines=3) @@ | ||
| 37 | } |
|
| 38 | ||
| 39 | // Le produit est publié ? |
|
| 40 | if (Oledrion_utils::getModuleOption('show_unpublished') == 0 && $product->getVar('product_submitted') > time()) { |
|
| 41 | exit(_OLEDRION_ERROR3); |
|
| 42 | } |
|
| 43 | } else { |
|
| 44 | exit(_ERRORS); |
|
| 45 | } |
|
| @@ 47-49 (lines=3) @@ | ||
| 44 | } |
|
| 45 | ||
| 46 | // Le produit est publié ? |
|
| 47 | if (Oledrion_utils::getModuleOption('show_unpublished') == 0 && $product->getVar('product_submitted') > time()) { |
|
| 48 | Oledrion_utils::redirect(_OLEDRION_ERROR3, 'index.php', 5); |
|
| 49 | } |
|
| 50 | ||
| 51 | // Faut il afficher les produit même lorsqu'ils ne sont plus en stock ? |
|
| 52 | if (Oledrion_utils::getModuleOption('nostock_display') == 0 && $product->getVar('product_stock') == 0) { |
|