X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   help to re-arrange product.tpl ? (https://forum.x-cart.com/showthread.php?t=44075)

POSDepot 12-05-2008 10:39 AM

help to re-arrange product.tpl ?
 
3 Attachment(s)
I have fairly long labels on my product options and they often have to wrap which makes it a little confusing.

I was hoping someone could help me drop the details and options sections below the image and description section and have them run full width so the labels don't wrap.
I've tried to edit it myself but then the items won't add to cart.

Included shots of how it looks now and how I wish it to look.

Any help would be appreciated.

JWait 12-09-2008 04:04 AM

Re: help to re-arrange product.tpl ?
 
Try...
Code:

<span class="Text">{$product.descr}</span>
<br />
<br />
        </td>
</tr>
</table><table>
<tr>
        <td colspan="2"><b><font class="ProductDetailsTitle">{$lng.lbl_price_info}</font></b></td>
</tr>
<tr>


POSDepot 12-11-2008 10:11 AM

Re: help to re-arrange product.tpl ?
 
1 Attachment(s)
Thanks but it seems I attached the wrong file http://forum.x-cart.com/images/icons/icon11.gif

The correct one should be attached to this message.
Hopefully you can take a look at this one as well.

Randy

JWait 12-11-2008 10:48 AM

Re: help to re-arrange product.tpl ?
 
Find
Code:

&nbsp;<span id="save_percent">{ $discount }</span>%
        </td>
</tr>
</table>

        </td>
{/if}
</tr>
</table>

<p />
<table width="100%" cellpadding="0" cellspacing="0">

change it to
Code:

&nbsp;<span id="save_percent">{ $discount }</span>%
        </td>
</tr>
</table>

        </td>
{/if}
</tr>
</table>
</tr>
</table>
<p />
<table width="100%" cellpadding="0" cellspacing="0">

( add </tr></table> before opening the next table> )

POSDepot 12-11-2008 12:32 PM

Re: help to re-arrange product.tpl ?
 
1 Attachment(s)
Oh ... so close :)

It put the details where I wanted but it wraps the recommends and lower sections to around the bottom of the left hand menu

Much appreciated though. Hopefully I can tweak it a bit to make it work.

Randy

JWait 12-11-2008 01:19 PM

Re: help to re-arrange product.tpl ?
 
Find...
{include file="modules/Feature_Comparison/product_buttons.tpl"}
{/if}
<br /><br />
</td>
</tr></table>
</td>
</tr>
</table>
<input type="hidden" name="productid" value="{$product.productid}" />

and "play" with the </td></tr> and </table>s. I think it is there somewhere but its easier just to change it and then check.


All times are GMT -8. The time now is 10:54 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.