Forums / Templates, Stylesheets, Page Layout / Make an attribute "Required"

Make an attribute "Required"

Locked

Views: 1,088

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
16 Oct 2009, 11:31 PM
#1
wulfgen avatar

wulfgen

New Zenner

Join Date:
Jun 2008
Posts:
1
Plugin Contributions:
0

Make an attribute "Required"

Brand new zen cart noobie...

How do I go about setting the cart to give an error message if a color or size is not selected?

Other words, if a user chooses a shirt but does not pick a size or color, they can still add it to the cart, I want to make sure they have to pick a size and color, or whatever attribute is set for any item... is that possible?

:lookaroun

17 Oct 2009, 12:43 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Make an attribute "Required"

In Catalog > Attributes Controller, when adding/editing an attribute, either make one of the sizes/colors "Default", or add another attribute for the set named "Select" or whatever you like, and make that Default and Display Only. This will force the customer to actively make a choice; the first version is good where most people choose one particular option.