文档库 最新最全的文档下载
当前位置:文档库 › ecshop

ecshop

1.右下角 畅销排行榜
right_top_1.lbi

更改ID值,ID值为首页商品分类值
index.php
$smarty->assign('cat_id323_best_goods', index_get_cat_id_goods_best_list(323,8));

2.客服插件
talk99或者网站商务通

3.如果订单列表无缘无故消失
①.后天添加了办事处。

4.运费系统
goods.php

①.在$goods_id = isset($_REQUEST['id']) ? intval($_REQUEST['id']) : 0;后面(第33行左右)
$smarty->assign('tc_goods_weight',get_goods_weight($goods_id));//tc:取得商品重量
$smarty->assign('regionname',get_region_name()); //tc:取得全国一级省市

②.在末尾加上
//tc:取得全国一级城市信息
function get_region_name(){
$sql="SELECT * FROM sc_region WHERE parent_id ='1';";
return $GLOBALS['db']->getAll($sql);
}
function get_goods_weight($goods_id){
$sql="select goods_weight from sc_goods where goods_id = '$goods_id';";
$rs = $GLOBALS['db']->getAll($sql);
return $rs[0]['goods_weight'];
}


goods.dwt
③.在head标签下的javascript里加入:
⑴.
function isIE(){ //判断是否是ie
if (https://www.wendangku.net/doc/e58541566.html,erAgent.toString().toLowerCase().indexOf("msie") >=1)
return true;
else
return false;
}

if(!isIE()){ //firefox innerText define
HTMLElement.prototype.__defineGetter__( "innerText",
function(){
var anyString = "";
var childS = this.childNodes;
for(var i=0; i if(childS[i].nodeType==1)
anyString += childS[i].tagName=="BR" ? '\n' : childS[i].innerText;
else if(childS[i].nodeType==3)
anyString += childS[i].nodeValue;
}
return anyString;
}
);
HTMLElement.prototype.__defineSetter__( "innerText",
function(sText){
this.textContent=sText;
}
);
}

⑵.
function createCityList(elem,event){
var e= event || window.event;
var xx = e.clientX;
var yy = e.clientY;
$("showList").style.display='block';
$("showList").style.left=xx+'px';
$("showList").style.top=yy+'px';
}


function changeCity(cityname,regid){
var tc_goodsweight = Math.ceil($("hiddenprice").innerText); //取得商品重量
$("flowcity").innerText=cityname;
if(tc_goodsweight== 0)
tc_goodsweight=1;
else
tc_goodsweight=tc_goodsweight;
//北京
if(regid==2){
initprice();
}
//河北 天津
else if(regid==27 || regid==10){
if(tc_goodsweight==1){
$("tc_flowprice").innerText= "8"; //首重
}else{
$("tc_flowprice").innerText= ((tc_goodsweight - 1)*3 + 8 ); //续3
}
}
//新疆 **
else if(regid==28 || regid==29){
if(tc_goodsweight==1){

$("tc_flowprice").innerText= "20"; //首重
}else{
$("tc_flowprice").innerText= ((tc_goodsweight - 1)*10 + 20 );//续10
}
}

//其他
else{
if(tc_goodsweight==1){
$("tc_flowprice").innerText= "10"; //首重
}else{
$("tc_flowprice").innerText= ((tc_goodsweight - 1)*5 + 10 );//续10
}
}

$("showList").style.display='none';
}



function hideCityList(){
$("showList").style.display='none';
}

function sel_shipping_region(region_name, region_id, goods_id)
{
var number = document.forms['ECS_FORMBUY'].elements['number'].value;
Ajax.call('goods.php?is_ajax=1&act=ajax_sel_region', "region_id="+region_id+"®ion_name="+region_name+"&id="+goods_id,"GET", "JSON");
}

④.在

  • {$lang.goods_brand}{$goods.goods_brand}

  • 后面加入


  • : 快递




  • 相关文档