Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / How to force an option with 1 value? ie. compulsory

How to force an option with 1 value? ie. compulsory

Views: 380

Results 1 to 3 of 3
9 Jan 2013, 11:26 PM
#1
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

How to force an option with 1 value? ie. compulsory

Am trying to force an Attribute with a Single Option Value on a product....

I'm trying to use the Attribute feature to define a HazMat property and charge one time charge of $25.

So i set like this.
Option Name: Hazmat with a single Option Value.
So to force the value to be selected i set as a Radio button (so it can't be unchecked) and set as default value.

This seems a little convoluted maybe, is there a better way?

Also, a problem is the text that appears above reads 'Please choose' which doesnt' make sense.

9 Jan 2013, 11:33 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How to force an option with 1 value? ie. compulsory

In attributes controller you will see a "legend" indicating the function of various "switches" which are indicated by little circle icons with an "x" in them. By making the attribute OPTION a REQUIRED option and the DEFAULT option, you will get the behaviour you are looking for.

10 Jan 2013, 3:56 AM
#3
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

Re: How to force an option with 1 value? ie. compulsory

thank you