• Resolved crussellnyc5299

    (@crussellnyc5299)


    I want to exclude shipping and sales tax from the gift card. They are promotional cards and I want the customer to have to pay for tax and shipping.

    Thanks

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

    (@pimwick)

    Follow these steps to apply the gift card to the Subtotal before shipping and tax instead of the Total:

    1. Download the free Code Snippets plugin: https://wordpress.org/plugins/code-snippets/
    2. Create a new snippet with the following code:

    function custom_pwgc_eligible_cart_amount( $eligible_amount, $cart ) {
        $eligible_amount = $cart->subtotal;
    
        return $eligible_amount;
    }
    add_filter( 'pwgc_eligible_cart_amount', 'custom_pwgc_eligible_cart_amount', 10, 2 );

    Let me know if you have any questions!

Viewing 1 replies (of 1 total)
  • The topic ‘Can I exclude sales tax and shipping’ is closed to new replies.