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

How do I cahnge the layout of the Product Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-07-2007, 08:47 AM
 
WestCoastBikers WestCoastBikers is offline
 

Member
  
Join Date: Mar 2007
Posts: 18
 

Default How do I change the layout of the Product Page

Right now the layout of the product detail page is image on the left with the text and add to cart buttons on the right of the Image.

How do I make it so the image is on the top and the description and add to cart etc is UNDER the picture instead of NEXT to the picture?

Any help would be greatly appreciated!

Thanks

John
__________________
x-cart-4.1.9 Gold
Reply With Quote
  #2  
Old 11-07-2007, 09:49 AM
 
balinor balinor is offline
 

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

Default Re: How do I cahnge the layout of the Product Page

Hi John, that is skin1/customer/main/product.tpl. It is a table based layout, so you would need to open up that template and move the table cells around where you want them. A good html editor will help you to visualize the structure if you aren't familiar with html.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-07-2007, 09:50 AM
 
WestCoastBikers WestCoastBikers is offline
 

Member
  
Join Date: Mar 2007
Posts: 18
 

Default Re: How do I cahnge the layout of the Product Page

Quote:
Originally Posted by balinor
Hi John, that is skin1/customer/main/product.tpl. It is a table based layout, so you would need to open up that template and move the table cells around where you want them. A good html editor will help you to visualize the structure if you aren't familiar with html.

awesome thanks!
__________________
x-cart-4.1.9 Gold
Reply With Quote
  #4  
Old 11-07-2007, 10:54 AM
 
WestCoastBikers WestCoastBikers is offline
 

Member
  
Join Date: Mar 2007
Posts: 18
 

Default Re: How do I cahnge the layout of the Product Page

Quote:
Originally Posted by balinor
Hi John, that is skin1/customer/main/product.tpl. It is a table based layout, so you would need to open up that template and move the table cells around where you want them. A good html editor will help you to visualize the structure if you aren't familiar with html.

Shseesh I though this would be easy - but i am not able to get the results I want.

I need to have t he picture on the top and all the other stuff on the bottom.

I can see the page is made up of table with a row with 2 colums... I guess what I need is 2 rows... if anyone has done this will you post your code...

Thanks a ton!!
__________________
x-cart-4.1.9 Gold
Reply With Quote
  #5  
Old 11-07-2007, 11:01 AM
 
balinor balinor is offline
 

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

Default Re: How do I cahnge the layout of the Product Page

You'd need one row that spans two columns for the image, and then the two columns beneath that. So:

<tr><td colspan="2">image code here</td></tr>
<tr><td>column 1 info</td>
<td>column 2 info</td></tr>

You'll also notice there is a lot of Smarty built in, which is what X-Cart uses as the template engine. This creates a lot of if/then statements, which can also affect that table layout. I'd suggest reading this and perhaps learning a bit more about Smarty first:

http://forum.x-cart.com/showthread.php?t=21529
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 11-07-2007, 02:40 PM
 
WestCoastBikers WestCoastBikers is offline
 

Member
  
Join Date: Mar 2007
Posts: 18
 

Default Re: How do I cahnge the layout of the Product Page

Quote:
Originally Posted by balinor
You'd need one row that spans two columns for the image, and then the two columns beneath that. So:

<tr><td colspan="2">image code here</td></tr>
<tr><td>column 1 info</td>
<td>column 2 info</td></tr>

You'll also notice there is a lot of Smarty built in, which is what X-Cart uses as the template engine. This creates a lot of if/then statements, which can also affect that table layout. I'd suggest reading this and perhaps learning a bit more about Smarty first:

http://forum.x-cart.com/showthread.php?t=21529

Thanks - that really helped me

http://store.digitalguarddawg.com/home.php?cat=327
__________________
x-cart-4.1.9 Gold
Reply With Quote
  #7  
Old 02-22-2008, 03:13 PM
  swifty's Avatar 
swifty swifty is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 38
 

Default Re: How do I cahnge the layout of the Product Page

i'm going about changing my products page, but the image used on my product page is a thumbnail not the full size image it's only in the detailed images that the fullsize image is used and i don't want to use the detailed images after i make these changes.

-swif
__________________
xCart 4.0.17
PHP 5.2.1
MySQL Server 4.0.26
MySQL Client 4.1.22
web Server:
Apache/1.3.37 (Unix) mod_psoft_traffic/0.1 Vortech_PHP/0.1.0-p0 FrontPage/5.0.2.2623 mod_ssl/2.8.28 OpenSSL/0.9.7e-p1
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 07:22 AM.

   

 
X-Cart forums © 2001-2020