• wild0917

    (@wild0917)


    Currently we are having the FREE version of YITH Gift Card plug-in. During testing the user can use the Gift Card Code as a coupon. How can we prevent it from happening? As we do also provide coupon to our customers.
    For us Coupon code is the discount applied to product purchases, and it affect the tax amount. While Gift Card Code is treated as Cash and the amount can be applied to the shipping payment.
    So do not want to allow user to input Gift Card Code as woocommerce coupon. Is it possible?

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

    (@wild0917)

    I forgot to mention i am using Version 2.0.14

    Iván Sosa

    (@ivansosa)

    Hi there,

    hope you are doing well! 🙂

    If you want to remove the possibility to add gift cards on coupon section.

    Please add the following code on your functions.php of your active theme

    if ( class_exists( 'YITH_YWGC_Cart_Checkout' ) ) {
    
    remove_action( 'init', array( YITH_YWGC_Cart_Checkout::get_instance(), 'ywgc_apply_gift_card_on_coupon_form' ) );
    
    }

    Let us know.

    Have a great day!

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

The topic ‘Applied Gift Card code as Coupon’ is closed to new replies.