Website Building » WooCommerce » How Do I Add a Discount Badge in WooCommerce?

How Do I Add a Discount Badge in WooCommerce?

Last updated on October 1, 2022 @ 7:14 pm

Discount badges are a great way to show your customers that they are getting a great deal on your products. WooCommerce makes it easy to add a discount badge to your products. Here’s how:

1. Log in to your WooCommerce account and go to your Dashboard. 2. Click on the “Products” tab and then “Add New”. 3. Enter a product name and description. 4. Scroll down to the “Pricing” section and enter your regular price and sale price. Be sure to check the “Enable Sale Price” box. 5. Click on the “Publish” button to save your changes. 6. Now go back to your Dashboard. 7. Click on the “Appearance” tab and then “Editor”. 8.

On the right hand side, find the “product-sale.php” file and click on it. 9. Find the line of code that says “is_on_sale() ) : ?>” and replace it with “get_sale_badge() ) : ?>”. 10. Save your changes.

That’s it! You’ve successfully added a discount badge to your product.

Discount badges are a great way to show your customers that they are getting a great deal on your products.

1. Log in to your WooCommerce account and go to your Dashboard.

2. Click on the “Products” tab and then “Add New”.

PRO TIP: Please be aware that the ‘How Do I Add a Discount Badge in WooCommerce?’ article contains instructions on how to add a badge to your WooCommerce site which will offer a discount to customers. While this may be a useful feature for some stores, it is important to note that it could also potentially lead to customers taking advantage of the discount and not making a purchase, or worse, attempting to purchase items they would not normally purchase in order to get the discount. As such, we recommend using this feature with caution and only if you are confident that it will not negatively impact your business. Thank you.

3. Enter a product name and description.

4. Scroll down to the “Pricing” section and enter your regular price and sale price.

5. Click on the “Publish” button to save your changes.

6. Now go back to your Dashboard.

7. Click on the “Appearance” tab and then “Editor”.

8. On the right hand side, find the “product-sale.php” file and click on it.

9. Replace the line of code with “get_sale_badge() ) : ?>”Save Your changes.

12.13.
14.
15.
16.

How Do I Add a Discount Badge in WooCommerce?

Discount badges are a great way to show customers they’re getting a deal on products purchased from WooCommerce stores. Adding a discount badge in WooCommerce is easy to do following these steps below!

Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.