Let us see, how to display a discount bar on your product pages while creating a discount rule.

Once creating the discount rule, you can find this option to customize your discount badge at the end of every rule -> 

Show discount Bar:  You can enable or disable the discount bar for each of the rules you create.

Badge Background color and Text color:
Choose the background and the text color to customize your discount bar.
Once selected, you can view the preview of the badge on left.

Badge Text:
Add your own texts that you want to show on the product pages.
You can use short code:
{{title}} -> To get the rule title,  
{{discount}} -> Discount (if percentage eg: 20% or Flat, Fixed Price eg:$20),   {{discounted_price}} -> Discounted Product Price,       

Display positions:

To choose in which position the discount bar to be displayed
Navigate to Settings tab -> Product -> Position to show discount bar

You can choose from the various position displays of the product page here:

Woocommerce before add to cart form
Woocommerce product meta end
Woocommerce product meta start
Woocommerce after add to cart form
Woocommerce after single product
Woocommerce before single product
Woocommerce after single product summary
Woocommerce before single product summary

Here are few examples of the display positions:

Woocommerce before add to cart form:

Woocommerce after add to cart form:

Woocommerce before single product:

Woocommerce after single product:

Woocommerce product meta end:

Frequently asked questions:

1. Is it possible to display discount information in product / listing pages?

Yes, it is possible. We have events to load the discount information manually through code.

You can use the below event to manually load the discount bar where you want to display :

* Please make sure we are passing the param $product -> Product object.
*/ do_action('advanced_woo_discount_rules_load_discount_bar', $product);

2. Are you looking to show discount information in single product pages?

If so, you can enable this options in such cases.

3. Is it possible to display a discount information only on X products?

In our plugin, the discount bar is a static text and it will be displayed on all products in-listed in a specific rule.

So, it is not possible to show discount bar only for buy products.


Still unclear ?

Please submit a support request. We are always happy to assist you :)


Did this answer your question?