Wrong Calculation of Discount Coupon
-
First of all, congratulations on the plugin. The best I’ve found so far.
I only found a small bug when using a percentage discount discount on a specific product group. I applied on the PIZZA product group, not applying to other products.
He reports the wrong discount amount, multiplied by 100 (certainly by percentage) and applies the discount on the entire order and not on the product that received the discount.
Despite all this, the total value of the order is right, because the WooCommerce function must do this calculation.
I’ll paste as the request came out on WhatsApp. In this order, each pizza costs R $ 38.00 (x2 = R $ 76.00) and Coca-Cola R $ 8.00, totaling R $ 84.00. The 50% discount was to apply only to pizzas, that is, the discount was R $ 38.00 and not R $ 42.00. In addition, the discount discount is multiplied by 100, generating more zeros.
A copy of the request follows:
PEDIDO SITE N.:
#49451x – Calabresa
1x – Marguerita Clássica
1x – Coca-Cola – Garrafa 1,5lValor Total:
R$84,00Cupom:
Segunda_em_dobro: -50% (-R$42,00) <<<<<———– ERRO
Discount:
R$84,00 – R$42,00 = R$4.200,00 <<<<<———– ERROForma de Pagamento:
Pagamento na entregaInforma??es do Cliente:
xxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxx
xxx
Rio de Janeiro
Rio de Janeiro
xxxxxxxxxxxxxxxxxFrete:
R$5,00 via Taxa fixa (Zonal Sul – Exceto S?o Conrado)Total:
R$51,00—————————–
Although the discount calculations turn out to be wrong, the total amount is correct!
I put this topic in Portuguese 3 weeks ago, with the title “Cálculo errado do Cupom de Desconto” and replaced it in English (translated) to facilitate.
I look forward to your brief return, as we use the coupon a lot on the customer.
Thank you very much for your help and, again, congratulations on the excellent work!
Good Luck!
The page I need help with: [log in to see the link]
- The topic ‘Wrong Calculation of Discount Coupon’ is closed to new replies.