The WooCommerce Dynamic Pricing extension does not print a discount table on the single product page. This is due to the complexity of the discount rules you can create, which makes it impossible for the plugin to create a discount table.
But you can still do it manually. Learn this in this article using Dynamic Pricing and the WordPress block and site editors.
Table of contents
Tools Required
- Dynamic Pricing – This premium extension allows you to create simple and advanced discount setups.
- WordPress Synced Blocks – This is included in WordPress to create blocks that can be reused and synced in your site.
Step 1. Creating the Discount Table
After installing and activating Dynamic Pricing and WooCommerce Custom Product Tabs Lite, create a discount rule for some products. In this example I’ll do it only on one product. I configured it as such:
Step 2. Creating a Discount Table Block
Edit any page or post and create the table in the content. Once you are done creating the table block, click on the 3 dots as shown in the screenshot below and select Create Pattern.
This will create a block that can be reused anywhere. If you edit the block anywhere on the site, it will change everywhere it is used.
Step 3. Use the Block in Your Site
You can now open Appearance > Site Editor and use this block in the Single Product Template. You can also use it on any page or post if you need to.
If you have a plugin that allows you to edit the product description via blocks or when WooCommerce finally adds this feature, you should be able to use it there as well.
Leave a Reply