Home Forums WoodMart support forum Variable products sale badge: wrong %

Variable products sale badge: wrong %

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #710555

    digitalweb66.fr
    Participant

    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!

    #710658

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Please check how it works with the default WordPress theme and Woocommerce Storefront theme just to check whether the issue is with our theme or not. Also, please check the site with our theme but only with the theme default plugins activate, and deactivate all the 3rd party plugins from the site.

    If it works fine with the default WordPress theme then provide the admin panel login details of the website to check it myself and help you out accordingly.

    Best Regards

Viewing 2 posts - 1 through 2 (of 2 total)