因ecshop模板二次开发的太多了,会出现大小问题。遇到商品详情页的优惠套餐价格失效问题,怎么解决?下面是解决办法,适用京东jd2013等模板。打开js/common.js文件,找到addToCartNums(goodsId, parentId)方法函数。整个函数改为如下代码:function addToCartNums(goodsId, parentId){var goodsIds=goodsId.substr(0,goodsId.length-1).split(‘,’);var buynum=goodsIds.length-1;var gid = goodsIds[0];for(i=0;i{var goods = new Object();var spec_arr = new Array();var fittings_arr = new Array();var number = 1;var quick = 1;goods.quick = quick;goods.spec = spec_arr;goods.goods_id = goodsIds[i];goods.number = 1;if(i>0){goods.parent = (typeof(gid) == “undefined”) ? 0 : parseInt(gid);}if
...
继续阅读
(64)