[Magento] How to add new fields?
2012-12-26 18:54
453 查看
How to add new fields in magento e-commerce?
There is no easy method like adding product attribute for categoryyet. But we can achieve this by adding from database. You just needto deal with three tables in the database.First one is: eav_attribute
Insert details as: [change as you need]
01 | `attribute_id` = '' , |
02 | `entity_type_id` = 9, |
03 | `attribute_code` = 'logo_size' , |
04 | `attribute_model` = NULL, |
05 | `backend_model` = '' , |
06 | `backend_type` = 'text' , |
07 | `backend_table` = '' , |
08 | `frontend_model` = '' , |
09 | `frontend_input` = 'textarea' , |
10 | `frontend_label` = 'EmbroiderySize Options' , |
11 | `frontend_class` = NULL, |
12 | `source_model` = '' , |
13 | `is_required` = 0, |
14 | `is_user_defined` = 0, |
15 | `default_value` = '' , |
16 | `is_unique` = 0, |
17 | `note` = '' |
1 | `entity_attribute_id` = '' , |
2 | `entity_type_id` = 9, |
3 | `attribute_set_id` = 12, |
4 | `attribute_group_id` = 7, |
5 | `attribute_id` =968, [attribute_id you get from first tableinsert] |
6 | `sort_order` = 8 |
相关文章推荐
- Magento - how to add custom variables to new order E-mail?
- How to add some custom registration fields while creating your magento account?(compatible also for 1.4.2.0 version)
- How to add custom fields to Customer Registration and Account page in magento
- [DNN 4] How to add a new member profile fields.
- HOWTO add new codec to ffmpeg
- How to add new item to the Context Menu
- 最近整理的一些msm8909平台英文文档1 - brife_introduction_how_to_add_a_new_lcd
- How to add a new MySQL slave
- How to add a new module to Android_from myself
- HOW TO ADD A NEW A WIDGET AREA TO YOUR WORDPRESS THEME
- How to add a new MimeType to a Virtual Directory with VC++?
- How to add a new keycode in android
- How to add a new MimeType to a Virtual Directory with VC++?
- How to add a new keycode in android
- How To Add a TwoFields Validator
- nopCommerce : Updating an existing entity. How to add a new property.
- [Tips] How to Add New field into Shapefile attribute table in ArcGIS ?
- [QuickSettings] How to add new toggles to 4.2 Android
- FCKEditor 2.x: How to add a new button with custom javascript to the toolbar
- How to add a new key from kernel level to java level