2010-09-09 48 views
2

目前正与Magento的项目工作.. 在我所上的点stucked .. 是当管理员通过magento数据库结构?

添加任何子目录/类别 管理类 - > custome设计

这里的给两个可选像

活动从主动到 .. 任何人都可以,谁知道Magento的数据库,告诉我在哪里或在哪个表这两值店

感谢您的任何建议或帮助!

回答

2

我已经列出了以下目录类别的属性。由于类别是EAV类型,因此您需要查看特定的子表以获取您的值。在这种情况下,custom_design_fromcustom_design_to是日期时间值,而实体的名称是catalog_category_entity,所以您要的表格是catalog_category_entity_datetime

接下来的问题,你会发现获取正确的属性ID。因为他们是容易改变,这里的SQL查询,以便抓住他们运行:

select attribute_id, attribute_code from eav_attribute where entity_type_id = 3 and attribute_code in ('custom_design_from', 'custom_design_to'); 

我得到52和53,但YMWV。希望有所帮助!

谢谢, 乔

+----------------------+--------------+ 
| attribute_code  | backend_type | 
+----------------------+--------------+ 
| name     | varchar  | 
| is_active   | int   | 
| url_key    | varchar  | 
| description   | text   | 
| image    | varchar  | 
| meta_title   | varchar  | 
| meta_keywords  | text   | 
| meta_description  | text   | 
| display_mode   | varchar  | 
| landing_page   | int   | 
| is_anchor   | int   | 
| path     | static  | 
| position    | static  | 
| all_children   | text   | 
| path_in_store  | text   | 
| children    | text   | 
| url_path    | varchar  | 
| custom_design  | varchar  | 
| custom_design_apply | int   | 
| custom_design_from | datetime  | 
| custom_design_to  | datetime  | 
| page_layout   | varchar  | 
| custom_layout_update | text   | 
| level    | static  | 
| children_count  | static  | 
| available_sort_by | text   | 
| default_sort_by  | varchar  | 
| include_in_menu  | int   | 
+----------------------+--------------+ 
+0

@ joe ...谢谢!!!有用!! – PHP 2010-09-10 04:45:41

+0

这真的属于一个单独的问题(需要更多的空间来回答)。 – 2010-09-10 12:15:01

0
Active from is an attribute whose attribute_code is custom_design_from(attribute_id 57) and Active To is an attribute whose attribute_code(attribute_id 58) is custom_design_to. 
This both attributes value are stored in database table `catalog_category_entity_datetime`. 

检查上面像ENTITY_ID的价值排表是你的类ID,attribute_id是57和值活跃是店表相同的活性,以价值value场存储在value字段中,entity_id是您的类别ID,attribute_id是58.