Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Soft79

    (@josk79)

    I don’t know storefront, but this should work:

    First, create a child theme. Create a folder woocommerce/ in your child theme, and in there copy cart/cart.php and checkout/form-coupon.php from storefront if they exist, otherwise copy them from plugins/woocommerce/templates.

    So your childtheme would now contain:

    style.css
    woocommerce/cart/cart.php
    woocommerce/checkout/form-coupon.php

    You can remove all contents from form-coupon.php.

    In cart.php, remove the part that shows the ‘apply coupon’. Easiest would be changing WC()->cart->coupons_enabled() to false && WC()->cart->coupons_enabled() .

    Good luck!

    Thread Starter sallam

    (@sallam)

    Worked first time!
    Thanks so much!

    Plugin Author Soft79

    (@josk79)

    Great! Don’t forget to rate my plugin!

    Thread Starter sallam

    (@sallam)

    I did. 5 stars!
    Thanks for your very useful plugin.

    Also this work from Github:
    https://gist.github.com/maxrice/8550827

    Add the code to functions.php

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to remove coupon buttons?’ is closed to new replies.