This topic has 2 replies, 2 voices, and was last updated 3 years, 3 months ago ago by Olga Barlow
Hello guys,
It’s me, again… So, I already know you don’t do custom configuration but I need help to locate the right file(s).
On our website, we have a “waiting list” available so when a product is out of stock, customers can receive an alert telling them, it’s back in stock. This is why, we can’t use the global option “hide out of stock product”.
BUT, we also know that it’s better to hide out of stock product from the category archives. So I spent hours trying to find a way to hide them from category pages but show them on single page product (Yeah, life can be so complicated sometimes…). What I managed to do is to hide out of stock products from the category pages but I would like them to be used as the one provided by your theme. (See screenshot below + link if not clear)
So I guess, I have to mess up (doing a backup first) one file to replace the hook/system you have in place. With that in place, customers can add to basket as usual but will only see the available sizes…
So, my question is: which file do I have to copy and put in my child them folder to achieve that complicated plan of my boss?
As I said, I really don’t expect you to solve this for me as it’s soooo crazy but if you could just point me in the right direction, that would be awesome. I would send you a gift basket with homemade cookies if I could because you’re support have been nothing but awesome. And I’m not trying to flatter you so you can help, I really think that (and will go and rate the theme as soon as my done with the website because I can’t do anything else right now).
Hello,
Unfortunately, we don’t have option to hide out of tock variations there only.
Swatches code you can find in et-core-plugin\packages\st-woo-swatches\st-woo-swatches.php. Remove sten_wc_cart_attribute_html filter in child theme to disable our swatches code. And add your own filter that will display things that you need.
Regards
You must be logged in to reply to this topic.Log in/Sign up