I have enabled the out of stock product to be displayed in frontend. In one of the configurable product, I have set out of stock for one of the variant and in the frontend, I can see the out of stock product but there is a cross mark in the swatch.

Also, I want to show the button text as "Out Of Stock" instead of "Add to Cart" for the out of stock products?

enter image description here

How can I remove the cross mark and make it unclickable and make the button change?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.