Unable to create custom html for discount
-
Hello
You got a really good plugin and I currently installed the plugin on one of my customers webshops.
I cannot customize the product page though which is a problem, as it means I either have to copy your code and disable your filter for product prices, or I have to edit your plugin, meaning my changes will be gone with each plugin update.
Either way I will have to be more vigilant than usual on plugin updates.
So I have some requests for your free plugin, you can use none or both.
- Update the instance/product variable with the discounts, both with and without taxes in the woocommerce_get_price_html and other filters found in includes/class-awdp-front-end.php. It’s the second variable in the woocommerce_get_price filter.
- make filters in your calculations so that we can get the price before and after discount rules are applied with and without tax,
Both are really easy to implement and would increase the quality of your plugin immensely!
In the future you might want to split up the get_product_price_html filter so that one has the rules in priority 100 maybe and the actual html returned in priority 1000.
- You must be logged in to reply to this topic.