17 May 2009, 6:30 PM
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: