产品编号标签

2016-07-07 15:13 来源:www.chinab4c.com 作者:ecshop专家

1.jpg







  1. <meta http-equiv="Content-Type" content="text/html; charset=GBK">
  2. <!-- {if $best_goods} -->
  3. <!-- {if $cat_rec_sign neq 1} -->
  4. <!-- {/if} -->
  5. <!--{foreach from=$best_goods item=goods}-->
  6. <div id="detail" style="position: absolute"></div>
  7. <div>
  8. <!-- {if $goods.promote_price neq ""} --><!--{/if}-->

  9. <script type="text/javascript" src="../neiyi/youtu.js"></script>
  10. <li id="{$goods.url}" class="productwrapper">
  11. <div class="pic">
  12. <a href="{$goods.url}"><img src="{$goods.thumb}" alt="{$goods.name|escape:html}"width="170" height="222" class="goods_load" /></a>
  13. <div class="productInfo" style="display:none">
  14. <span class="ProductName">{$goods.short_style_name}</span>
  15. <span class="productCode">{$goods.goods_sn}</span>
  16. <span class="sprice"></span>
  17. <span class="vprice">{$goods.market_price}</span>
  18. <span class="price">{$goods.shop_price}</span>
  19. <span class="sales">0</span>
  20. <span class="pic">{$goods.thumb}</span>
  21. <span class="salesFlag"></span>
  22. <span class="isPoint">6</span>
  23. <span class="points"></span><!--积分-->
  24. </div>
  25. </div>
  26. <h4 align="center"><a href="{$goods.url}">
  27. {$goods.short_style_name}</a></h4>
  28. <palign="center" class="market c_8"><span class="productPrice"><SPAN class=scPrice><DEL>{$goods.market_price}</DEL></SPAN><SPAN
  29. class=salePrice><STRONG>{$goods.shop_price}</STRONG></SPAN></span></p>

  30. </li>



  31. <!--{/foreach}-->
  32. <!-- {if $cat_rec_sign neq 1} -->
  33. </div>
  34. <div class="blank5"></div><!-- {else}-->
  35. <!-- {/if} -->
  36. <!-- {/if} -->
复制代码



2.jpg

  1. <meta http-equiv="Content-Type" content="text/html; charset=GBK">
  2. <!--{foreach from=$cat_goods_11 item=goods}-->
  3. <div id="detail" style="position: absolute"></div>
  4. <div>
  5. <script type="text/javascript" src="../neiyi/youtu.js"></script>
  6. <li id="{$goods.url}" class="productwrapper">
  7. <div class="pic">
  8. <a href="{$goods.url}"><img src="{$goods.thumb}" alt="{$goods.name|escape:html}"width="170" height="222" class="goods_load" /></a>
  9. <div class="productInfo" style="display:none">
  10. <span class="ProductName">{$goods.short_name}</span>
  11. <span class="productCode">{$goods.goods_sn}</span>
  12. <span class="sprice"></span>
  13. <span class="vprice">{$goods.market_price}</span>
  14. <span class="price">{$goods.shop_price}</span>
  15. <span class="sales">0</span>
  16. <span class="pic">{$goods.thumb}</span>
  17. <span class="salesFlag"></span>
  18. <span class="isPoint">6</span>
  19. <span class="points"></span><!--积分-->
  20. </div>
  21. </div>
  22. <h4 align="center"><a href="{$goods.url}">
  23. {$goods.short_name}</a></h4>
  24. <palign="center" class="market c_8"><span class="productPrice"><SPAN class=scPrice><DEL>{$goods.market_price}</DEL></SPAN><SPAN
  25. class=salePrice><STRONG>{$goods.shop_price}</STRONG></SPAN></span></p>

  26. </li> <!--{/foreach}-->
  27. </div>
  28. <div class="blank5"></div>
复制代码


都是在首页调用 为什么第二个图我调用品牌分类的产品时 产品型号却显示不出来呢?

回答:
第1个,对应的程序文件里 从数据库里读取了 字段goods_sn 并赋值给数组,所以显示。
第2个,对应的程序文件里 没有读取 字段goods_sn,所以就不显示了

那具体要怎么修改才可以实现呢