Skip to content

Commit

Permalink
Blog: “Turn off coupons in WooCommerce”
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjago committed May 18, 2024
1 parent 1072d9b commit 7bcd81f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions content/blog/2024-05-17-turn-off-coupons-woocommerce/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
+++
title = 'Turn off coupons in WooCommerce'
slug = 'turn-off-coupons-woocommerce'
summary = 'This is a short tutorial on how to disable the “add a coupon” field on the cart and checkout pages in WooCommerce.'
date = 2024-05-17T16:35:25-05:00
draft = false
+++

{{< rawhtml >}}
<div class="rounded-lg px-8 py-8 bg-[#9D6095E3] text-gray-50 text-lg">
<h2 class="text-gray-50" style="margin-top: 0; margin-bottom: 0.6rem;">Summary</h2>
<p style="margin-bottom: 0;">This is a short tutorial on how to disable the “add a coupon” field on the cart and checkout pages in WooCommerce.</p>
</div>
{{< /rawhtml >}}

***

If you want to hide the coupon fields from the cart and checkout pages in WooCommerce, it’s possible by turning off a setting. There is no need for custom code or plugins.

Follow these steps to turn off the coupon fields.

1. From the WordPress dashboard, navigate to **WooCommerce → Settings** in the left sidebar.
![Screenshot of the WooCommerce general settings page, with arrows on how to navigate to it from the left menu in the WordPress dashboard.](/blog/turn-off-coupons-woocommerce/turn-off-coupons-1.png)
2. You’ll land on the General tab.
3. Scroll down until you see “**Enable coupon fields**”.
4. **Uncheck** the box labeled “**Enable the use of coupon codes**”.
5. Click “**Save changes**” at the bottom.
![Screenshot of the field to remove the check from after scrolling down a little on the general settings page in WooCommerce, which will turn off coupons. An arrow is pointing to both the checkbox and the “Save Changes” button.](/blog/turn-off-coupons-woocommerce/turn-off-coupons-2.png)

Customers will no longer see the coupon fields on the cart and checkout pages.

## Turn off coupon field only on cart page, or only on checkout

If you’re interested in how to turn off the coupon field for just the cart page, or just the checkout page, the above method won’t work since it turns it off completely. [Send me an email](mailto:john@getdashify.com) and let me know, and I’ll create a tutorial for this.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7bcd81f

Please sign in to comment.