Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / How to add an Option Type for attributes?

How to add an Option Type for attributes?

Locked

Views: 983

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
11 Jan 2008, 8:10 PM
#1
logus avatar

logus

New Zenner

Join Date:
Jan 2008
Posts:
2
Plugin Contributions:
0

How to add an Option Type for attributes?

I require an special attribute with three text fields validated, My idea is create a new option type called "Phone".

  • I have modified table "products_option_types" to add this new option type, but when I use Attribute Controller my new option don`t show, that is because only Text & File will show without values.

Where do I find in attributes_controller.php that option?

I`m modifing attributes.php another case:

case ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_PHONE):

Where do I define "PRODUCTS_OPTIONS_TYPE_PHONE"?