Support » Plugin: YITH WooCommerce Gift Cards » wrong calculation

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter tom.durcak


    line 584
    I changed this: $amount = $order_item_data["line_total"];
    with this: $amount = $order_item_data["line_total"] + $order_item_data["line_tax"];
    and now it works for me

    Thread Starter tom.durcak


    and it also has to be edited on line: 711

    				$value = $discount_amount + $discount_amount_tax;
    				$gift->deduct_amount_from_gift_card( $value );

    When I add gift card in cart, on cart page the price is showing £0.00 for corresponding gift card. Can anyone please tell me, why the price is showing zero?

    Tom, I had exactly same problem – thanks for the solution!

    Plugin Author YITHEMES


    Hi @freshmaker,
    thanks for your feedbacks and help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘wrong calculation’ is closed to new replies.