Support » Plugin: Discount Rules for WooCommerce » Wrong sale badge

  • Hello
    I am using this plugin and works great except on product archives display always 100% discount
    I am using OceanWP and Elementor Pro
    Any help about it?

    thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author flycart

    (@flycart)

    Hi

    Thank you for reaching out. It seems your theme has a snippet that customizes the Sale badge (Example; By comparing the regular price and sale price, it displays a percentage).
    That may be the reason why it shows a 100%

    Something like mentioned in this tutorial: https://www.cloudways.com/blog/change-sale-badge-text-in-woocommerce/

    However, our plugin does a dynamic discount. So that custom function written in the theme might not aware that there is a dynamic discount

    The function could probably in a functions.php file or another file inside the theme.
    If you have trouble finding it out, we can assist you with it.
    Please post a support request at https://www.flycart.org/support
    Happy to help

    Thanks
    Ramesh

    By comparing the regular price and sale price, it displays a percentage).
    That may be the reason why it shows a 100%

    However, our plugin does a dynamic discount. So that custom function written in the theme might not aware that there is a dynamic discount

    Then how do I call your discount price on the functions?

    • This reply was modified 6 months, 2 weeks ago by  80treize.
    Plugin Author flycart

    (@flycart)

    It is be possible when you have just one rule with a single discount.

    Please send us a support request at https://www.flycart.org/support
    We can provide you a snippet that you can use at the custom “Sale” text to show the discount.

    However, if you have multiple rules with different conditions, then showing a discount percentage or price on a sale badge might not be correct.

    A simple example:
    Let’s say, you have a tiered discount

    Buy 5 – 9, get 10%
    Buy 10 – 20, get 15%

    Now if the Sale badge is shown with 10% discount on it, this will convey a wrong message. Customer will assume that the product has 10% discount starting from quantity 1. But that assumption is wrong according to the rule.

    Here is a complex rule example:
    Let’s say, you have: Buy Product A, get 20% discount on Product B.
    In this case, the discount percentage in Sale tag can be shown only if the customer added the Product A to cart. Until that, he is not eligible for discount.

    Because of these scenarios, by default WooCommerce only shows the “Sale” text badge. But a few theme providers customize it by showing a percentage comparing the regular – sale prices. Nothing wrong. But when you go for a dynamic pricing/discounts, this concept might not be applicable.

    Hope this makes sense.

    Thanks
    Ramesh

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Wrong sale badge’ is closed to new replies.