• Resolved Brian Henry

    (@brianhenryie)


    We had an issue where WooCommerce Gift Cards would not work while your plugin was enabled. The gift card would appear in Cart Totals but the order total would not be reduced.

    The problem was with when you refresh the cart contents:

    
    //callback for checkout page
    add_action( 'woocommerce_review_order_before_cart_contents', array( $this, 'update_cart_and_checkout_items' ), 10 );
    

    I changed this to:

    
    add_action( 'woocommerce_before_calculate_totals', array( $this, 'update_cart_and_checkout_items' ) );
    

    And the gift card worked.

    I confirmed that the country restriction on products continued to work as before.

    https://woocommerce.com/products/gift-cards/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug fix: Incompatible with WooCommerce Gift Cards’ is closed to new replies.