在管理客户中添加额外字段并在magento中编辑客户部分

时间:2015-01-28 18:14:08

标签: magento-1.8

我正在使用 Magento ver。 1.9.1.0

所以请根据magento的版本帮助我。我是新手。

我面临的问题是我想使用额外的(Lat Long字段)管理客户 - >在magento后端添加新客户,以便用户可以添加地址的latlong(任何latlong)。现在我已经从网站上尝试了以下步骤。 http://excellencemagentoblog.com/blog/2011/10/02/customer-registration-fields-magento1-6/ https://magento.stackexchange.com/questions/45620/how-to-add-extra-fields-in-registration-form http://www.silksoftware.com/magento-module-creator/#instructions

但我无法解决问题。在某处显示我的帐户在前端的额外字段,但我想使用管理客户的后端额外字段作为地址并保存它。 所以如果可能的话请给我正确的方法,如果你有正确的教程,请回复我。 我从几天开始尝试这个但仍然没有运气。

此外,我还尝试从mangeto connect安装一些扩展程序但是给出了错误

1 个答案:

答案 0 :(得分:0)

谢谢大家,我通过以下查询完成了这项工作。

INSERT INTO  `sta_eav_attribute` (

attribute_identity_type_idattribute_codeattribute_modelbackend_modelbackend_typebackend_tablefrontend_modelfrontend_inputfrontend_labelfrontend_classsource_modelis_requiredis_user_defineddefault_valueis_uniquenote ) 价值观( NULL,' 2',' latlong',NULL,NULL,' varchar',NULL,NULL,' text',' Lat Long',NULL,'' 1',' 0',' 0',' 0&# 39;,'' );

INSERT INTO sta_eav_entity_attributeentity_attribute_identity_type_idattribute_set_idattribute_group_idattribute_idsort_order ) 价值观( NULL,' 2',' 2',' 2','您的最大值为sta_eav_attribute',' 200' );

INSERT INTO sta_customer_eav_attributeattribute_idis_visibleinput_filtermultiline_countvalidate_rulesis_systemsort_orderdata_model ) 价值观( '你的id最多为sta_eav_attribute',' 1',NULL,' 1',NULL,' 0',' 0&# 39;,NULL );

INSERT INTO sta_customer_form_attributeform_codeattribute_id ) 价值观( ' adminhtml_customer_address','您的sta_eav_attribute' ),( ' customer_address_edit','您的最大值为sta_eav_attribute' ),( ' customer_register_address','您的sta_eav_attribute' );

相关问题