Plugin doesn’t add to cart with selected card amount
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Plugin doesn’t add to cart with selected card amount’ is closed to new replies.