Get Free Audit

How to Display Special Prices According to Quantity at the Product List (Category) in Prestashop

Oct 16, 2014

4162 Alex Simonchik

How to Display Special Prices According to Quantity at the Product List (Category) in Prestashop

This article will be useful for those, who are not using multiple special prices in their stores. Using the special price feature you can either simply set a new price for a product or set percent or amount of discount which always attracts customers.

1_How to Display Special Prices According to Quantity at the Product List (Category) in Prestashop

Today we’ll show you how to change the default way of displaying discounts. By default, if we set a new price for 3 products, the product page will contain a block with prices for several items:

2_How to Display Special Prices According to Quantity at the Product List (Category) in Prestashop

But you must agree, that it is better for your customers to see the bulk purchase price near the main price, as well as to display the bulk price on the category page.

So, let’s try to implement our idea! We will need to make changes in the following files:

product-list.tpl:


product.tpl:

Vlad Yunusov
Partner With Us Let's discuss how to grow your business. Get a Free Quote.
Talk to Vlad


override/classes/Product.php:


This is what we have as a result:

3__How to Display Special Prices According to Quantity at the Product List (Category) in Prestashop

4_How to Display Special Prices According to Quantity at the Product List (Category) in Prestashop

Vlad Yunusov
Partner With Us Looking for a partner that will help you to grow your business? We are the right company to develop your webstore. Feel free to get in touch with us. We will be happy to discuss your business opportunities and provide you with a Free Quote. Talk to Vlad

13 Comments

  1. thanks a lot for reply!! you save my time also !
    Now i got another error , is from product.php :
    Notice: Undefined index: attributes in /var/www/xxx/html/xxxx/override/classes/Product.php on line 17
    This notice appears in 1 categoryy only.

  2. It works well but i can`t change the translation of the word “for” into our language, maybe somebody knows how to do ?

  3. Hello , thank you for that explanation. it works perfectly ( version 1.6.4 ) I would provide all the values ​​in the table , not just the first example quantity / price for 10 for 100 ect .. how can I do? Thank you

  4. Hey Alex
    Is it possible to show price for 1 bottle of wine, and the price for 6 bottles, but not the total, but the price pr. bottle if bought 6 bottles.

  5. Prestashop 1.6.0.13
    I tried to use your hack but it runs onlu in product.tpl and not in product-list.tpl.
    When I go on a product-list based page I only see a duplicate price price of the item but not the price for quantity.

    This double price is showed for all items and not only for what have a quantity discount.

  6. Hy
    I tried to use your hack but it doesn’t run: when I insert the override in classes/Product.php
    (I use PS 1.6.013 and Product.php is not in override/classes/ but in /classes/ dir) the result is a blank screen.
    I tried deleting /cache/class_index.php but the result is the same.
    Any Idea?

  7. Very nice work! I however need this for the special prices table on the product page.
    Now it shows quantity (50, 100, 500, 1000 etc.) and it shows the discount in percentage (-20%, -33.33%, -40%, -46.67% etc.)
    What I want is for each to show the unit price too.. ($8, $6, $4, $2 etc.) Or just like your “Volume Discounts” screenshot..

Post a new comment

BelVG Newsletter
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Email *