I am trying to modify default magento functionality. On product page i have two custom option of a simple product.
- Color with option (Red, Blue, Black, Custom)
- Size with option (S, L, XL)
I have added one extra filed in admin custom option area to add extra value for Custom color option.
Now i want to do following,
When i select Color = Custom, want to hide Size and user can add product without Size option. Both Option (Color and Size) are required.
I want to skip validation for only Custom color option. I am new to magento so dont know how to achieve this. Please suggest me something.
I have added code to show/hide option base on selection. But when i click on add to cart button, i am getting error message Please specify the product required option(s).