Remove "have a coupon" box on checkout

This topic has 4 replies, 2 voices, and was last updated 7 years, 11 months ago ago by Olga Barlow

  • Avatar: pt1011
    pt1011
    Participant
    December 9, 2016 at 20:25

    i’d prefer not to have the coupon message on checkout (only cart page).
    how do you recommend removing that copuon box “Have a coupon? Click here to enter your code

    3 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 12, 2016 at 20:14

    Hello,

    Unfortunately, WooCommerce does not have option to hide it for the checkout page only.
    Check this post https://wordpress.org/support/topic/disable-apply-coupon-in-cart-but-keep-in-checkout/
    You may try something similar but for the checkout page.

    Regards

    Avatar: pt1011
    pt1011
    Participant
    December 14, 2016 at 04:03

    i went ahead and added this to the functions.php file to remove coupon from checkout

    // hide coupon field on checkout page
    function hide_coupon_field_on_checkout( $enabled ) {
      if ( is_checkout() ) {
        $enabled = false;
      }
      return $enabled;
    }
    add_filter( 'woocommerce_coupons_enabled', 'hide_coupon_field_on_checkout' );
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 14, 2016 at 10:45

    Hello,

    Great. I’m glad that solution works for you.

    Regards

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.