Pro / Woocommerce hooks overriding badge manager plugin

Hello there,

We are using the YITH WooCommerce Badge Management plugin and it displayed the badges fine until quite recently. Now we have the problem of Woocommerce imposing it’s own badge onto sale items - please see the black ones here: https://wholesale.noblecollection.co.uk/product-category/star-trek/

I switched the theme and the YITH badge appears (and the Woocommerce badge is still there).

YITH have looked and concluded that the theme is overriding the plugin settings. A URL to our test site is in the secure note.

I am not sure what hooks are involved here.

And later they said that their plugin wasn’t able to remove the badge due to these hooks:

Their CSS solution is not usable as it does not help display the YITH badge. Woocommerce / Pro seems to be blocking the YITH badge from loading into the page at all.

Have you encountered this problem before and have any idea what to do?

Thanks :-}

Spencer

Hello Spencer,

Thanks for the detailed information. I have checked the Product Category archive for Star Trek. I found out that you have used the WooCommerce Archive Layout builder. Be advised that you are not using the default WooCommerce structure. This is why the badge from the plugin is not displayed. If you unassign this layout and use the theme’s default WooCommerce archive template, the badges will display for sure.

Be advised that the plugin is not supported with the Cornerstone WooCommerce Archive Layout. You can only use this plugin when using the default WooCommerce template of the theme. Any custom archive layouts built with the Cornerstone builder, those badges from the [plugin will not display.

Best Regards.

Hi @ruenel,

Thanks for getting back to me. I remember now why we used the WooCommerce Archive Layout builder - the cateory title is not appearing in the default Woocommerce template. Please see the attached image of the markup - the title container is empty. Any idea why?

Thanks a million :-]

Spencer

Hello Spencer,

Please note that the archive title is going to be displayed when the default header is rendered on the archive pages. In case you render the Pro theme’s custom header, then it will not display the archive title. I would suggest you please display the product category archive title using the dynamic content code through the custom header builder. Alternatively, you can disable the custom header, and the default template will display the archive title on the archive page.

Thanks

Hi @prakash_s,

What condition do I add to the header bar? I can’t find anything similar to ‘current category’

Thanks!

Spencer

Hello Spencer,

Please set the conditions on the Header bar where you have called the product category title. Your conditions would be like this. “Post(has taxonomy) has Product categories”

Hope it helps
Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.