1、有一个你要修改结构的页面。
2、在浏览器中打开页面
3、从浏览器菜单中选择“查看源代码”
4、向下滚动到你想要移动的部分。在添加到购物车按钮的情况下,你会看到:
<!--bof Add to Cart Box -->
<div id="cartAdd">
Add to Cart: <input type="text"
name="cart_quantity" value="1" maxlength="6"
size="4" /><br /><br /><input
type="hidden" name="products_id" value="1"
/><input type="image"
src="includes/templates/template_default/buttons/english/button_in_cart.gif"
alt="Add to Cart" title=" Add to Cart " /> </div>
<!--eof Add to Cart Box-->
5、需要找到每一节开始和结束的这些标签:
<!-- bof Add to Cart Box --> ('bof' 开始文件的标记)
和相应的结束标记:
<!-- eof Add to Cart Box-->
6、在文件中向上或向下移动到你想要的地方“
在模板文件中找到想通标签(如果你使用the Developers Toolkit搜索,你会发现它是tpl_product_info_display.php文件),并且在文件中向上或向下根据你想要的移动整一节,在
<bof>...<eof> 标记之间不要放任何东西。
例如:替换这个:
<bof product description>
<eof product description>
<bof add to cart>
<eof add to cart>
....
可能你想要这样的:
<bof add to cart>
<eof add to cart>
<bof product description>
<eof product description>
为所需的其他部分也这样设置。
然后使用CSS,根据需要改变风格。 |