Display a shortcode or text only when condition is met
-
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 . 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)
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.