Display Discount Table

Learn how to show a discount table for tiered bulk discount pricing in your WooCommerce store

Ramesh avatar
Written by Ramesh
Updated over a week ago

Introduction :

The Discount Table is a tabular representation that showcases the various discounts applicable to the products. Integrating a discount table in your WooCommerce store can enhance the shopping experience, motivate customers to purchase more, and encourage customer loyalty.

This user guide explains how to set a Discount Table in your WooCommerce store.

Make sure you have already installed and activated the Discount Rules plugin. Please note that some of the features explained in the examples are available only in the PRO version.

Do More with the PRO Version

We have two sections here,

  • Enable / hide discount table

  • Customize discount table

The Discount table will be shown only for the following discount types,

  • Bulk Discount Type

  • Bundle Set Discount Type

Enable the Discount Table

Go to Discount Rules -> Settings -> Product -> Show Discount table -> Yes

Customize the Discount Table

Go to Discount Rules -> Settings -> Product -> Show Discount table -> Customize Discount Table

  • Hide the “Title” column in the Discount table

By clicking on the "Customize Discount Table" option, you'll see a table where you can hide the column that shows the titles. To do this, just uncheck the box next to the title column.

  • Changing the Column Name in the Discount table

By clicking on the "Customize Discount Table" option, you'll see a table where you can change the text of the column name by directly adding the content.

  • Show Discounted price in the Discount table

By clicking on the "Customize Discount Table" option, you'll see a table where you can choose the “Discounted Price” option.

Here is the screenshot of the cart page showing an example :

Frequently Asked Questions :

1. How to further customize the discount table ?

This can be done by creating a simple override at your theme level.

NOTE : You will have to use an FTP client or the File Manager in your cPanel to carry out this change.

Copy

woo-discount-rules/v2/App/Views/Templates/discount_table.php.

To

/wp-content/themes/<YOUR_THEME_FOLDER>/advanced_woo_discount_rules/discount_table.php.

Edit

/wp-content/themes/<YOUR_THEME_FOLDER>/advanced_woo_discount_rules/discount_table.php.

You can change the HTML and the PHP code (not a lot of it) there and customize the display.

Note :

  • This discount table will be shown only for Bulk/Set Adjustment discount Types.

2. Is it possible to display a discount table in shop/ category pages ?

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

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

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

3. Is it possible to display only the minimum range in the discount table ?

You can use this below code:

Copy this above code and paste it in the following path:

/wp-content/themes/<YOUR_THEME_FOLDER>/advanced_woo_discount_rules/discount_table.php.

Note: Initially, we might not have this folder "advanced_woo_discount_rules" in your current theme path -> /wp-content/themes/<YOUR_THEME_FOLDER>

So you have a create a folder with name: advanced_woo_discount_rules and in this folder create a file with name: discount_table.php

Now, in this file (discount_table.php) copy and paste the above code. So that only the minimum range from the discount table will be shown, as shown in the above screenshot.

Some of the examples require PRO

Next Steps :

You may also want to check out these helpful guides :

Refer this video to know more about displaying the discount table :

Still unclear?

If you need any assistance, please create a support request at our ticket system. We are always happy to assist you :)

Did this answer your question?