How to Create Discounts And Coupons In WooCommerce?

12 minutes read

To create discounts and coupons in WooCommerce, you can follow these steps:

  1. Login to your WordPress admin panel and go to WooCommerce > Coupons.
  2. Click on the "Add Coupon" button to create a new coupon.
  3. Enter a coupon code - this is the code that customers will enter to apply the discount.
  4. Provide a description for the coupon. This is for your own reference to identify the coupon later.
  5. Choose the discount type: percentage discount, fixed cart discount, or fixed product discount.
  6. Enter the coupon amount. For percentage discounts, enter the percentage value. For fixed discounts, enter the specific amount.
  7. Choose the usage limit, if desired. You can specify how many times the coupon can be used by customers.
  8. Set the expiration date for the coupon. After this date, the coupon will no longer be valid.
  9. Under "Usage restriction", you can set minimum and maximum spend limits for the coupon to be valid.
  10. If desired, you can restrict the usage of the coupon to specific products, categories, or customer emails.
  11. Click the "Publish" button to save the coupon.


Once the coupon is created, customers can enter the coupon code during the checkout process to apply the discount to their order. You can track coupon usage and monitor its performance by going to WooCommerce > Coupons and viewing the coupon list.

Best WooCommerce Hosting Providers in 2024

1
DigitalOcean

Rating is 5 out of 5

DigitalOcean

2
AWS

Rating is 4.9 out of 5

AWS

3
Vultr

Rating is 4.8 out of 5

Vultr

4
Cloudways

Rating is 4.7 out of 5

Cloudways


What is the process to create a discount for returning customers in WooCommerce?

To create a discount for returning customers in WooCommerce, follow these steps:

  1. Log in to your WooCommerce admin dashboard.
  2. Navigate to "WooCommerce" and click on "Settings."
  3. Click on the "Advanced" tab and select "Coupons."
  4. Click on the "Add Coupon" button.
  5. Fill in the coupon details such as the coupon code (e.g., RETURN10), the discount type (e.g., percentage discount or fixed cart discount), and the coupon amount (e.g., 10% or $10).
  6. In the "Usage restriction" section, you can set limitations if necessary (e.g., minimum spend).
  7. Scroll down to the "Usage limits" section and specify any limits for the coupon usage (e.g., maximum usage per customer, expiry date).
  8. In the "Usage restriction" section, search for the "Allowed Emails" field, and enter the email addresses of your returning customers separated by commas (e.g., [email protected], [email protected]).
  9. Save the coupon by clicking on the "Publish" or "Update" button.


Your discount coupon is now created and will only be applicable to customers with the specified email addresses. Returning customers can apply the coupon code during checkout to avail of the discount.


What is the method to create a conditional discount based on cart total in WooCommerce?

To create a conditional discount based on cart total in WooCommerce, you can use the following method:

  1. Open your theme's functions.php file by accessing your WordPress dashboard, going to Appearance, selecting Theme Editor, and then selecting the functions.php file.
  2. Add the following code to the functions.php file:
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
function conditional_discount_based_on_cart_total( $cart_object ) {
    if ( is_admin() && ! defined( 'DOING_AJAX' ) )
        return;

    // Set cart total threshold and discount percentage
    $cart_total_threshold = 100; // Set the cart total threshold for the discount to be applied
    $discount_percentage = 10; // Set the discount percentage

    $cart_total = $cart_object->subtotal; // Get the cart total

    if ( $cart_total >= $cart_total_threshold ) {
        // Calculate the discount amount
        $discount_amount = ( $cart_total * $discount_percentage ) / 100;

        // Apply the discount
        $cart_object->add_fee( __('Discount', 'woocommerce'), -$discount_amount );
    }
}
add_action( 'woocommerce_cart_calculate_fees', 'conditional_discount_based_on_cart_total', 10, 1 );


  1. Save the changes to the functions.php file.


This code will add a discount to the cart if the cart total is equal to or greater than the specified threshold. Adjust the $cart_total_threshold and $discount_percentage variables according to your requirements.


Note that this method adds a fee with a negative amount to mimic a discount in WooCommerce. The discount will be displayed as a separate line item in the cart and order totals.


What is the process to provide a discount on product bundles in WooCommerce?

To provide a discount on product bundles in WooCommerce, you can follow these steps:

  1. Install and activate a bundle plugin: Start by installing and activating a suitable bundle plugin from the WooCommerce plugin repository. Some popular options include Product Bundles by WooCommerce, YITH WooCommerce Product Bundles, or WPC Product Bundles for WooCommerce.
  2. Create a new bundle product: Once the plugin is installed, you can create a new product in WooCommerce. Set the product type as a "Bundle" or similar option provided by the chosen plugin.
  3. Add products to the bundle: Configure the bundle product by adding individual products that you want to offer as a bundle. Specify the quantities and any other relevant options or variations.
  4. Set the bundle pricing: Determine the pricing for the bundle product. You can decide on a fixed discount, a percentage discount, or any other pricing strategy supported by the plugin. Configure the pricing settings according to your desired discount structure.
  5. Customize the bundle presentation: Modify the bundle's appearance, such as the product image, title, description, or any other visual element based on your preferences.
  6. Publish the bundle product: Once you've configured all the necessary settings, publish the bundle product to make it available for purchase on your WooCommerce store.


