• Hello!

    I have a little problem – I made custom single product pages, so I’m not using default WooCommerce interface. The problem with that is that products and products variations don’t display any “On sale” badges or anything when they are opened. So, what I’m thinking is that I could add a text or a shortcode that displays the badge that I want only when the product is for example on sale.

    I tried a few plugins to add badges, but none of them work, since the single products are made the way they are.

    What would be the best way to display On sale, Low stock, Not in stock badges?

    Kind regards

    • This topic was modified 2 years, 5 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    I made custom single product pages, so I’m not using default WooCommerce interface.

    If this was a custom design, you may have to go back to your developer team and ask them to make the necessary change(s) to the theme. Commercial products are not supported in these forums.

    Thread Starter jazzu

    (@jazzu)

    Hi @t-p !

    Thank you for your reply. By custom design I mean that I’ve created the single product pages in Elementor. So basically I’m just wondering how I would add a text or shortcode that only displays when the product is on sale. If that’s against the guidelines, I’m sorry.

    Kind regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display a shortcode or text only when condition is met’ is closed to new replies.