View Full Version : product layout customization?
tx88
July 29th, 2003, 10:26 PM
it seems like the Product Detail pages on all the sample sites have the same layout - with the Price, Qty, and Add2Cart button all below a thin grey line, just below the product image and description. Can this layout be easily changed, so the Price, Qty and Add2Cart are immediately below the Description, and the grey line is not there?
thx, tz
Rich
July 30th, 2003, 12:51 AM
Yes, the layout can be changed easily. The templates that control the cart use basic HTML, with a little PHP for the cart elements. Here is a portion of the code from the template controling that screen. It's been simplified here for better viewing.
<form action="<?=$Form_Action?>" method="post">
<table>
<tr><td colspan="2">
<span class="product_name"><?=$Name?></span>
</td></tr>
<tr><td valign="top">
<?=$Image_in_Large_Image_Link?>
</td>
<td align="left" valign="top">
<?=$Description?>
</td></tr>
</table>
<span style="" class="product_detail">
<hr width="100%" size="1">
<span class="product_price">
<?=$Base_Price?><br>
<?=$Options?>
</span>
<br>
<span class="product_quantity">
<b>Quantity: </b><input type="text" name="quantity">
</span>
<span class="product_add_to_cart"><?=$Add_to_Cart?></span>
<br><hr width="100%" size="1">
</span><br>
</form> The entire file can be chaged to your liking. The elements that look like this <?=$Name?> must remain as is but can be positioned anywhere on your page.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.