Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Add new Attribute Option Type

Add new Attribute Option Type

Locked

Views: 982

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
17 May 2009, 6:30 PM
#1
wow11111 avatar

wow11111

New Zenner

Join Date:
Mar 2009
Posts:
8
Plugin Contributions:
0

Add new Attribute Option Type

I need to add a new Option Type, same like the TEXT Type (I named it DATE).

What I did...

  • Added line to DB products_options_types (products_options_types_id=6, products_options_types_name=Date)
  • Searched with Developer Tool Kit all files for "_type_text"
  • Wherever "PRODUCTS_OPTIONS_TYPE_TEXT" appeared, I added the same code again (line or block) with "PRODUCTS_OPTIONS_TYPE_DATE".

-> New Option Type shows up in dropdown menu within Option Name Manager
-> New Option Name can be created for this Type

Problems:

  • No entry is created in DB products_options_values_to_products_options
  • Error while choosing Option Name=Date and Type=Text in Attribute Controler
  • Adding DB entry manually no error in Attibute Controller, however Attibute showing up as "Radio" in Product

Any help on this how to get the new Option Type up running?? :wacko: