标题: [代码级] 首页某栏目商品添加更多选项的调用?
情迷戈壁滩
EC新手
Rank: 1



UID 34272
精华 0
积分 23
帖子 22
体力 4 点
钻石 0 颗
贡献 0
阅读权限 10
注册 2008-5-24
状态 离线
发表于 2008-7-20 18:24  资料  个人空间  短消息  加为好友 
首页某栏目商品添加更多选项的调用?




我们网址是:http://www.xiyutc.com/

可以进去看看就明白我说的意思了


如图是首页商品分类 我给每个分类添加了一个“更多”的连接  我查看了首页的模板源码发现这些商品分类全是调用的 模板
/library/cat_goods.lbi 文件

此文件代码如下

<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<!-- {if $cat_goods} -->
<div class="title-03">
  <div class="title">{$goods_cat.name|escape:html}</div>
  <div class="more"><a href="{$cat.url}" target="_blank">更多...</a> </div>
<div class="box">
  <ul class="product-list">
    <!--{foreach from=$cat_goods item=goods}-->
    <li>
      <div class="photo"><a href="{$goods.url}" target="_blank"><img src="{$goods.thumb}" alt="{$goods.short_name|escape:html}" /></a></div>
      <div class="info" align="center">
        <span class="name"><a href="{$goods.url}" target="_blank">{$goods.short_name|escape:html}</a></span>
        <div class="price">
        <!-- {if $goods.promote_price neq ""} -->
        {$lang.market_price}<span class="market-price">{$goods.market_price}</span><br />
        {$lang.promote_price}<span class="goods-price">{$goods.promote_price}</span><br />
        <!--{else}-->
        {$lang.market_price}<span class="market-price">{$goods.market_price}</span><br />
        {$lang.shop_price}<span class="goods-price">{$goods.shop_price}</span><br />
        <!--{/if}-->
        </div>
        <span class="buy-btn"><a href="javascript:addToCart({$goods.id})"><img src="../images/sort-addcart.gif" alt="buy" /></a> <a href="javascript:collect({$goods.id})"><img src="../images/sort-collect.gif" alt="fav" /></a></span>      </div>
    </li>
    <!--{/foreach}-->
  </ul>
</div></div>
<!--End sort-box01-->
<!--{/if}-->

我目前做的调用是错误的 全部指向了同一个页面  要怎么做才可以对应每个分类点击后是正确的?

这个好像要用函数来写吧??

[ 本帖最后由 情迷戈壁滩 于 2008-7-20 11:25 编辑 ]

顶部
情迷戈壁滩
EC新手
Rank: 1



UID 34272
精华 0
积分 23
帖子 22
体力 4 点
钻石 0 颗
贡献 0
阅读权限 10
注册 2008-5-24
状态 离线
发表于 2008-7-20 19:13  资料  个人空间  短消息  加为好友 
<div class="more"><a href="{$cat.url}" target="_blank">更多...</a> </div>

我添加了{$cat.url} 标签 前台显示的全部都是最后一个商品分类

怎么样才可以指定分类那?

顶部
卖否姊妹站—买否(商品搜索)公开测试
情迷戈壁滩
EC新手
Rank: 1



UID 34272
精华 0
积分 23
帖子 22
体力 4 点
钻石 0 颗
贡献 0
阅读权限 10
注册 2008-5-24
状态 离线
发表于 2008-7-21 17:07  资料  个人空间  短消息  加为好友 
这个问题没有个人可以解答麽?

顶部
情迷戈壁滩
EC新手
Rank: 1



UID 34272
精华 0
积分 23
帖子 22
体力 4 点
钻石 0 颗
贡献 0
阅读权限 10
注册 2008-5-24
状态 离线
发表于 2008-7-22 11:09  资料  个人空间  短消息  加为好友 
问题还没有解决官方人也不出来说下?

顶部
情迷戈壁滩
EC新手
Rank: 1



UID 34272
精华 0
积分 23
帖子 22
体力 4 点
钻石 0 颗
贡献 0
阅读权限 10
注册 2008-5-24
状态 离线
发表于 2008-8-1 18:14  资料  个人空间  短消息  加为好友 
难道不能解决麽?

顶部
 



当前时区 GMT+8, 现在时间是 2008-8-22 05:51

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
Processed in 0.038219 second(s), 7 queries , Gzip enabled

清除 Cookies - 联系我们 - 康盛创想(北京)科技有限公司 - Archiver