Tax and price computation in checkout and invoices were a mess in PrestaShop 1.5 and 1.6, when applying cart rules with discounts. But I'm afraid that thirty bees as well did not yet resolve the problems.
Example, tested on thirty bees 1.0.2 beta:
Cart Rule: 3 for 2
Conditions: Product selection for 1 category, The cart must contain at least 3 product
Action: Apply discount of 100% for cheapest product
Preferences --> General:
Round mode: Round half even (as recommended)Round type: Round on the total
AEUC activated, Rounding method "Round on the total" (this dropdown for options is new in 1.0.2), anyway, same result with option "no rounding"
Result is a bit disappointing so far, no matter if with activated or deactivated AEUC.
Shopping cart in checkout
Discount, net totals and totals are wrong
Same in BO order page
Further bug in these "mixed" orders: Payment of previous order is "accepted" when you change status to paid, which causes a WRONG warning
It took me some time to realize that the errors are mainly caused by the fact that every other product in cart from a different category (which is not included in the applied tax rule) diminishes the discount, increased by units.
Is the initial discount e.g. 19,98, it decreases
- to 19,10 if you add one more other product
- to 18,96 if you add 2 more other products
and so on.
Obviously the cart rule thus has an impact on the computation behavior for other products in the cart which is not correct. It works perfect as long as you just buy products from the discounted category. Same behavior btw in tb 1.0.1.
Question
Occam
Tax and price computation in checkout and invoices were a mess in PrestaShop 1.5 and 1.6, when applying cart rules with discounts. But I'm afraid that thirty bees as well did not yet resolve the problems.
Example, tested on thirty bees 1.0.2 beta:
Cart Rule: 3 for 2 Conditions: Product selection for 1 category, The cart must contain at least 3 product Action: Apply discount of 100% for cheapest product
Preferences --> General: Round mode: Round half even (as recommended) Round type: Round on the total AEUC activated, Rounding method "Round on the total" (this dropdown for options is new in 1.0.2), anyway, same result with option "no rounding"
Result is a bit disappointing so far, no matter if with activated or deactivated AEUC.
Shopping cart in checkout Discount, net totals and totals are wrong
Same in BO order page
It took me some time to realize that the errors are mainly caused by the fact that every other product in cart from a different category (which is not included in the applied tax rule) diminishes the discount, increased by units.
Is the initial discount e.g. 19,98, it decreases - to 19,10 if you add one more other product - to 18,96 if you add 2 more other products and so on.
Obviously the cart rule thus has an impact on the computation behavior for other products in the cart which is not correct. It works perfect as long as you just buy products from the discounted category. Same behavior btw in tb 1.0.1.
Link to comment
Share on other sites
15 answers to this question
Recommended Posts