Hi,
this code will display an error message if the customer does not choose 3 colours from your features checkbox list. It will apply to any product that has its features displayed as checkboxes.
First create a new language record LangUserThreeColours with your warning message eg Please choose 3 colours for this product. Save and reset your language.
Then open the file shopproductfeaturesprocess.asp and find the sub routine called sub ProcessCheckBox (at line 150 approx.)
Find these lines of code
Featurecount = featurecount + 1
end if
next
and insert the following lines:
''********* 16.06.2014 CUSTOM check for 3 colour features selected
If featurecount<>3 then
ShopError GetLang("LangUserThreeColours")
end if
''*********
Save, upload and test.
Regards,
Carrol
www.deanston-electrical.co.uk