[Prestashop help] How to modify Price Drop page of Prestashop?
Price Drop page is a default page in Prestashop’s core which display discounted products (it have a valid specific price) to customer. You can go to this page from Footer of Classic theme.
Or you can directly go to prices-drop controller with this URL: http://your-prestashop-store.com/index.php?controller=prices-drop
How to display a product on price drop page?
Prestashop get products that have a valid Specific Price (discounted price) – Today is in range of From – To time of Specific price, sort by product_name from A to Z and list them in price-drop page. Also you can change this duration (20 days) with following:
Go to Catalog > Products > add/edit a product > click Price tab. You can view, add, remove a discounted price of product from Specific prices section.
How to modify products, layout, style of price-drop page?
Products is listing on a new-products page based on the method: Product::getPricesDrop
Step 1: go to classes\Product.php, find method function getPricesDrop
You can view source code for query products that list in new-products page at there.
Step 2: Go to it’s template fie (*.tpl)
- For Prestashop 1.7: go to PRESTASHOP_ROOT\themes\YOUR_THEME\templates\catalog\listing\prices-drop.tpl
- For Prestashop 1.6: Template file is in PRESTASHOP_ROOT\themes\YOUR_THEME\prices-drop.tpl
You can use Smarty language to modify *.tpl template file if you need insert, change HTML tags for customize layout.
Leave a reply
You must be logged in to post a comment.