By offering bundle products with discounted prices, you can encourage customers to purchase multiple items together, increasing sales and providing them with value.

Best WooCommerce Books to Read in 2024

1
Building Your Online Store With WordPress and WooCommerce: Learn to Leverage the Critical Role E-commerce Plays in Today’s Competitive Marketplace

Rating is 5 out of 5

Building Your Online Store With WordPress and WooCommerce: Learn to Leverage the Critical Role E-commerce Plays in Today’s Competitive Marketplace

2
Mastering WooCommerce 4: Build complete e-commerce websites with WordPress and WooCommerce from scratch

Rating is 4.9 out of 5

Mastering WooCommerce 4: Build complete e-commerce websites with WordPress and WooCommerce from scratch

3
WooCommerce Cookbook

Rating is 4.8 out of 5

WooCommerce Cookbook

4
Building E-Commerce Solutions with WooCommerce - Second Edition

Rating is 4.7 out of 5

Building E-Commerce Solutions with WooCommerce - Second Edition

5
Mastering WooCommerce: Build, Customize, and Optimize Your Complete E-commerce Website with WooCommerce from scratch, 2nd Edition

Rating is 4.6 out of 5

Mastering WooCommerce: Build, Customize, and Optimize Your Complete E-commerce Website with WooCommerce from scratch, 2nd Edition


How to offer a discount for new customers in WooCommerce?

To offer a discount for new customers in WooCommerce, you can follow these steps:

  1. Install and activate the "WooCommerce" plugin if you haven't already done so.
  2. Go to your WordPress admin dashboard and navigate to WooCommerce > Settings.
  3. Click on the "General" tab and scroll down to the "Customer" section.
  4. Check the box next to the option "Enable registration on the "My Account" page" to allow customers to create accounts.
  5. Save the changes.
  6. Now, you need to create a coupon code specifically for new customers. Go to WooCommerce > Coupons.
  7. Click on the "Add Coupon" button to create a new coupon.
  8. Fill in the required fields, including the coupon code (e.g., NEWCUSTOMER) and the discount type (e.g., Percentage discount or Fixed cart discount).
  9. In the "Usage restriction" section, select the "New customers" checkbox to limit the coupon to new customers only.
  10. Set the discount amount or percentage value.
  11. Customize any other settings or restrictions as per your requirements.
  12. Click on the "Publish" button to save the coupon.


Now, whenever a new customer creates an account and applies the coupon code during checkout, they will receive the discount you have set.


How to automatically apply a discount based on customer loyalty in WooCommerce?

To automatically apply a discount based on customer loyalty in WooCommerce, you can follow these steps:

  1. Install and activate a loyalty program plugin: First, you'll need to choose and install a suitable plugin that provides loyalty program functionality for WooCommerce. Some popular options include WooCommerce Points and Rewards, YITH WooCommerce Points and Rewards, or Loyalty Rewards for WooCommerce. These plugins offer features like awarding points based on customer purchases or actions.
  2. Set up loyalty points system: Configure the loyalty program plugin to assign loyalty points to customers based on their purchases or actions. Define how many points are earnt for each dollar spent, and consider additional rewards such as points for writing reviews, referring friends, or following social media accounts.
  3. Determine reward thresholds and discounts: Decide the points thresholds at which customers become eligible for discounts. For example, you might want to give a 10% discount to customers who have accumulated 1000 points. Set up these reward rules within the loyalty program plugin.
  4. Write automatic discount rules: In WooCommerce, navigate to the WooCommerce > Settings > Advanced > Coupons section. Create a new coupon or modify an existing one to set up the automatic discount. Configure the coupon with a discount percentage or fixed amount based on the customer's loyalty points, using the plugin's available settings.
  5. Apply coupon based on loyalty points: Within the loyalty program plugin settings, enable the feature to automatically apply the coupon when customers reach a specific loyalty point threshold. This will ensure that the discount is automatically applied during the checkout process.
  6. Test and refine: Test the loyalty program by making a purchase under a customer account. Ensure that the loyalty points are being accumulated correctly and that the appropriate discount is automatically applied when the threshold is reached.


By following these steps, you can implement a loyalty program in WooCommerce to automatically apply discounts based on customer loyalty.

Facebook Twitter LinkedIn Telegram

Related Posts:

To set up a WooCommerce storefront for digital products, follow these steps:Install WooCommerce: Start by installing the WooCommerce plugin on your WordPress website. Go to the Plugins tab, click on "Add New," search for WooCommerce, and click on "...
To set up and manage shipping options in WooCommerce, follow these steps:Install and activate the WooCommerce plugin: Start by installing the WooCommerce plugin on your WordPress website. Navigate to your WordPress dashboard, go to "Plugins," click on ...
In WooCommerce, adding and managing product reviews is fairly simple. It allows customers to leave feedback on the products they have purchased, which can help other potential buyers make informed decisions. Here are the steps to add and manage product reviews...