Jump to content

Specific prices - Discount per quantity Don´t Works Correctly [ SOLVED ]


ill7

Recommended Posts

Hello, I want to use the specific prices of an article.

 

When I configure prices in the article, for example:

 

Normal price is 10 eur

 

- Price for 10 units or more is 9 eur (1 eur discount)

- Price for 20 units or more is 8 eur (2 eur discount)

 

Ok, when I add to my cart for example 25 units, the discount price applied is incorrect: The cart apply the first discount price (1 eur) but if I´m buying 25 units, then the discount should be 2 eur discount.

 

Have someone the solution for this problem in Prestashop 1.4.2.5 ?

 

Thanks in advance

Link to comment
Share on other sites

Hi, I had modified the SpecificPrice.php file for invert the order of appearance to descendant of prices.

 

Well, I had changed all the "ASC" to "DESC" in SpecificPrice.php file in the folder "classes".

 

I found the solution by changing the "ASC" to "DESC" only the first part. That is, there are 6 SpecificPrice.php "ASC" and we need only change the first two by DESC and the other 4 keep with ASC.

 

Thus, prices will decline, which is much better visually and cart prices apply for each drive range correctly.

 

Thanks

Greetings

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...