jcros Posted June 15, 2014 Share Posted June 15, 2014 (edited) Hi everybody, First sorry for my poor english, Here my problem in french with no reply with my commit I see a different behaviour between Prestashop 1.4 and 1.6. This is the configuration of the two installation. - Customer group : Excluding VAT - green tax on - 20.0% VAT on the green Tax - New attribute "Surface" with values "Mélaminé" and "Magnétique" - Euro Currency with a exchange rate at 1 - default theme i had a product Reference W001 Sale price : 62.65 Green tax including VAT (20.0) : 0.83 I had two versions of this product : Attribute Surface "magnétique" no impact on price, no green tax Attribute Surface "mélaminé" discount of 5.43 €, 0.59 green tax excluding VAT On prestashop 1.4 the product and the cart are equal The price of the product with a - surface Magnétique is 63.34 EXCLUDING VAT including 0.69 green tax - surface Mélaminé is 57.81 EXCLUDING VAT including 0.59 green tax On prestashop 1.6 the product and the cart are different The price on the product page with a - surface Magnétique is 63.34 EXCLUDING VAT including 0.69 green tax - surface Mélaminé is 57.12 EXCLUDING VAT including 0.59 green tax If i get this product in my cart the product with a "surface magnétique" the price is equal between the product page and the cart but it's not the same for the surface mélaminé in the cart. The cart show me 57.91 Excluding VAT including 0.59 green tax (on prestashop 1.4 the price is 57.81) ! After search, i think there are two problems : - First problem in the template product.js file Line 649 : if (ecotaxAmount != default_eco_tax) productPriceDisplay += ecotaxAmount - default_eco_tax; else productPriceDisplay += ecotaxAmount; if (ecotaxAmount != default_eco_tax) productPriceWithoutReductionDisplay += ecotaxAmount - default_eco_tax; else productPriceWithoutReductionDisplay += ecotaxAmount; My commit : if (ecotaxAmount != default_eco_tax) productPriceDisplay += default_eco_tax; else productPriceDisplay += ecotaxAmount; if (ecotaxAmount != default_eco_tax) productPriceWithoutReductionDisplay += default_eco_tax; else productPriceWithoutReductionDisplay += ecotaxAmount;- the second problem when the product is added in the cart. I hope that i'm clear after my explanation. Thanks Johan Edited June 15, 2014 by jcros (see edit history) Link to comment Share on other sites More sharing options...
jcros Posted June 15, 2014 Author Share Posted June 15, 2014 I test also on Prestashop 1.5 and the problem is similar. Link to comment Share on other sites More sharing options...
jcros Posted June 23, 2014 Author Share Posted June 23, 2014 Little UP 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