• Resolved Johnny5

    (@jspik)


    Hi,

    I have a product with a single variation that is on sale – the other variations of that product are not.

    I would expect the “On Sale” catalog badge to show up but it does not. Single products that are on sale show the badge, and products with variations will show the badge if all variations are on sale.

    I understood that is_on_sale() should return true for a product if even one variation is on sale? Is there a setting that I am missing or is this a bug?

    Johnny

Viewing 1 replies (of 1 total)
  • Plugin Support Rafy

    (@nawaz0705)

    Hi @jspik

    Thank you for reaching out!

    I have tried to reproduce the issue on my test site, but was unable to. The “Sale” badge is showing when at least one variation is on sale, which is the default behavior.

    On your website, it seems to be a conflict with your theme or with another plugin which is causing the “Sale” badge not showing.
    ?
    The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing the conflict. You can find a more detailed explanation on how to do a conflict test here.

    Before you start

    • First, please make sure you have a good backup in place of your full site and database. Most hosting companies have this included in the subscription, but you could also consider using a service like Jetpack. If something goes wrong, it’s nice to know that you can restore your site.
    • Second, I would suggest installing a plugin called Health Check & Troubleshooting. This is a plugin developed by the WordPress community, and it allows you to disable plugins without affecting your current site visitors.
    • Thank you!

Viewing 1 replies (of 1 total)
  • The topic ‘“On Sale” Tag Not Showing for Single Variations’ is closed to new replies.