This topic has 14 replies, 2 voices, and was last updated 1 months, 1 weeks ago ago by Rose Tyler
Hi! I created in my site a product with two attributes “Type” and “color”, but when I choose the type I see all the color options even if there is no availability, only they are either blurred or with a crossed line, but I do not want them to appear because I need to put many more colors as they depend on the selected type and it would be very uncomfortable to show so many unavailable, I need to disappear the color circle when select the first attribute.
I read many blogs and you recommend to select “Hide out of stock items from the catalog” and i did but does not work with the variation swatches and in the custom options of the theme just appear options to blur/default/or croos-line, but not to hide.
Thank you
Hello, Diana,
Thank you for reaching out to us.
We understand your concern regarding the display of unavailable color options when selecting the “Type” attribute on your product page. As you mentioned, the current settings allow for blurring or crossing out unavailable options, but do not provide the functionality to completely hide them.
While the “Hide out of stock items from the catalog” option is a general WooCommerce setting, it may not apply directly to variation swatches in the way you’re expecting. Unfortunately, the theme’s built-in options currently only allow for blurring, default, or crossed-line styles for unavailable variations.
To achieve the functionality you’re looking for, where unavailable color options are hidden based on the selected type, you may need to implement custom code, for example, this CSS:
ul.st-swatch-preview li.sten-li-disabled {
display: none !important;
}
Best Regards,
8Theme’s Team
Hello, thank you for your prompt reply. I implemented the code in the section “theme custom CSS-global” but it works only if I’m logged into wordpress, I send you a video to see the comparison, if I’m logged into my wordpress user and preview, it works, but when I publish it and open the website on my mobile or on another computer, it still looks the same.
Thank you very much
Hello, Diana,
Could you please provide temporary wp-admin access? We need to check your settings.
To grant WP-Admin access, please proceed to create a new user account with an administrator role through your WordPress Dashboard. Once the account is established, you may securely transmit the username and password to us via the Private Content section designated for this purpose.
Best regards,
8Theme Team
I created the new user. Thank you
Hello, Diana,
It appears that the wp-admin link is redirecting to a “Page Not Found” error. Could you kindly provide the correct URL for the login page?
Thank you for your assistance.
Best regards,
8Theme Team
Sorry i forgot
Hello, Diana,
We appreciate your prompt response.
We’ve changed the code. Please check the result on the single product page.
Best regards,
8Theme Team
No is the same problem
Hello, Diana,
Private Content
Best regards,
8Theme Team
Yes that is what I sent you at the beginning, that when I’m logged into the wordpress panel works perfectly, but when I log out of the session no longer works, I leave the video so you can see the difference.
Hello, Diana,
If the admin and a new user (who is not logged in) are seeing different content, it likely indicates that the cache has not been cleared. Only a logged-in admin can view the uncached version of the site. We recommend temporarily disabling the cache plugin and CDN to check if this resolves the issue.
Best regards,
8Theme Team
Hello! We logged into wp-admin and cleared the cache entirely, and also purged the SiteGround cache (our hosting), but the issue persists. Also we added ?nocache to the end of the URL, but the issue is still there. You can test it yourself as well.
https://fingocases.com/product/cordones-para-movil/?nocache
However, I can confirm that it’s not related to any caching.
Thank you
Hello, Diana,
Have you had the chance to try disabling the WPRocket plugin? https://prnt.sc/_kcL11fUAEn1
Best regards,
8Theme Team
You must be logged in to reply to this topic.Log in/Sign up