WooCommerce Dynamic Pricing and Discounts – Altering price HTML for variable products

Consider a scenario where you want to set custom price HTML for variable products on your WooCommerce store. You can do away with the default price HTML and set one of your choice. You can achieve this by using a simple code snippet with our Dynamic Pricing and Discounts Plugin for WooCommerce.

Following is a screenshot of a variable product with default price HTML:

WooCommerce Dynamic Pricing and Discounts - Default Price HTML

Default Price HTML

To change the price HTML, copy the following code snippet and paste it in the functions.php file of your respective website theme folder.

Once you have pasted the code snippet and updated the functions.php file, you can see the changes in the variable product’s page as shown below:

WooCommerce Dynamic Pricing and Discounts - Custom Price HTML

Custom Price HTML

To know more about other features of the plugin, read documentation.

Leave a Reply