Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

help to re-arrange product.tpl ?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-05-2008, 10:39 AM
 
POSDepot POSDepot is offline
 

Advanced Member
  
Join Date: Sep 2002
Posts: 52
 

Default help to re-arrange product.tpl ?

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.
Attached Thumbnails
Click image for larger version

Name:	before.gif
Views:	267
Size:	27.8 KB
ID:	1262  Click image for larger version

Name:	after.gif
Views:	256
Size:	27.4 KB
ID:	1263  
Attached Files
File Type: tpl product.tpl (2.9 KB, 170 views)
__________________
X-Cart Gold
4.1.9
Reply With Quote
  #2  
Old 12-09-2008, 04:04 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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>
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #3  
Old 12-11-2008, 10:11 AM
 
POSDepot POSDepot is offline
 

Advanced Member
  
Join Date: Sep 2002
Posts: 52
 

Red face Re: help to re-arrange product.tpl ?

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
Attached Files
File Type: tpl product.tpl (11.6 KB, 157 views)
__________________
X-Cart Gold
4.1.9
Reply With Quote
  #4  
Old 12-11-2008, 10:48 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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> )
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #5  
Old 12-11-2008, 12:32 PM
 
POSDepot POSDepot is offline
 

Advanced Member
  
Join Date: Sep 2002
Posts: 52
 

Default Re: help to re-arrange product.tpl ?

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
Attached Thumbnails
Click image for larger version

Name:	aftermod.gif
Views:	235
Size:	25.4 KB
ID:	1278  
__________________
X-Cart Gold
4.1.9
Reply With Quote
  #6  
Old 12-11-2008, 01:19 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:09 PM.

   

 
X-Cart forums © 2001-2020