xml Magento产品网格,产品页面参考

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml Magento产品网格,产品页面参考相关的知识,希望对你有一定的参考价值。

The cart pagefile path: app/design/frontend/base/default/template/checkout/cart.phtmllayout handle: <checkout_cart_index>the login area: app/design/frontend/base/default/template/customer/form/login.phtmllayout handle: <customer_account_login>the user account registration page: app/design/frontend/base/default/template/customer/form/register.phtmllayout handle: <customer_account_create>Product GridLet's suppose that we want to set the main template for the default category view to one column; in this case, we have to insert the action setTemplate into the catalog_category_default handle in the following manner:   <catalog_category_default>     <reference name="root">     <action method="setTemplate">       <template>page/1column.phtml</template>     </action>     </reference>   </catalog_category_default>         If we want to set a different template, for example, two columns with the right-hand side sidebar for the layered categories, we will have to set the action in the other handle as follows:         <catalog_category_layered>     <reference name="root">     <action method="setTemplate">       <template>page/2columns-right.phtml</template>     </action>     </reference>   </catalog_category_layered>      Product Page:If you decide to set to 1 column, change the root template to the 1column template as given in the following code:   <catalog_product_view>     <reference name="root">       <action method="setTemplate">         <template>page/1column.phtml</template></action>     </reference>   </catalog_product_view>

以上是关于xml Magento产品网格,产品页面参考的主要内容,如果未能解决你的问题,请参考以下文章

xml Magento - 将类别产品网格布局从3列更改为4列#M1

Magento - 图像和可配置样本的恒定产品尺寸

Magento 2 - 如何让 2 个单独的 phtml 来处理产品列表和产品网格?

Magento 简短描述错误

Magento 2 从搜索页面获取所有产品

magento 1.6 目录页可以添加推荐产品吗