I have a custom hook to show the stock status. It seems that with 2.0 the default woocommerce hooks are no longer used. All products show as “in stock” while in fact they are not.
The page I need help with: [log in to see the link]
I just checked the old version, but I can’t see any hooks used to display the stock status. Are you overriding the template via a child theme and using custom hooks?
Hi @opicron Thanks for the screenshot. In the old version, are you using any other plugin to display the stock? It doesn’t look like the default WooCommerce function. You can override the template and use a custom function in the stock status loop.
@im_niloy no I am not using a plugin to show the stock. The stock is shown with the Woocommerce filters.
It seems you do not understand the Woocommerce stock methods. The products I show in the NEW version of your plugin are NOT on stock in the backend of Woocommerce. There are no customizations!
Thanks for sending the screenshot. You’re correct, both the new and old version of the code skip this feature. I’m not sure how it’s working in the old version if the function is not being called.