--- Product.php 2025-06-25 11:48:14.266714154 +0200 +++ www/presta_delatour/classes/Product.php 2025-06-25 11:45:48.110508329 +0200 @@ -3087,10 +3087,11 @@ $sql->where('product_shop.`active` = 1'); if($front) { - $sql->where('product_shop.`visibility` IN ("both", "catalog")'); + $DISPLAY_TYPE=array(1=>'"both","catalog"',2=>'"catalog"',3=>'"both"'); + $visibility_type=(null !==Configuration::get('NEW_PRODUCTS_DISPLAY_TYPE'))?$DISPLAY_TYPE[Configuration::get('NEW_PRODUCTS_DISPLAY_TYPE')]:'"both", "catalog"'; + $sql->where('product_shop.`visibility` IN ('.$visibility_type.')'); } $sql->where('product_shop.`date_add` > "'.date('Y-m-d', strtotime('-'._PS_NB_DAYS_NEW_PRODUCT_.' DAY')).'"'); - if(Group::isFeatureActive()) { $groups = FrontController::getCurrentCustomerGroups(); empty($groups) && ($groups = array((int)Configuration::get('PS_UNIDENTIFIED_GROUP')));