如何去掉产品列表页的...more info

Zen Cart的安装、设置、升级讨论和使用技巧交流

版主: 赞拓拓, shaning, 美拓拓

如何去掉产品列表页的...more info

帖子原始 » 2010-06-04 21:29

如题,如何去掉产品列表页中的...more info。
在有产品描述的时候,就会出现这个...more info,想把这个给去掉了,

可是找了许久,没有找到它在哪里设置,
希望有了解的朋友能够指点一下。
附件
未标题-1.jpg
原始
新手上路
新手上路
 
帖子: 5
注册: 2009-06-12 23:59

Re: 如何去掉产品列表页的...more info

帖子Jack » 2010-06-05 11:05

产品有属性时,不能不选属性就添加到购物车,所以出现 more info
头像
Jack
论坛版主
论坛版主
 
帖子: 11602
注册: 2004-12-16 10:04

Re: 如何去掉产品列表页的...more info

帖子newhand123 » 2010-06-05 11:20

这个我也想知道,这个more info是不需要的,因为点上面就应该可以进入更多界面了
newhand123
高级会员
高级会员
 
帖子: 161
注册: 2010-05-14 14:30

Re: 如何去掉产品列表页的...more info

帖子原始 » 2010-06-14 22:54

确实如newhand123所说一样,...more info这个链接太多余了。
可是又没有办法删除,真是难搞阿。

就没有别的办法吗。?
原始
新手上路
新手上路
 
帖子: 5
注册: 2009-06-12 23:59

Re: 如何去掉产品列表页的...more info

帖子Jack » 2010-06-15 21:13

模板文件里当然可以直接删除,不显示就是了。
以默认模板的产品列表页面为例,打开 \includes\modules\product_listing.php
找到显示more info 的代码:
代码: 全选
          $lc_button = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? $_GET['cPath'] : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';

改为
代码: 全选
          $lc_button = '';
头像
Jack
论坛版主
论坛版主
 
帖子: 11602
注册: 2004-12-16 10:04

Re: 如何去掉产品列表页的...more info

帖子原始 » 2010-06-22 23:55

去掉了,还是在阿。
烦恼阿。
原始
新手上路
新手上路
 
帖子: 5
注册: 2009-06-12 23:59

Re: 如何去掉产品列表页的...more info

帖子原始 » 2010-06-23 0:05

噢,解决了,谢谢版主。
我忘记了之前装了Column Layout Grid 这个插件的。
十分感谢,^_^
原始
新手上路
新手上路
 
帖子: 5
注册: 2009-06-12 23:59

Re: 如何去掉产品列表页的...more info

帖子zhulin_380 » 2010-07-09 14:43

我的网站更换模板后,在点击目录链接进入产品列表页面的时候出错
:Error!
Unable to determine the page link!
换回原来的模板就是正确的。
zhulin_380
普通会员
普通会员
 
帖子: 22
注册: 2010-07-09 14:32
QQ 帐号: 285329729

Re: 如何去掉产品列表页的...more info

帖子虎皮5kg » 2010-07-23 19:05

代码: 全选
        $lc_button = '';
        if (zen_has_product_attributes($listing->fields['products_id']) or PRODUCT_LIST_PRICE_BUY_NOW == '0') {
          $lc_button = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? $_GET['cPath'] : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';

我的是这个样子……我试着把
代码: 全选
        if (zen_has_product_attributes($listing->fields['products_id']) or PRODUCT_LIST_PRICE_BUY_NOW == '0') {
          $lc_button = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? $_GET['cPath'] : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';

都删掉了留下
代码: 全选
        $lc_button = '';

结果整个产品列表都不见了……
唉,不懂php真是头痛
虎皮5kg
新手上路
新手上路
 
帖子: 17
注册: 2010-01-26 8:35

Re: 如何去掉产品列表页的...more info

帖子球球 » 2011-08-20 15:45

发现有好几处
代码: 全选
$lc_button = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? $_GET['cPath'] : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
去掉了 为什么还是显示 more info 啊。、
球球
新手上路
新手上路
 
帖子: 7
注册: 2011-07-28 16:30

下一页

回到 安装设置

 


  • 相关话题
    回复总数
    阅读次数
    最新文章

在线用户

正在浏览此版面的用户:没有注册用户 和 6 位游客