> For the complete documentation index, see [llms.txt](https://docs.spacetree.org/spacetree/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.spacetree.org/spacetree/woocommerce/coupon-code.md).

# Coupon Code

## WooCommerce: Creating a Coupon Code

### Overview

This documentation provides a step-by-step guide on how to create a coupon code in WooCommerce to offer discounts and promotions to your customers.

### Steps to Create a Coupon Code

1. **Log In to WordPress Dashboard**:
   * Navigate to your WordPress website and log in to your WordPress admin dashboard.
2. **Navigate to Coupons**:

   * In the left-hand sidebar, find and click on **Marketing**.
   * From the Marketing submenu, click on **Coupons**.
   *

   ```
   <figure><img src="/files/N7u8zhie5k0waqhVKwAp" alt=""><figcaption></figcaption></figure>
   ```
3. **Add New Coupon**:
   * On the Coupons page, click the **Add Coupon** button at the top.
4. **Enter Coupon Details**:

   * **Coupon Code**: Enter a unique code that customers will use to apply the coupon (e.g., SAVE20).
   * **Description**: Optionally, add a description for the coupon to help you remember its purpose.
   *

   ```
   <figure><img src="/files/oHUA0zfrdAE8BaijewXK" alt=""><figcaption></figcaption></figure>
   ```
5. **Configure Discount Type and Amount**:
   * **Discount Type**: Choose the type of discount from the dropdown menu. Options include:
     * Percentage discount (e.g., 20% off).
     * Fixed cart discount (e.g., $10 off the entire cart).
     * Fixed product discount (e.g., $5 off a specific product).
   * **Coupon Amount**: Enter the value of the discount based on the type selected.
6. **Set Coupon Usage Restrictions** (Optional):
   * **Minimum/Maximum Spend**: Set the minimum or maximum order amount required to use the coupon.
   * **Individual Use Only**: Check this box if the coupon cannot be used in conjunction with other coupons.
   * **Exclude Sale Items**: Check this box if the coupon should not apply to items already on sale.
   * **Products**: Select specific products that the coupon will apply to.
   * **Exclude Products**: Select specific products that the coupon will not apply to.
   * **Product Categories**: Select categories that the coupon will apply to.
   * **Exclude Categories**: Select categories that the coupon will not apply to.
   * **Allowed Emails**: Restrict the coupon usage to specific email addresses.
7. **Set Coupon Usage Limits** (Optional):
   * **Usage Limit per Coupon**: Set how many times the coupon can be used in total.
   * **Limit Usage to X Items**: Set how many items the coupon can be applied to when used.
   * **Usage Limit per User**: Set how many times an individual user can use the coupon.
8. **Publish the Coupon**:
   * Once all the details are filled out, click the **Publish** button to make the coupon active and available for use.

### Summary

By following these steps, you can create a coupon code in WooCommerce to offer discounts and promotions to your customers, helping to drive sales and increase customer engagement.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.spacetree.org/spacetree/woocommerce/coupon-code.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
