Fabrice Posted March 6, 2009 Share Posted March 6, 2009 en effet, lorsque un client fait partie d'un groupe (exemple : remise 15%), pour un produit affiché à 10€, le produit coûte finalement -5€ !!une idée de comment fixer ce calcul ?merci !the group discount prices are calculated not in percentage but in euros. so a product is 10€, the reduction for the customer/group is 15%, the final price is displayed : -5€ !!even in cart etc... any idea on how to fix that ? Link to comment Share on other sites More sharing options...
Jean-Bruno Posted April 6, 2009 Share Posted April 6, 2009 Il me semble qu'il manque une solution et un "résolu" cher monsieur ;-)La solution que tu m'as donnée : Dans \classes\Product.php ligne 1227changer $price -= $usetax ? Group::getReduction($id_customer) : (Group::getReduction($id_customer) / (1 + ($tax / 100))); par $price *= ((100 - Group::getReduction($id_customer))/100); 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