Hi marvista ,
this is a free plugin, you can use it without paying nothing and receive a free service.
I told the developer of a javascript crash 6 months ago
This is simply not true, this is your topic in our support forum
https://ww.wp.xz.cn/support/topic/you-saved-is-the-total-amount/
and is not about ” javascript crash” but is about ““You Saved” is the total amount” and is solved.
That code is PHP not Javascript, the first condition at line 17 of display_total.php is
if ( $_product->is_on_sale() ) {
is correct and the error is only in your installation.
Please don’t blame others for your installation issues.
It would be great if among human beings you could be more kind and grateful to people who give their time for free to solve your needs.
Kind Regards
You are correct that its php, not javascript, my bad.
But the error is still there in v1.2.5.
And the reason is that there are ways other than having a sale price for which $product->is_on_sale() returns true,
In our case we use woocommmerce dynamic pricing. And that creates discounts, returns true from is_on_sale(), but there is no ‘sale_price’.
Hi,
There is no error in version 1.2.5 or later.
The plugin must be compatible with WooCommerce, but can’t be compatible with all the thousands of WooCommerce extension like the one mentioned that use specific functions or call that can’t reasonably be forseen.
So please cooperate with people that give you for free a solution and don’t confuse an understandable need with a Woo Discount plugin’s bug.
Kind Regards