网站标志
图片
新闻搜索
自定内容

免费服务热线:
400-881-5135

怎样修改商品shopex中商品详细页面的各种名称
作者:太阳雨    发布于:2010-12-10 22:46:10    文字:【】【】【
摘要:可以修改品牌、重量、名称、商品规格列表等名称

core\shop\view\product下的index.html里面的
打开页面后任意修改你想要修改的内容

<script>
  /*商品详细通用函数*/

   var priceControl={
              base:<{$goods.price|cur:null:true}>,
              _format:<{$money_format|default:'false'}>,
              format:function(num){
                var part;
                if(!num)return;
                var num = num.toFloat();
                    num = num.round(this._format.decimals)+'';
                    var p =num.indexOf('.');
                    if(p<0){
                        p = num.length;
                        part = '';
                    }else{
                        part = num.substr(p+1);
                    }
                    while(part.length<this._format.decimals){
                            part+='0';
                        }
                    var c=[];
                    while(p>0){
                        if(p>2){
                            c.unshift(num.substr(p-=3,3));
                        }else{
                            c.unshift(num.substr(0,p));
                            break;
                        }
                    }
                    if(!part){
                        this._format.dec_point='';
                    }
                    return (this._format.sign||"")+c.join(this._format.thousands_sep)+this._format.dec_point+part;
            }
       };

    String.implement({
      toFormElements:function(){
            if(!this.contains('=')&&!this.contains('&'))return new Element('input',{type:'hidden'});
            var elements=[];
            var queryStringHash=this.split('&');
            $A(queryStringHash).each(function(item){
                if(item.contains('=')){
                    item=$A(item.split('='));
                    elements.push(new Element('input',{type:'hidden',name:item[0],value:item[1]}));
                }else{
                  elements.push(new Element('input',{type:'hidden',name:item}));
                }
            });
            return new Elements(elements);
            }
    });
    Number.implement({
           interzone:function(min,max){
                 var _v=this.toFloat();
                 if(!_v)_v=0;
                 return _v>=min&&_v<=max;
             }
          });
   var keyCodeFix=[48,49,50,51,52,53,54,55,56,57,96,97,98,99,100,101,102,103,104,105,8,9,46,37,39];


</script>

<div class="GoodsInfoWrap">
<div id="goods-viewer">
  <table width="100%">
  <tr>
    <td valign="top" align="center">
     <div class='goodspic'>
        <{require file="product/goodspics.html"}>
       </div>
    </td>
    <td width="60%" valign="top">
<!------------------------------------ 购买区域 开始 -------------------------------->
<form class="goods-action" action="<{link ctl=cart act=addGoodsToCart}>" gnotify="<{link ctl=product act=gnotify}>" method="post"<{if $goods.setting.buytarget==2}> target="_blank_cart"<{elseif $goods.setting.buytarget==3}> target="_dialog_minicart"<{/if}>>

    <h1 class="goodsname"><{$goods.name|escape:"html"}></h1>
    <{if $goods.brief}>
    <p class="brief"><{$goods.brief}></p>
    <{/if}>

 

      <ul class="goodsprops clearfix">
        <{if $goods.bn && $goodsBnShow}><li><span><{t}>商品编号:<{/t}></span><{$goods.bn}></li><{/if}>
        <{if $goods.weight && $goods.weight != 0.000 }><li><span><{t}>商品重量:<{/t}></span><span id="goodsWeight"><{if $goods.weight}><{$goods.weight}><{else}><{$goods.weight.0.bn}><{/if}></span><{t}> 克(g)<{/t}></li><{/if}>

        <{if $goods.product_bn || $goods.products.0.bn}><li><span><{t}>货  号:<{/t}></span><span id="goodsBn"><{if $goods.product_bn}><{$goods.product_bn}><{else}><{$goods.products.0.bn}><{/if}></span></li><{/if}>

     

浏览 (2135) | 评论 (0) | 评分(0) | 支持(0) | 反对(0) | 发布人:太阳雨
将本文加入收藏夹
 
 


 深圳市诺诗曼家具有限公司软件开发部 UTF-8简体中文版>>

 中华人民共和国增值电信业务经营许可证号:川B2-20070108 粤ICP备09025841号

 Powered By erprj.com  Copyright (C) 2009-2011 

 ©2002-2008 www.erprj.com虚拟主机 域名注册 网站模板 华夏万网版权所有

  域名实名查询 域名管理查询 中文国内域名查询地址英文国内域名查询地址 





 

友情链接 煤钻杆 煤钻杆厂家 截齿厂家 探水钻头 麻花钻杆 地质钻杆 金刚石复合片钻头 南通网站建设 卡盟供货商
 
 
QQ客服
在线服务  
在线服务  
访问统计