2014-01-31 111 views
0

我需要添加規範的某些產品在從Magento的後端商品詳細頁,例如規格在前端處產品添加規格在Magento

<h2>Specifications</h2> 
<ul> 
<li>Spacing: 3 to 20 feet (0,9 to 6,1 m).</li> 
<li>Pressure: 15 to 70 psi (1 to 5 bar).</li> 
<li>Regulates nozzle pressure to an average 30 psi (2.1 bar) with inlet pressures of up to 70 psi (4.8 bar).</li> 
<li>Flow-by: 0 at 8 psi (0.6 bar) or greater; 0.1 gpm (0.02 m3/h; 0.006 l/s) otherwise.</li> 

<li>Installation: bottom inlet.</li> 
</ul> 
<h2>Dimensions</h2> 
<ul> 
<li>1/2" (15/21) female threaded inlets</li> 
<li>Body height: 6" (15,2 cm) body height; 4" pop-up height (10,2 cm)</li> 
<li>Exposed surface diameter: 2 1/4" (5,7 cm) </li> 
</ul> 
+0

你好,你將創建屬性的規範 – MagikVishal

回答

1

如果您創建規範中的Magento的默認主題將顯示在一個不錯的表這個額外信息的每一項新的屬性。根據您的主題,您可以編輯表格以隨意顯示。

做你的規範的好處這樣可以讓你的產品要對每一個規範名稱的比較:值對。

如果沒有那是一個選項,然後您可以創建的spec_table屬性代碼的一個屬性,叫做規範,並設置允許您輸入您所提供的HTML類型的文本區域。有了這個屬性集,你可以檢查字段和輸出在你的product/view.phtml文件中,如下所示:

if($specTable = $_product->getResource()->getAttribute('spec_table')->getFrontend()->getValue($_product)) { echo $specTable }