2014-01-28 38 views

回答

1

您可以在管理員更改產品上市的模板: - 目錄 - >管理分類 - >您的類別 - 標籤定製設計 - 場 - 頁面佈局

OR

在您的設計佈局的XML

(本地.xml或別的東西):

<catalog_category_layered> 
    <reference name="root"> 
     <action method="unsetChild"><name>left</name></action> 
    </reference> 
</catalog_category_layered> 

OR

<catalog_category_default> 
    <reference name="root"> 
     <action method="unsetChild"><name>left</name></action> 
    </reference> 
</catalog_category_default> 

你也可以在XML設置anpother模板:

<catalog_category_layered> 
    <reference name="root"> 
     <action method="setTemplate"><name>page/1column.phtml</name></action> 
    </reference> 
</catalog_category_layered> 

請參閱模板/網頁/模板。

+0

謝謝,這工作完美 – Holly

0

爲什麼你需要刪除「左列」你爲什麼不只是改變產品列表頁面,不同的佈局。即2column-right.phtml,1column.phtml或3column.phtml,不需要在大多數情況下在99%以下物理刪除左列,只需更改佈局即可。

首先,你需要創建或更新您的local.xml文件,如果您還沒有一個local.xml文件,你可以在

APP->前端創建一個 - > [包名稱] - > [主題名稱] - > layout-> local.xml

創建完成後,您可以將我在此文章中的內容完全複製到該文件中,以便開始使用該文件。

不通過catalog.xml通過LOCAL.XML文件進行全部更新!這將使後續升級變得更加容易。此外,您可以在一個文件中快速查看您對網站所做的所有更改。

下面的例子將設置產品列表頁面,1column

<?xml version="1.0" encoding="UTF-8"?> 
<layout> 
    <catalog_product_view translate="label"> 
     <reference name="root"> 
      <action method="setTemplate"> 

       <template>page/1column.phtml</template> 
       <!-- Below are examples of different layouts you can use 
       <template>page/2columns-right.phtml</template> 
       <template>page/2columns-left.phtml</template> 
       <template>page/3columns.phtml</template> --> 
      </action> 
     </reference> 
    </catalog_product_view> 
</layout> 

希望這有助於並指導一些新手在那裏。