• Resolved magick207

    (@magick207)


    Hello,

    I need to hide the coupon field on the checkout page for certain display rules. I only want to show it for some products in the cart. Is there a way to do this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    Thank you for contacting WooCommerce Plugin Support. I’m happy to help you with your query. I understand that you want to hide the coupon field on the checkout page for certain display rules. There are a few ways to achieve this, depending on your preferences and technical skills. Here are some possible solutions:

    • Disable the coupon field from the cart and checkout page on WooCommerce. This is the easiest and most straightforward option, but it will remove the coupon field from your entire store. If you don’t have any active coupons or you don’t want to display them at all, you can do this by going to WooCommerce > Settings.
    • Use a plugin to hide the coupon field based on display rules. This option gives you more flexibility and control over when and where to show or hide the coupon field. You can use a plugin like WooCommerce Conditional Content to create display rules for the coupon field based on various conditions, such as product categories, cart totals, user roles, etc. For example, you can hide the coupon field if the cart contains products from a certain category, or show it only if the cart total is above a certain amount.
    • This can also be done with custom coding however writing or providing custom code is not within the scope of our support policy. For development and custom coding questions, it’s best to ask for insight related to those on either the WooCommerce Advanced Facebook group or the WooCommerce Community Slack. You can also seek help from the following:

    I hope this helps you find the best solution for your needs. If you have any questions or need further assistance, please let us know.

    Thread Starter magick207

    (@magick207)

    Hello and thank you for your reply.

    I found a snippet code to do that.

    Bye.

    Hi @magick207,

    Thanks for getting back to us. I’m glad to know you were able to resolve the issue using the custom code. Just so you know – we will now close this ticket as solved. If you have any other questions or issues, please feel free to open a new ticket and we’ll be happy to assist you.

    Thank you for choosing WooCommerce and have a great day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide coupon code field’ is closed to new replies.