• Resolved mani0101

    (@mani0101)


    hide ‘have a coupon’ or ‘Enter Coupon’ during checkout for top up money product.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Subrata Mal

    (@subratamal)

    Hi @mani0101

    Please use below code in active theme function.php file to disable coupon during checkout for wallet top-up.

    add_filter('woocommerce_coupons_enabled', 'woocommerce_coupons_enabled_callback');
    
    if(!function_exists('woocommerce_coupons_enabled_callback')){
        function woocommerce_coupons_enabled_callback($is_enabled){
            if(!is_admin() && is_wallet_rechargeable_cart()){
                $is_enabled = false;
            }
            return $is_enabled;
        }
    }

    Thank you.

    Thread Starter mani0101

    (@mani0101)

    Okk thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable coupon on top up product at checkout’ is closed to new replies.