bab45 Posted April 30, 2014 Share Posted April 30, 2014 Bonjour, Je m'arrache les cheveux avec un problème d'éco taxe. Pour les produits sans déclinaisons c'est ok. Par contre, les produits avec déclinaisons comportent un problème. Le voici : Lorsque je suis dans mes catégories mon prix est correct soit 1345€ : Lorsque je vais directement dans ma fiche produit, mon prix s'affiche à 1336,67€ au lieu de 1345€ : Voila ce qu'il se passe : 1345€-1336,67€ = 8,33€ de différence ce qui correspond à mon écotaxe de 10€ TTC mais en HT 8,33€ Lorsque j'ajoute au panier j'ai bien mon prix de 1345€ J'ai regardé dans mon fichier product.js mais je ne sais pas quoi modifier. Voici une partie de mon code ou je pense que la modification doit se faire : var ecotaxAmount = !displayPrice ? ps_round(selectedCombination['ecotax'] * (1 + ecotaxTax_rate / 100), 2) : selectedCombination['ecotax']; 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; var our_price = ''; Si quelqu'un peut m'aider à régler ce problème. Merci d'avance 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