商品列表页判断商品是新品、精品、还是热销

goods_list.lbi中 {if $goods.is_best} <p style="margin-top:1px;">{$goods.goods_name}<br />精品模板|网上商城模板<br /> {elseif $goods.is_new} <p style="margin-top:1px;">{$goods.goods_name}<br />新品模板|网上商城模板<br /> {elseif $goods.is_hot} <p style="margin-top:1px;">{$goods.goods_name}<br />热卖模板|网上商城模板<br /> {else} <p style="margin-top:1px;">{$goods.goods_name}<br />定制模板|网上商城模板<br /> category.php中 找到 category_get_goods 在$arr[$row[‘goods_id’]][‘url’] = build_uri(‘goods’, array(‘gid’=>$row[‘goods_id’]), $row[‘goods_name’]);下面添加 $arr[$row[‘goods_id’]][‘is_best’] = $row[‘is_best’];$arr[$row[‘goods_id’]][‘is_new’] = $row[‘is_new’];$arr[$row[‘goods_id’]][‘is_hot’] = $row[‘is_hot’];

,用最少的悔恨面对过去

商品列表页判断商品是新品、精品、还是热销

相关文章:

你感兴趣的文章:

标签云: