• Resolved Nowarah

    (@nouarah)


    hello
    I have a custom function that calculates the sale percentage that act when the fixed price is applied to woocommerce product however when using the plugin discount rules the percentage is always became 100% off so how i can apply my function when the discount rules is not used?
    my function is something like
    $percentage = round(100 – ($sale_price / $regular_price * 100));

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Thank you for reaching out.

    Our Discount Rules for Woocommerce plugin does not update the prices in the backend (Sale price for discounts).
    Our plugin applies discount on the fly dynamically while adding the product to cart. However, it doesn’t change the price in the back-end.
    The above function, you are using might take the price only from the woocommerce backend. So, the percentage sale badge price will not be reflected.

    Hope this clarifies your doubts.

    Workaround solution:

    Using our plugin, we can show percentage sale badge for price based rules like product adjustment, bulk discount and so on..

    Can you give a try by enabling the three checkboxes from our settings tab ?

    Something from: https://nimb.ws/BLduzD

    Here is a guide detailing the same: (Refer to “Display percentage discount on Sale badge” section

    https://docs.flycart.org/en/articles/4179583-sale-tag-dynamic-sale-badge-2-0

    Hope this helps.

    Thanks

    Team Flycart.

    Thread Starter Nowarah

    (@nouarah)

    I have followed the doc but the same result ! i still got the 100% discount although i only apply 5% rule note that my custom calculation of normal wocommrce price may be the reason but i need them to work both . sale percentage of wc products and the plugin. i have sent a support ticket in site chat

    screenshot of a product after applying discount 5% rule https://prnt.sc/XUhHZuIxyH0C

    Hi,
    Thanks for the detailed reply and for the updated screenshots.

    It seems like you have raised a ticket in our support form and one of our engineers is already in contact with you.

    Thanks
    Team Flycart

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘discount percentage conflict with wc sale’ is closed to new replies.