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 直接修改模板即可 修改哪段代码可以改价格显示 好像每个模板的价格变量都不是一个代码
修改includes目录下的lib_common.php文件 这个方法原来最好 修改一处 所有的价格都可以实现,不知道为什么 0606的版本 修改了会出错误 一上午来三趟了 还是没高手解答啊:'(
[[i] 本帖最后由 youmy 于 2008-6-26 11:43 编辑 [/i]] 再顶下, <!--{if $goods.shop_price_formated eq 0}-->
请电话咨询
<!--{else}-->
{$goods.shop_price_formated}
<!--{/if}-->
这么改看看? 谢谢
但我用的蓝色天空模版里的good.dwt 里没有$goods.shop_price_formated,最好能找到改includes目录下的lib_common.php文件的办法 :( :( 似乎要改的地方太多了...
若放進購物車,價錢還是0元,那客戶下單買了的話...您要出貨嗎?
加個0元商品不能放入購物車呢?會不會比較完整? 这个倒可以先不考虑 光显示的问题还没有解决 这个倒可以先不考虑 光显示的问题还没有解决, 往上提提 这个问题解决不了 每天来一次 本版块不处理二次开发事宜 奥 需要到哪里去问 麻烦老大帮我挪一下 [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]] 可以参考下库存的修改
当0时显示联系客服
不需要2次开发
增加个判断就行了吧 还是不行 改了后首页和后台都出错误 ????? :'( 就没人需要用到0606的这个功能 ,,看来我得想办法换回5月4号的2.6了 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
