Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Forcing the selection of an attribute

Forcing the selection of an attribute

Locked

Views: 1,288

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
26 Apr 2009, 1:46 AM
#1
fastdc5 avatar

fastdc5

Zen Follower

Join Date:
Jan 2009
Posts:
104
Plugin Contributions:
0

Forcing the selection of an attribute

How and/or what do I need to do so that an item can not be added to the cart until either a drop down is selected and/or radio button selected?

Example:

Rim A:

Comes in red / silver / black / gold
Comes in 15"/16"/17"/18"

26 Apr 2009, 1:53 AM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,180
Plugin Contributions:
0

Re: Forcing the selection of an attribute

fastdc5:

How and/or what do I need to do so that an item can not be added to the cart until either a drop down is selected and/or radio button selected?

Example:

Rim A:

Comes in red / silver / black / gold
Comes in 15"/16"/17"/18"

Fa,
This will come in handy for you..

Attributes, Force to Select

Right now I can add to the cart and not select a color.. BAD. I am automatically linked to the shopping cart with the default color Black, but really I wanted White..

The beauty of this procedure: Is a warning box appears at the top of the page stating they have not selected a attribute color you offer to the customer.

Example of what it should look like in the Option Value Manager:

  1. Add the following Option Values below
  2. color Please Select Color: 0
  3. Now that we added this it should look like this below

Please Select Color 0
Red 10
Silver 20
Black 30
Gold 40

Now in Attribute Controller for the product with this Option Name Value:

  1. Add, Please Select Color to product, sort order 0
  2. Associate the flag properties to Please Select Color
  3. Under Attribute Flags: the colored boxes
  4. Yellow box, Used for Display purpose only: Click Yes
  5. Tan box, Default Attribute to be marked selected: Click Yes
  6. Now when you click the add to cart a warning flag will appear for the customer to choose a size.