如何让zencart每个页面的栏目单独控制

将右栏目在全站范围打开,然后,对只要显示两个栏目的页面单独进行设置。比如,要将商品信息页面设置为两栏:

1. 在你的模板目录下,为商品信息页面建立一个新目录:
includestemplates你的模板名product_info

提示:目录名请参考includesmodulespages

2. 复制文件includestemplatestemplate_defaultcommontpl_main_page.php
到该目录中

3. 修改复制的文件,添加:
if ($current_page_base == ‘product_info’) {
$flag_disable_right = true;
}
把if (COLUMN_RIGHT_STATUS == 0 or (CUSTOMERS_APPROVAL == ‘1′ and $_SESSION['customer_id'] == ”)) {
//global disable of column_right
$flag_disable_right = true;
}注解掉

通过上面的方法,就可以将商店设置成… 隐私声明页面有三栏,商品信息页面只有两栏,而所有商品页面有三栏,购物车页面有两栏,而结帐页面又有三栏…等等。

PS:另外还有一个简单的方法:
想改那个页面的 就去这个页面的header_php.php去改
比如产品详细页面是products_info 就去改includesmodulespagesproduct_infoheader_php.php
想关左边就加一句$flag_disable_left = true; 右边就是$flag_disable_right = true;

原文地址:https://www.cnblogs.com/lookyou/p/2144046.html