Jump to content

Specific price by attribute : product cart calculation on add to cart?


nbonniot

Recommended Posts

Hello everyone,

 

I'm working on a Prestashop 1.4.8 in order to add the ability to choose an attribute when creating a specific price for a given product.

 

So far, it works great when I use the reduction way :

product_definition.png

 

And the result on the product page :

 

product_details.png

 

But when I create a specific price with an "absolute" price (ie a price that should be taken in replacement of the attribute price) like this :

 

product_definition_2.png

 

I got the following result : the price on the detail page is good, but when I click on "add to cart", I realized that the price displayed is the addition of the attribute price (defined at 100€) and the absolute specific price that I entered, with taxes (11,96) :

 

product_details2.png

 

 

Could someone tell me where the cart price is calculated? Why in one case the good price is taken, and not in the other one?

 

I looked in Cart.php, CartController.php, AJAX cart module... I didn't find anything but the quantity update.

 

 

Many thanks for your return and suggestions,

 

Nicolas

Edited by nbonniot (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

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