求助大虾帮助解决一个小问题,支付宝给钱。
2016-07-07 14:55 来源:www.chinab4c.com 作者:ecshop专家
| 我想在首页调用 ID为2的分类下属性为"精品"的商品,请问怎么写标签,20元支付宝马上交易,谢谢,QQ:5739316 | 
回答:
| 自己已经处理好了,是在网上收集的,测试可用: ============在首页按分类调用指定属性的商品============ 1、先在根目录找到index.php找到: /* 页面中的动态内容 */然后增加(35、1、48为分类的ID) hot是热销商品best精品new新品 $children = get_children(35); $smarty->assign('chot_goods_35', get_category_recommend_goods('hot',$children)); //蛋糕分类下的热销商品 $children = get_children(1); $smarty->assign('chot_goods_1', get_category_recommend_goods('hot',$children)); //鲜花分类下的热销商品 $children = get_children(48); $smarty->assign('chot_goods_48', get_category_recommend_goods('hot',$children)); //礼品分类下的热销商品 然后在index.dwt调用: <!--{foreach from=$chot_goods_1 item=goods}--> <div style="padding-top: 8px;" class="new-tr"> <a target="_blank" href="{$goods.url}"><img width="116" height="130" border="0" alt="{$goods.name|escape:html}" src="{$goods.thumb}"></a> <div class="right"> <a target="_blank" href="{$goods.url}">{$goods.name|escape:html}</a><br> <span style="color: rgb(102, 102, 102); text-decoration: line-through;">市场价:{$goods.market_price}</span><br> 特卖价:<span style="color: rgb(255, 0, 0);">{$goods.shop_price}</span><br> <span class="font-gmm"><a href="javascript:addToCart({$goods.id})">立即抢购</a></span> </div> <span class="new-line"></span> </div> <!--{/foreach}--> | 
| 自己已经处理好了,是在网上收集的,测试可用: ============在首页按分类调用指定属性的商品============ 1、先在根目录找到index.php找到: /* 页面中的动态内容 */然后增加(35、1、48为分类的ID) hot是热销商品best精品new新品 $children = get_children(35); $smarty->assign('chot_goods_35', get_category_recommend_goods('hot',$children)); //蛋糕分类下的热销商品 $children = get_children(1); $smarty->assign('chot_goods_1', get_category_recommend_goods('hot',$children)); //鲜花分类下的热销商品 $children = get_children(48); $smarty->assign('chot_goods_48', get_category_recommend_goods('hot',$children)); //礼品分类下的热销商品 然后在index.dwt调用: <!--{foreach from=$chot_goods_1 item=goods}--> <div style="padding-top: 8px;" class="new-tr"> <a target="_blank" href="{$goods.url}"><img width="116" height="130" border="0" alt="{$goods.name|escape:html}" src="{$goods.thumb}"></a> <div class="right"> <a target="_blank" href="{$goods.url}">{$goods.name|escape:html}</a><br> <span style="color: rgb(102, 102, 102); text-decoration: line-through;">市场价:{$goods.market_price}</span><br> 特卖价:<span style="color: rgb(255, 0, 0);">{$goods.shop_price}</span><br> <span class="font-gmm"><a href="javascript:addToCart({$goods.id})">立即抢购</a></span> </div> <span class="new-line"></span> </div> <!--{/foreach}--> 支持下了 | 
| 嗯,学习了,谢谢 | 
| 切,自卖自夸?~ | 
 
        
					
						
                          
					
				 
      
      最近更新
常用插件
- ecshop二次商品订购人信息
                                  ecshop二次商品订购人信息填写插件,有时候给朋友送花,或者是送礼品的... 
- ecshop分类批量扩展插件
                                  ecshop分类批量扩展插件,这个插件是ecshop插件里面比较核心的插件。我们... 
- ecshop2.7.1打印发货单插件
                                  ecshop2.7.1打印发货单插件介绍:ecshop2.7.1和以前的ecshop版本不一样,ecs... 
- ecshop商品分类名称增加样
                                  ecshop插件介绍:本插件可以方便在后台管理,为ecshop商品分类名称增加样... 
- ecshop二次开发详细页面生
                                  插件介绍: ECSHOP系统,在很多时候,很多商品没有人购买,不但购买的人... 
ecshop热门问答
ecshop热门资料
          
               
            ecshop入口 
                
            ecshop何方法 
                
            ecshop优化步骤 
                
            ecshop不到 
                
            ecshop供应链 
                
            ecshop品牌页产品数量 
                
            ecshop搜索引擎 
                
            ecshopaddToCart 
                
            ecshop折扣插件 
                
            ecshop吆喝声 
                
            ecshop父级ID 
                
            ecshop销售平台 
                
            ecshop录入品牌 
                
            ecshop老域名 
                
            ecshop金钱 
                
            ecshop代码分享 
                
            ecshop网银 
                
            ecshop收购 
                
            ecshop537 
                
            ecshop安全套 
                
            ecshop黑客入侵 
                
            ecshop认证 
                
            ecshop网民 
                
            ecshop模板设计 
                
            ecshop建立数据库 
                
            div底部 
                
            ecshop新浪微博登录插件 
                
            ecshop同意 
                
            ecshop域名空间 
                
            ecshop多选一判断 
             
        
      


