Hi,
I’m using the WoodMart theme with Elementor, WooCommerce, and WordPress, and I have two issues with the sale badge on variable products.
Issue 1 – Wrong discount percentage:**
When I set a product on sale — for example, from 30€ down to 25€ — the sale badge displays “-30%” instead of the correct discount percentage, which should be approximately -17%. The badge seems to be rounding or miscalculating the discount percentage for variable products.
Issue 2 – “-0%” badge displaying:**
On the homepage and in the related products section, some products are showing a “-0%” sale badge, even though there is no valid discount applied. This badge should either not appear at all, or display the correct percentage.
Could you please advise on how to fix both issues? Is there a built-in setting, or is a code customization required?
Thank you!