• I found that the latest version of the plugin always adds the gift card to the cart with an amount of zero, even when choosing one of the amounts set up when defining the product.

    For anyone else who runs into this, I managed to fix it by adding the below line to yith-woocommerce-gift-cards/lib/class.yith-woocommerce-gift-cards.php on line 510 (just after the other call to update_post_meta in the add_to_cart_handler method):

    update_post_meta($product_id, '_regular_price', $amount);

Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hello there,
    hope you are doing well! ??

    Unfortunately, we can’t replicate your issue, but we will take into consideration your fix and we will make some test to check if is possible to add this fix in future releases.

    Many thanks for contacting us and for sharing your solution.

    Have a nice day!

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin doesn’t add to cart with selected card amount’ is closed to new replies.