Reply 326137 to: Hide Out-stock variation loop on shop, categories, etc.

Avatar: Rose Tyler
Rose Tyler
Support staff
June 16, 2022 at 12:56

Hello,

We did some extra conditions to prevent loading out-of-stock variations but we used before and now WordPress transients that allow us to keep values (ids of variations) for some time and not make a new request every time on page load. It means that we make a request only once a day and all other times we return the variations ids (set earlier) from transients.

More about transients -> https://developer.wordpress.org/apis/handbook/transients/

xstore/framework/woo.php
function – etheme_product_variations_excluded

Regards

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.