How can I display unavailable product variants with price in my store?

Hi everyone,
We have some products on our store in some variants unavailable (because of large size) , but we want to have these product variants visible with price. How to do it? It automatically becomes unavailable due to lack of stock.

Thank you in advance for your help!

Jaga

In my store, if a variant is out of stock, you can still see the pricing and can select the variant, but the “add to cart” button changes to read “sold out” if you select the item. In your store, the variant no longer shows?

Or are you wanting to allow backorders of out-of-stock items?

Store sample: https://test-store-colleen.myshopify.com/products/versace_bright_crystal_edt?variant=41127990427826

password: thanksforyourhelp

That’s right, “Out of stock” appears.

And I would like it to then display a message/information that this variant is not available in the Online offer, only stationary.

There is a solution in the forums already. It will take a bunch of changes to your code.

The solution is here: https://community.shopify.com/c/technical-q-a/how-to-properly-display-custom-inventory-message-and-update-when/m-p/727364

Read the entire post, there is a solution near the bottom, but you need to implement what the original poster posted as well. In the supplied code, you can modify the message you want to have displayed on your site for variants that are out of stock.

Hope this helps!

Thank you so much!

I’m going to start reading.