• Resolved wunex

    (@wunex)


    Hello,

    In basic WooCommerce, you can easily hook up the sales badge using the following code:
    add_action( 'woocommerce_sale_flash', 'some_func', 25 );
    However, I am struggling to find a similar method for WL: Universal Product Product Layout to add a badge with own text, particularly one that calculates the percentage from the dropped price.

    Thank you in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Tarek Aziz

    (@tarekht)

    Hello @wunex,

    Thank you very much for contacting us ??

    I am sorry for the inconvenience you had.

    Actually, the widget you are referring to is custom-built, which is why you won’t be able to hook up the sales badge using the hook you mentioned above.

    However, we have two other hooks available in the plugin that can help you manage such things. Could you please try using them?

    The hooks are the following:

    woolentor_sale_badge_text (For products available in stock)
    woolentor_shop_out_of_stock_text (For out of stock products)

    In addition to these hooks, there is an added option available in the pro version of the plugin that enables users to manage the sales badge effortlessly.

    I hope this helps! Please let me know how it goes.

    Our support team is always here to assist you.

    All the best,
    Tarek Aziz

    Thread Starter wunex

    (@wunex)

    thank you so much for the reply!

    Plugin Contributor Tarek Aziz

    (@tarekht)

    You are so very welcome ??

    Alright, then I am going to mark this thread as “Resolved” for now.

    If you need any further assistance, please don’t hesitate to reach out.

    Our support team will be more than happy to help you out.

    Kind regards,
    Tarek Aziz

    Thread Starter wunex

    (@wunex)

    Hello, actually I have one.

    in includes\helper-function.php:987 I find that there’s coded functionality for percentages. that’s what I’m trying to achieve tbh. however, i think it returns else block for me line:1017. How can I achieve that it would show percentages instead of Sale text?

    Thread Starter wunex

    (@wunex)

    Nevermind, ignore above, I’ve achieved it. Have a great day

    Plugin Contributor Tarek Aziz

    (@tarekht)

    Hello @wunex,

    Thanks for the update ??

    It’s great to hear that you have already figured out how to achieve the functionality.

    If there is anything else we can assist you with, please don’t hesitate to reach out.

    Our dedicated support team will surely help you out.

    Sincere regards,
    Tarek Aziz

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WL: Universal Product Product Layout’ is closed to new replies.