What's New
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.
Hi Dear ,
how can I change the product categories slider, special products slider , new products slider and best seller product slider, that the sliders don’t display the products with quantity equal 0?
The code above that you guided don’t working for me ! please send me a correct code for prestashop 1.6.1.5 .
Can u help me to hide products with quantity equal 0 from homepage only without module ?
Thanks
Prestashop Version : 1.6.1.5
WebSite: digido.ir
Hi,
Please use the module: https://www.sunnytoo.com/31746/hiding-stock-products-free-prestashop-module
Best regards.
Hi,
Please see the topic: https://www.sunnytoo.com/forums/topic/how-to-hide-the-products-with-quantity-equal-0#post-25292
Best regards.
Hi,
It requires to add the following code to the following files:
/modules/sthomenew/sthomenew.php
/modules/stbestsellers/stbestsellers.php
/modules/stspecialslider/stspecialslider.php
/modules/stproductcategoriesslider/stproductcategoriesslider.php
$key =>
if ($product['quantity'] <= 0) {
unset($products[$key]);
continue;
}
See attached screenshot, the screenshot name is the php file name. don’t forget clearing the Smarty cache.
Best regards.
Hi,
Please modify the \modules\sthomenew\sthomenew.php file, change
$products_for_template[] = $presenter->present(
$presentationSettings,
$assembler->assembleProduct($rawProduct),
$this->context->language
);
To
$product = $presenter->present(
$presentationSettings,
$assembler->assembleProduct($rawProduct),
$this->context->language
);
if ($product['quantity'] <= 0) {
continue;
}
$products_for_template[] = $product;
Best regards.
You must be logged in to reply to this topic.