ECSHOP商品购买数量增加加减按钮插件

2016-06-13 13:05 来源:www.chinab4c.com 作者:ecshop专家

ecshop商品页购买数量加减按钮ecshop购物车页加减按钮插件 默认模版为例详细教程: 找到flow.php里的如下代码 elseif ($_REQUEST['step'] == 'update_cart') { if (isset($_POST['goods_number']) && is_array($_POST['goods_number'])) { flow_update_cart($_POST['goods_number']); } show_message($_LANG['update_cart_notice'], $_LANG['back_to_cart'], 'flow.php'); exit; } 修改成: elseif ($_REQUEST['step'] == 'update_cart') { if (isset($_POST['goods_number']) && is_array($_POST['goods_number'])) { flow_update_cart($_POST['goods_number']); } ecs_header("Location: flow.php?step=cart\n");  show_message($_LANG['update_cart_notice'], $_LANG['back_to_cart'], 'flow.php'); exit; } 打开:goods.dwt {* 包含脚本文件 *} {insert_scripts files='common.js'}下面这段: 修改成:    搜索:

       {$lang.number}:               
修改成:                                                                            
{$lang.number}:
  打开:style.css文件,底部下面添加: .goods_cut { background: url("./images/yy.gif") no-repeat scroll 0 0 transparent; border: 0 none; cursor: pointer; display: block; float: left; font-size: 0; height: 15px; line-height: 0;margin: 8px 3px 0; width: 15px; } input.goodsBuyBox, input.number { border: 1px solid #DDDDDD; float: left; font-size: 10px; height: 18px; line-height: 18px; margin: 5px 6px 0; padding: 0; text-align: center; width: 32px; } .goods_add { background: url("./images/yy.gif") no-repeat scroll 0 -15px transparent; border: 0 none; cursor: pointer; display: block; float: left; font-size: 0; height: 15px; line-height: 0; margin: 8px 3px 0; width: 15px; } .goods_number_tit{     display: block;     background:none;     width:60px;     height:25px;     line-height:22px;     float: left; }       图片放到模板目录:     新手如果没有修改过模板直接覆盖下面附件就可以: ecshop商品页购买数量加减按钮插件: 下载:www.ecshop119.com/moban-318.html   二.购物车页面 打开:flow.dwt {* 包含脚本文件 *} {insert_scripts files='common.js,shopping_flow.js'} 搜索:   修改成:                                                                            3.搜索: $lang.update_cart 修改成: 打开:style.css文件,底部下面添加 .goods_cut { background: url("./images/yy.gif") no-repeat scroll 0 0 transparent; border: 0 none; cursor: pointer; display: block; float: left; font-size: 0; height: 15px; line-height: 0;margin: 8px 3px 0; width: 15px; } input.goodsBuyBox, input.number { border: 1px solid #DDDDDD; float: left; font-size: 10px; height: 18px; line-height: 18px; margin: 5px 6px 0; padding: 0; text-align: center; width: 32px; } .goods_add { background: url("./images/yy.gif") no-repeat scroll 0 -15px transparent; border: 0 none; cursor: pointer; display: block; float: left; font-size: 0; height: 15px; line-height: 0; margin: 8px 3px 0; width: 15px; } .goods_number_tit{ display: block; background:none; width:60px; height:25px; line-height:22px; float: left; } 5.图片放到模板目录:   新手使用的是默认模板可以直接覆盖下面附件: ecshop购物车加减插件下载:www.ecshop119.com/moban-318.html