Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter midoriatelier

    (@midoriatelier)

    Thank you, I already applied it to the subtotal. My problem is that within the subtotal, a coupon that I offer is applied first before the gift card. Is it possible to make the gift card apply before any coupons within the subtotal?

    Sorry for all this trouble and thank you!

    Thread Starter midoriatelier

    (@midoriatelier)

    Sorry, my mistake.
    With the shipping, I meant that I already applied the code so that the gift card excludes shipping prices. I used this code and it works perfect:

    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);

    Maybe I wasn’t as clear as I should be.
    If possible, I need the Gift Card to be applied in the subtotal, before applying the code with the 15% off paying through bank transfer. It’s possible? because when it is applied to the total, I have a different price.

    I hope it can. Thanks a lot.
    Agus

Viewing 2 replies - 1 through 2 (of 2 total)