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