Advanced Archives - Plugin Republic https://pluginrepublic.com/support-categories/advanced-woocommerce-fees-and-discounts/ WooCommerce Plugins Thu, 09 Jul 2020 15:16:45 +0000 en-US hourly 1 https://pluginrepublic.com/wp-content/uploads/2020/10/cropped-favicon-1-32x32.png Advanced Archives - Plugin Republic https://pluginrepublic.com/support-categories/advanced-woocommerce-fees-and-discounts/ 32 32 Exclude products from role-based rules https://pluginrepublic.com/documentation/exclude-products-from-role-based-rules/ https://pluginrepublic.com/documentation/exclude-products-from-role-based-rules/#respond Mon, 20 Jan 2020 12:14:30 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=224900 You can exclude certain products by ID from your global role-based rules using the wcfad_exclude_from_role_based_rules filter as in the following snippet. Just replace the product IDs in the array: If you would like to exclude all the products in one or more categories, you can use this snippet. Just change the name of the categories: […]

The post Exclude products from role-based rules appeared first on Plugin Republic.

]]>
You can exclude certain products by ID from your global role-based rules using the wcfad_exclude_from_role_based_rules filter as in the following snippet. Just replace the product IDs in the array:

View this code snippet on GitHub.

If you would like to exclude all the products in one or more categories, you can use this snippet. Just change the name of the categories:

View this code snippet on GitHub.

Here’s how to add a snippet to your site.

The post Exclude products from role-based rules appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/exclude-products-from-role-based-rules/feed/ 0
Add text to price label https://pluginrepublic.com/documentation/add-text-to-price-label/ https://pluginrepublic.com/documentation/add-text-to-price-label/#respond Fri, 22 Nov 2019 11:59:25 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=167803 Fees and Discounts will update the product price label to show a price range that includes possible discounted values. If you’d like to change the text the label displays, you can use the following snippet. In this example, instead of displaying the price as a range, e.g. ‘$15 – $20’, the price will be displayed […]

The post Add text to price label appeared first on Plugin Republic.

]]>
Fees and Discounts will update the product price label to show a price range that includes possible discounted values.

If you’d like to change the text the label displays, you can use the following snippet. In this example, instead of displaying the price as a range, e.g. ‘$15 – $20’, the price will be displayed as ‘From $15’.

View this code snippet on GitHub.

You can add this snippet by following these steps.

The post Add text to price label appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/add-text-to-price-label/feed/ 0