• 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.:
    #4945

    1x – Calabresa
    1x – Marguerita Clássica
    1x – Coca-Cola – Garrafa 1,5l

    Valor Total:
    R$84,00

    Cupom:
    Segunda_em_dobro: -50% (-R$42,00) <<<<<———– ERRO
    Discount:
    R$84,00 – R$42,00 = R$4.200,00 <<<<<———– ERRO

    Forma de Pagamento:
    Pagamento na entrega

    Informa??es do Cliente:
    xxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxx
    xxx
    Rio de Janeiro
    Rio de Janeiro
    xxxxxxxxxxxxxxxxx

    Frete:
    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]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter marcosmelomaom

    (@marcosmelomaom)

    Hello, did you manage to fix this bug in the plugin? I am unable to use the coupon because of this problem. Is it a problem only when showing the calculation of the discount, since the total amount is correct?

    Can you help me? Thanks!

    Thread Starter marcosmelomaom

    (@marcosmelomaom)

    Hello!
    Can you help me, please? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wrong Calculation of Discount Coupon’ is closed to new replies.