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

Modifying the layout of product.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-30-2008, 01:48 AM
 
bespoke kid bespoke kid is offline
 

Member
  
Join Date: Apr 2008
Posts: 10
 

Default Modifying the layout of product.tpl

Hello i'm trying to change the layout of product.tpl so that i can show a large image of the product but not shunt the whole page off the screen to the right.

So maybe have the image above the "Detailed description" like this :-

http://www.bespoke-dance-shoes.co.uk/xcart/images/producttemplate.jpg

sorry it's a bit long, i'm also thinking about how to allow the customers to read the shoe ranges text (there's so much of it !) but allow them to customize their selected shoe model quickly.

i've tried copying and pasteing the code in product.tpl into the positions i want but i just get errors.

any help appreciated.
__________________
x-cart gold Version 4.0.11
Reply With Quote
  #2  
Old 05-30-2008, 04:20 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Modifying the layout of product.tpl

product.tpl has a lot of {if} statements that can easily break if you aren't careful. It is a tough page to edit, you just need to keep trying. I'd suggest using Dreamweaver to help you see the table layouts, that is a least a start!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 05-31-2008, 03:23 AM
 
bespoke kid bespoke kid is offline
 

Member
  
Join Date: Apr 2008
Posts: 10
 

Default Re: Modifying the layout of product.tpl

thanks I was using dreamweaver, but like you say it's a bit fiddly to edit that .tpl
__________________
x-cart gold Version 4.0.11
Reply With Quote
  #4  
Old 06-02-2008, 06:36 AM
  PostcardMania's Avatar 
PostcardMania PostcardMania is offline
 

Newbie
  
Join Date: May 2008
Location: Tampa Bay
Posts: 7
 

Default Re: Modifying the layout of product.tpl

I'm currently setting up our page and modifying its contents. I've found a best practice is to comment out bits of code or duplicate the page entirely. That way the original code stays intact, should you seriously FUBAR something.

That being said, and balinor correct me if I'm wrong, but product.tpl handles how each product's page will be laid out, whereas products.tpl determines the layout of product listings on the main page.

(I recently wasted an hour wanting to update products.tpl, but working in product.tpl instead and pulling my hair out!)
__________________
Eric
Dir. of Internet Services
PostcardMania, an Inc. 500 Company

Visit
http://www.postcardmania.com for all your direct mail marketing needs!

X-Cart Version 4.1.10
Reply With Quote
  #5  
Old 06-02-2008, 06:38 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Modifying the layout of product.tpl

When in doubt, use webmaster mode or reference this thread:

http://forum.x-cart.com/showthread.php?t=21529
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 06-02-2008, 01:22 PM
 
MasterGuru MasterGuru is offline
 

Member
  
Join Date: Jun 2008
Posts: 14
 

Default Re: Modifying the layout of product.tpl

Is there a program we can use from our desktop to edit the tpl files? decides dreamweaver. One that we can see what the layout looks like while still being able to edit the code?
__________________
X-Cart Pro 4.1.0
Reply With Quote
  #7  
Old 06-02-2008, 01:24 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Modifying the layout of product.tpl

No, if you want to see the table layout, DW is your best bet. But you really should edit the code in a code editor like UltraEdit.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 06-02-2008, 02:21 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Modifying the layout of product.tpl

There is also a firefox addon that allows you to outline tables and/or table cells. It is called Web Developer. Using that in combination with Firebug makes it easier to see the numberous embedded tables & table cells.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #9  
Old 06-22-2009, 01:08 AM
 
Realsecurity Realsecurity is offline
 

Senior Member
  
Join Date: Apr 2005
Location: Bexhill
Posts: 128
 

Default Re: Modifying the layout of product.tpl

How does one remove the CSS styling to the detailed description area? want to add my own html product layout so that all text appears exactly as it was made in dreamweaver! if i copy the html code straight into detailed description at the moment it just reverts to x-carts font size, width, font colour etc!

any suggestions appreciated,
__________________
SURECOM XCART V4.1.8
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 05:10 AM.

   

 
X-Cart forums © 2001-2020