• Resolved computermobil

    (@computermobil)


    Hi friends.
    Just tried your plugin and this is exactly what i need. The only issue i found is that when i set a discount, for example an attribute, the price is calculating correct but the discount badge of product shows 100% instead of 5% what is the given discount.
    Thank you for any ideas in advance!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hello @computermobil,

    I’m so sorry about the hassles.
    When that happens, it’s usually because of your theme. Typically, our plugin has the power to alter prices based on the customer meeting preset conditions but it isn’t directly responsible for product badges.

    However, if you would please start a new conversation by opening a ticket here, our engineering team would take a look at the issue and either fix it for you or provide you with relevant information to make your installed theme’s manufacturer resolve the issue for you.

    Thank you so much for the kind words, by the way. We appreciate it!

    Regards,
    Adeniran.

    One of my clients has this same problem and it’s not because of their theme.

    The problem is that your plugin has a bug in the WAD_Discount::get_sale_price() function when called from the woocommerce_product_get_sale_price filter, which always returns 0 for simple products that don’t have a specified sale price. This of course causes any theme trying to calculate the discounted percentage to show 100% because it gets 0 as the product’s discounted price.

    Thread Starter computermobil

    (@computermobil)

    Thank you @gonssal
    You are right, i have tried several themes and its the same problem everywhere.
    I wrote the developer already a ticket two weeks ago, but they did not answer.
    Maybe they think about a solution for that issue @deniran that would be great,
    Thank you in advance!

    Plugin Author Hermann LAHAMI

    (@mano88)

    Hello,
    Can you try after the new version released today?

    Thread Starter computermobil

    (@computermobil)

    Thank you @mano88
    For the first view it seems to work correct.
    Great work, thx

    So not even an acknowledgement of the issue or a simple thank you for pointing out the exact problem, wow.

    Plugin Author Hermann LAHAMI

    (@mano88)

    @gonssal You’re totally right and I apologize for that. I wanted to confirm that the issue has been fixed.

    Thank you for your help on this, from my heart.

    Sadly it’s not properly fixed. If the sale price is 0 it will set it to the regular price.

    Plugin Author Hermann LAHAMI

    (@mano88)

    @gonssal what about after the last update?

    Hello,
    we are experiencing the described problem with the latest version 2.26.
    In our project it seams that bug occurs only for simple products.
    Both in taxonomy or archive view and in single product view the product showed the label “on sale” but it shows the full price without the discount price. The reduced amount is only showed inside the cart.
    Products with variations instead works fine.
    Can you please have a look and fix it as soon as possible?
    Thanks.

    Plugin Author Donald FALY

    (@donaldlaly)

    Hello @happybrain, we could not reproduce the problem.
    Can you please give me more information about the theme used and the type of discount activated. Any information on how to reproduce the problem may be helpful.
    Thank you.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Badge shows 100%’ is closed to new replies.