Customizing Volume Pricing Table

There are various ways to use and customize the pricing table. Below are some possibilities.

Using filters to override the data

Some small changes are possible using filters. You can find more information on the Filter Reference page.

Output the table in custom locations

It can be done by using the function rp_wcdpd_display_volume_pricing_table(). You will just need to provide the product id as parameter and the pricing table can be displayed anywhere on any custom template.

Overriding the default templates

You will need to navigate to this folder to find template files of the volume pricing table:

extensions/promotion-volume-pricing-table/templates/

Copy the contents of this folder to your theme, creating a path like this:

{theme_folder}/wc-dynamic-pricing-and-discounts/extensions/promotion-volume-pricing-table/

Then, depending on the “Layout” option selected, you can change any template file however you want: change the structure of the table, add any needed classes, ids (to create additional CSS rules), or scripts.

For example, if in options you selected “Layout” of the table as “Inline – Horizontal”, then you will need to edit horizontal.php file.

?