nbonniot Posted September 15, 2012 Share Posted September 15, 2012 (edited) 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 : And the result on the product page : 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 : 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) : 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 September 15, 2012 by nbonniot (see edit history) Link to comment Share on other sites More sharing options...
tommaso tamtam Posted October 3, 2012 Share Posted October 3, 2012 hi, I'm trying to add a function like this in my ps 1.4.8. I modified the function priceCalculation in the class product.php, and price calculation works well in all modules Link to comment Share on other sites More sharing options...
Clean Mitts Posted October 6, 2012 Share Posted October 6, 2012 Could you not try putting a minus sign in front of it? Link to comment Share on other sites More sharing options...
jullover Posted October 16, 2012 Share Posted October 16, 2012 Could you not try putting a minus sign in front of it? please, tell us what !! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now