Home › Forums › WoodMart support forum › Cross overlay for Out of stock variations is not showing – Stopped working › Reply To: Cross overlay for Out of stock variations is not showing – Stopped working
harshwe
Hello Luke,
Thank you for your response.
During your testing did you made some changes in this file, for testing purposes –
/../themes/woodmart/woocommerce/single-product/add-to-cart/variable.php
and with custom field wd_page_css_files for that specific product
I hope, you might have reverted back them.
Yes, I have written that in my second response regarding this- “In order to activate styles with disabled switches, this option https://take.ms/UA2XQ must be enabled”
And, On both Live and staging site that option is Disabled. Still working on Staging2 site, but not on Live site.
After carefully looking at everywhere, I found that I was using below small code snippet (Private area) in child’s functions.php to have the same effect of greyed-out swatches for out of stock variations, before you (woodmart team) even brought such feature.
I was using since then.
And I might have removed and updated some custom codes (non-required) on Live site, to make it minimal, not realizing, that this additional code making the difference. As the code still remains in the staging2 site.
Because, I thought as this feature is now already available in the Woodmart theme, so this custom code is not required anymore. So I removed that from Live site. But during that I did not checked any variable product to cross-verify.
Please let me know, was that below code is the one, that is making the difference. If so, I will enable this option on the Live site- https://take.ms/UA2XQ
Regards