Hello, @Farhad,
We have conducted a test on our site to replicate the issue you reported and found no problems. The stock status is displayed correctly when a Virtual Product with the “Manage Inventory” option is unchecked.
It appears that the issue is unique to your site. It is possible that a conflict with a third-party plugin on your site is causing this problem. We recommend disabling all third-party plugins that are not included with XStore (https://www.8theme.com/documentation/xstore/plugins/included-plugins/), clearing your browser’s cache, and then rechecking the issue. It is possible that one of these additional plugins is the source of the problem.
Please ensure that you have a complete backup of your site before proceeding with these steps.
Alternatively, you can try to resolve the issue by copying and pasting the following CSS code under XStore > Theme Options > Theme Custom Css > Global CSS and then publishing it:
.woocommerce-variation-availability p.et_stock.et_in-stock.stock.in-stock.step-1 {
visibility: visible !important;
}
.woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-enabled p.et_stock.et_in-stock.stock.in-stock.step-1 {
visibility: hidden !important;
}
We hope that these steps will resolve your issue.
Best Regards,
8Theme’s Team.