2012-08-17 102 views
2

我正在嘗試創建一個安裝腳本來在我的數據庫表上安裝自定義屬性,並且正在尋找關於以下方面的參考。我只需要知道他們的確在做什麼,就我列出的一些例子而言,我發現了另一個問題,但我沒有在其他任何地方找到任何信息。如果有人知道我在哪裏可以讀到這些,我會很感激。Magento:需要安裝腳本的信息

adminhtml_customer //to make the attribute can be created in backend only 
customer_account_create //to make the attribute can be created in registration only 
customer_account_edit // to make the attribute can be edited in the frontend only 
customer_address_edit 
customer_register_address 
checkout_register 
adminhtml_customer_address 

基於我上市,我可以排序的猜測別人做的,但我不希望被誤認爲我的猜測3個首批樣品,如果有其他人我沒有列出,我會也樂意獲取這些信息。

回答

3

給看看到核心代碼池(/app/code/core/Mage)模塊的安裝腳本,你可以找到很多很好的提示的

+0

謝謝,這爲我做。 – BlueSun3k1 2012-08-19 20:10:10

+1

學習magento的最好方法是查看'原始'代碼,在magento網站上也有一些很好的screencast,大約40小時的技術資料(需要訂閱magento認證程序,它應該是免費的) – WonderLand 2012-08-20 10:22:46