問題描述
如何在管理面板的 Magento v1.5 Catalog/Mange products/General 選項卡中添加自定義文本字段?如果任何機構有這方面的專業知識,請幫助我..
How to add a custom text field in Magento v1.5 Catalog/Mange products/General tab in admin panel? please help me if any body have expertise on this..
推薦答案
由于 Magento 將 Catalog Product 維護為 EAV 結構,因此最好(為了 Magento 的功能和可行性)提供文本字段作為屬性在管理部分的目錄產品詳細信息頁面的 General 選項卡
中.
Since Magento maintains Catalog Product as EAV structure, so it will be best (in the interest of Magento functionality & feasibility) to provide the text field as an attribute in the General Tab
of Catalog Product details page in the Admin section.
我們將逐步完成向所有產品添加屬性的過程:-
We will go through step by step process of adding an attribute to all the Products:-
- 轉到
Manage Attributes
"頁面(Main Menu
>Catalog
>Attributes
>管理屬性
),找到所有可用目錄屬性的列表. - 單擊
添加新屬性
"按鈕添加新屬性. 在表單中提供以下內容(注意事項:不要嘗試更改此屬性詳細信息頁面中的任何屬性,除非您確定自己在做什么.):-
- Go to the "
Manage Attributes
" page (Main Menu
>Catalog
>Attributes
>Manage Attributes
), to find the list of all the available Catalog Attributes. - Click the "
Add New Attribute
" button to add a new attribute. Provide the following in the form (Word of Caution: Don't try to change any of the properties in this Attribute details page, unless you are sure of what you are doing.):-
- 首先,我們將為
Properties
"選項卡填寫必填字段. - 在
Attribute Code
"字段中提供您的屬性代碼. - 讓
Catalog Input Type
"為Text Field
",因為您只想擁有文本字段. - 如果您想用任何值預填充此文本字段,則需要在
默認值
"字段中提供該文本. - 如果您想為所有產品類型提供此屬性,則無需更改
Apply To
"下拉列表的值(默認為All Product Types代碼>").否則,您可以將此值更改為
Selected Product Types
"&自動所有可用 Magento 產品類型的列表將顯示在另一個下拉列表中,您需要從中選擇此屬性所需的產品類型. 對于
Visible on Product View Page on Front-end
"字段,如果需要此文本,則需要選擇值Yes
"顯示在前端產品詳細信息頁面中的字段.
- First we will fill up the required fields for the tab "
Properties
". - Provide your Attribute Code, in the "
Attribute Code
" field. - Let the "
Catalog Input Type
" be "Text Field
", as you wanted to have text field only. - If you want to pre-populate this text field with any value, then you will need to provide that text in the "
Default Value
" field. - If you want to provide this attribute to all the product types, then you need not change the value of the "
Apply To
" dropdown (which by default is "All Product Types
"). Otherwise you can change this value to "Selected Product Types
" & automatically a list of all the available Magento Product Types will appear in another dropdown, from where you need to select your required product types for this attribute. For the "
Visible on Product View Page on Front-end
" field, you need to select the value "Yes
", if you want this text field to appear in the front-end Product details page.
現在我們將填充左側面板中的Manage Label/Options
"選項卡.單擊該選項卡可打開該選項卡的詳細信息頁面.
Now we will fill the tab "Manage Label/Options
", in the left hand panel. Click on that tab to open that tab's details page.
要檢查上述過程是否正常工作,請轉到管理"部分中的產品詳細信息"頁面 &在General
"選項卡中,您應該可以輕松找到自己創建的屬性與文本字段完美搭配.
To check whether the above process worked correctly or not, go to the Product details page in the Admin section & in the "General
" tab, you should be ale to find your own created attribute sitting perfectly with a text field happily among others.
希望有幫助.
這篇關于如何在管理面板的 Magento v1.5 Catalog/Mange products/General 選項卡中添加自定義文本字段?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!