Need help locating attributes/variations in archive/categories

This topic has 2 replies, 2 voices, and was last updated 2 years, 7 months ago ago by Olga Barlow

  • Avatar: g_ozio
    g_ozio
    Participant
    September 15, 2021 at 14:16

    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).

    Please, contact administrator
    for this information.
    1 Answer
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 17, 2021 at 12:58

    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

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.