[Prestashop help] How to modify Price Drop page of Prestashop?

[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.

price-drop--products-page-2

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.

price-drop--products-page-3

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.

price-drop--products-page-4

Step 2: Go to it’s template fie (*.tpl)

You can use Smarty language to modify *.tpl template file if you need insert, change HTML tags for customize layout.

Related Articles

Leave a reply

You must be logged in to post a comment.