1

I'm using Commerce Kickstart and I have a term reference for Size, and I'm using the Check boxes/radio buttons widget with Commerce Stock and Commerce fancy attributes.

Currently, when the stock of number of a product is 0, the "Add to cart" button is disabled. I would like to take this further by disabling the radio button so that the user can see that a product is out of stock before clicking "Add to cart".

I've tried disabling the product when its stock reaches 0 here: Disable product when out of stock but then the radio button just doesn't get printed when the product is disabled (ie. only printing S,L and XL when M is out of stock) I would still like to print the radio button option for "M" but as a disabled button.

How may I achieve this? Thanks!

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.