久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

無法再在 Magento 1.4.2.0 中添加注冊字段

Can no longer add registration fields in Magento 1.4.2.0(無法再在 Magento 1.4.2.0 中添加注冊字段)
本文介紹了無法再在 Magento 1.4.2.0 中添加注冊字段的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我之前已經將本教程用于 將注冊字段添加到 Magento 注冊頁面.

I have used this tutorial before for adding registration fields to the Magento registration page.

它一直有效,但自從我升級到 Magento 1.4.2.0 后,它就不再有效了.我添加的屬性不再像以前那樣顯示在后端的客戶信息選項卡下,并且不會被保存.不過,這些屬性可以很好地安裝到數據庫中.我想可能 config.xml 部分已經更改,但我針對核心客戶進行了檢查,并且屬性仍然以相同的方式顯示:

It has always worked, but since I have upgraded to Magento 1.4.2.0 it no longer does. The attributes I add no longer show up under the customers information tab in the backend like it did before and are not getting saved. The attributes install into the database fine though. I thought maybe the config.xml part had changed but I checked it against the core customer one and the attributes are sill shown the same way:

<flavour><create>1</create><update>1</update></flavour>

自上次 1.4.2 測試版以來肯定發生了一些變化,因為它當時運行良好.如果有人有任何想法,將不勝感激,我終于可以睡一覺了!提前致謝!

Something must have changed since the last 1.4.2 beta because it worked fine then. If someone has any ideas it would be greatly appreciated and I could finally get some sleep! Thanks in advance!

推薦答案

我一直在為這個問題苦苦掙扎,直到我弄明白了.從 1.4.2 開始,要在管理員客戶表單中顯示的屬性必須在表 customer_form_attribute 中.
您可以使用以下代碼在模塊設置中通過升級添加它們:

I have been struggling with this one quite some time untill I figured it out. Since 1.4.2, the attributes to show in the admin's customer's form have to be in table customer_form_attribute.
You can add them with an upgrade in your module's setup, with this code:

$eavConfig = Mage::getSingleton('eav/config');
$attribute = $eavConfig->getAttribute('customer', 'your_attributes_code');
$attribute->setData('used_in_forms', array('adminhtml_customer'));
$attribute->save();

希望有所幫助.

這篇關于無法再在 Magento 1.4.2.0 中添加注冊字段的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Override Magento Config(覆蓋 Magento 配置)
What would cause a print_r and/or a var_dump to fail debugging a variable?(什么會導致 print_r 和/或 var_dump 調試變量失敗?)
How to update custom options programatically in magento?(如何在 magento 中以編程方式更新自定義選項?)
Magento 404 on Admin Page(管理頁面上的 Magento 404)
Magento - get price rules from order(Magento - 從訂單中獲取價格規則)
Magento Change Product Page Titles to Include Attributes(Magento 更改產品頁面標題以包含屬性)
主站蜘蛛池模板: 久久久久久国产精品免费免费 | 欧美成人精品欧美一级 | 国产女人精品视频 | 精精国产xxxx视频在线野外 | 一区二区影视 | 国产精品一区一区 | 国产黄色麻豆视频 | 青久草视频 | 天天草视频 | 日韩国产黄色片 | 亚洲在线看 | 午夜噜噜噜 | a级毛片基地 | 欧美激情一区二区三区 | 国产成人精品免费视频大全最热 | 国产欧美一区二区三区国产幕精品 | 高清久久久| 狠狠色综合久久婷婷 | 中文字幕日韩欧美 | 国产成人精品午夜 | 一区二区三区在线观看视频 | 中文字幕一区二区三区在线视频 | 日韩精品999 | 在线国产中文字幕 | 国产高清视频一区二区 | 99久久精品免费看国产免费软件 | 国产在线中文 | 国产精品成人在线观看 | 久久新视频 | 欧美精品一区二区三区视频 | 亚洲一区在线日韩在线深爱 | 蜜桃免费一区二区三区 | 久久精品国产a三级三级三级 | 在线视频一区二区三区 | 久久极品| 欧美激情a∨在线视频播放 成人免费共享视频 | 岛国视频| 国产中文字幕在线观看 | 国产小视频在线看 | 国产精品美女久久久久aⅴ国产馆 | 久久av网站 |