ECShop 网上商店系统支持论坛's Archiver

youmy 发表于 2008-6-25 14:18

080606版商品价格为零时如何显示 联系客服

修改includes目录下的lib_common.php文件,把997行的 return sprintf($GLOBALS['_CFG']['currency_format'], $price);替换为



if (intval($price) == 0) {
  return "价格面议";
} else {
  return sprintf($GLOBALS['_CFG']['currency_format'], $price);
}
这个办法以前可以 新版本不行了

打开goods.dwt

找:{$goods.shop_price_formated}

修改成:
<!--{if $goods.shop_price_formated == 0}-->
请电话咨询
<!--{else}-->
{$goods.shop_price_formated}
<!--{/if}-->
这个有的模板可以 有的不行 而且只能改商品详细页.


恳请哪位高手研究下  谢谢了
[attach]12504[/attach]优卖全国连锁配送联盟招募成员 有兴趣请联系 342622193

bugii 发表于 2008-6-25 14:37

直接修改模板即可

youmy 发表于 2008-6-25 21:18

修改哪段代码可以改价格显示  好像每个模板的价格变量都不是一个代码
修改includes目录下的lib_common.php文件  这个方法原来最好  修改一处  所有的价格都可以实现,不知道为什么 0606的版本 修改了会出错误

youmy 发表于 2008-6-26 07:45

一上午来三趟了 还是没高手解答啊:'(

[[i] 本帖最后由 youmy 于 2008-6-26 11:43 编辑 [/i]]

youmy 发表于 2008-6-27 01:01

再顶下,

残血罗刹国 发表于 2008-6-27 09:07

<!--{if $goods.shop_price_formated eq 0}-->
请电话咨询
<!--{else}-->
{$goods.shop_price_formated}
<!--{/if}-->

这么改看看?

youmy 发表于 2008-6-27 10:36

谢谢

但我用的蓝色天空模版里的good.dwt 里没有$goods.shop_price_formated,最好能找到改includes目录下的lib_common.php文件的办法

youmy 发表于 2008-6-27 23:17

:( :(

labman 发表于 2008-6-28 13:17

似乎要改的地方太多了...
若放進購物車,價錢還是0元,那客戶下單買了的話...您要出貨嗎?
加個0元商品不能放入購物車呢?會不會比較完整?

youmy 发表于 2008-6-29 01:16

这个倒可以先不考虑 光显示的问题还没有解决

youmy 发表于 2008-6-29 01:17

这个倒可以先不考虑 光显示的问题还没有解决,

youmy 发表于 2008-6-29 15:24

往上提提 这个问题解决不了 每天来一次

bugii 发表于 2008-6-29 15:44

本版块不处理二次开发事宜

youmy 发表于 2008-7-1 09:26

奥 需要到哪里去问 麻烦老大帮我挪一下

jerryrat 发表于 2008-7-1 17:50

[size=7][color=red]0 改为[/color][/size]
[size=7][color=red][/color][/size]
[size=7][color=red]'¥0.00元'[/color][/size]
[size=7][color=red][/color][/size]
[size=7][color=red]不管是 ==  还是 eq  都可以[/color][/size]

[[i] 本帖最后由 jerryrat 于 2008-7-1 18:01 编辑 [/i]]

sonyr 发表于 2008-7-1 18:57

可以参考下库存的修改
当0时显示联系客服
不需要2次开发
增加个判断就行了吧

youmy 发表于 2008-7-2 03:48

还是不行  改了后首页和后台都出错误

youmy 发表于 2008-7-5 22:53

?????

youmy 发表于 2008-7-7 11:47

:'( 就没人需要用到0606的这个功能 ,,看来我得想办法换回5月4号的2.6了

youmy 发表于 2008-7-8 12:13

Warning: Cannot modify header information - headers already sent by (output started at D:\cctv10\includes\lib_common.php:1) in D:\cctv10\includes\cls_template.php on line 51

Warning: Cannot modify header information - headers already sent by (output started at D:\cctv10\includes\lib_common.php:1) in D:\cctv10\admin\includes\init.php on line 322

Warning: Cannot modify header information - headers already sent by (output started at D:\cctv10\includes\lib_common.php:1) in D:\cctv10\admin\includes\init.php on line 323

Warning: Cannot modify header information - headers already sent by (output started at D:\cctv10\includes\lib_common.php:1) in D:\cctv10\admin\includes\init.php on line 324

Warning: Cannot modify header information - headers already sent by (output started at D:\cctv10\includes\lib_common.php:1) in D:\cctv10\admin\includes\init.php on line 325

Warning: Cannot modify header information - headers already sent by (output started at D:\cctv10\includes\lib_common.php:1) in D:\cctv10\admin\includes\init.php on line 326

页: [1] 2

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.