Jump to content

Edit History

Hello @VillanyLeo,

To hide a specific manufacturer from the price-drop page, follow these steps:

Step 1: Locate the manufacturer's ID in the PrestaShop back office.
Step 2: In the getPricesDrop function within the classes/Product.php file, create a variable named $excludeManufacturerID and assign it a value like ('1','2'), replacing these IDs with the ones you want to exclude.
Step 3: Now, add the following line of code to the same function, as shown in the screenshot: https://app.screencast.com/jMpThUeyasI42

AND p.`id_manufacturer` NOT IN '.$excludeManufacturerID.'

 

Hello,

To hide a specific manufacturer from the price-drop page, follow these steps:

Step 1: Locate the manufacturer's ID in the PrestaShop back office.
Step 2: In the getPricesDrop function within the classes/Product.php file, create a variable named $excludeManufacturerID and assign it a value like ('1','2'), replacing these IDs with the ones you want to exclude.
Step 3: Now, add the following line of code to the same function, as shown in the screenshot: https://app.screencast.com/jMpThUeyasI42

AND p.`id_manufacturer` NOT IN '.$excludeManufacturerID.'

×
×
  • Create New...