zencart怎样修改商品显示样式?

xiaoqin1999 2013-01-25 11:25:21
在首页的featured product的那个位置,

原来featured product显示的代码是这样的:

<div class="centerBoxContentsFeatured centeredContent back" style="width:20%;"><a href="index.php?main_page=product_info&cPath=67&products_id=181"><img width="120" height="120" title=" BEACHBAG, BEACH GIFT BAGS " alt="BEACHBAG, BEACH GIFT BAGS" src="images/s/201102/12979289010.jpg"></a><br><a href="index.php?main_page=product_info&cPath=67&products_id=181">BEACHBAG, BEACH GIFT BAGS</a><br>$86.00</div>

我想在前面多套几个DIV,变成这种样子:
<div class="1">
<div class="left">
<div>[code]</div>
</div>
<div class="centre">
<div class="">
<ul>
<li>
<div class="list">
<div class="pic"><a href="[url]"><img alt="[title]" src="images/sku35359_3_2.jpg"></a></div>
<div class="det"><a href="[url]">product_title</a></div>
<div class="det hei16">US$139.99</div>
<div ><a href="[url_list]">See all Android OS Phone</a></div>
</div>
</li>
<li>
<div class="list">
<div class="pic"><a href="[url]"><img alt="" src="images/sku40412_4.jpg"></a></div>
<div class="det"><a href="[url]">prodoct_title</a></div>
<div class="det hei16">US$287.99</div>
<div><a href="[url_list]">See all Android OS Tablet PC</a></div>
</div>
</li>
</ul>
</div>
</div>
<div class="right">
<div>[code]</div>
</div>
</div>


我估计控制这段代码的文件是modules\featured_products.php


原来的代码: $list_box_contents[$row][$col] = array('params' =>'class="centerBoxContentsFeatured centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => (($featured_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $featured_products->fields['products_image'], $featured_products->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH, IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a><br />' . $products_price);


请问要怎样修改呢?

先谢谢啦
...全文
120 1 点赞 打赏 收藏 举报
写回复
1 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
xiaoqin1999 2013-01-25
有熟悉zencart的吗?
  • 打赏
  • 举报
回复
相关推荐
发帖
PHP
加入

1.9w+

社区成员

“超文本预处理器”,是在服务器端执行的脚本语言,尤其适用于Web开发并可嵌入HTML中。PHP语法利用了C、Java和Perl,该语言的主要目标是允许web开发人员快速编写动态网页。
申请成为版主
帖子事件
创建了帖子
2013-01-25 11:25
社区公告
暂无公告