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

detailed images in place of thumbnails in products.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-17-2005, 12:04 PM
 
zilker zilker is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 89
 

Default detailed images in place of thumbnails in products.tpl

Anyone know how to add the detailed images to the products page in place of or in addition to the thumbnails?

I'm real close to putting it all together but I need a direction to go. Will I need to edit the database and/or php files or will it be just the template files?

Any suggestions are appreciated
__________________
~zilker

uummm...perhaps you should tell me again.

http://www.designertrends.com
Version 4.0.6
Unix
Reply With Quote
  #2  
Old 01-17-2005, 12:10 PM
 
balinor balinor is offline
 

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

Default

Here's the way I usually do it. Look for this code in product.tpl:

Code:
{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail"}

replace it with this:

Code:
{include file="modules/Detailed_Product_Images/product_images.tpl" }

Then just edit the detailed product image template as required to get it to show up the way you want it.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 01-17-2005, 12:26 PM
 
zilker zilker is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 89
 

Default

Thanks for the quick reply. I don't think I made myself clear. I want to replace the thumbnails in products.tpl, not product.tpl.

Here's an example:

I'm trying to get the detailed images from

http://www.puttinggreensturf.com/product.php?productid=16176&cat=252&page=2

to show up on

http://www.puttinggreensturf.com/home.php?cat=252&page=2

That's why I need some direction, it seems that there are going to be a few files for me to edit.
__________________
~zilker

uummm...perhaps you should tell me again.

http://www.designertrends.com
Version 4.0.6
Unix
Reply With Quote
  #4  
Old 01-17-2005, 02:38 PM
 
balinor balinor is offline
 

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

Default

Doh! Sorry about that. So you want a whole bunch of detailed images next to each product in the products display? Isn't that going to be a bit nuts?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 01-17-2005, 03:02 PM
 
zilker zilker is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 89
 

Default

Yes, it will be. It will also make it load slower. I went over both of those with the site owner but that's the way he wants it done.

I sat in front of the computer screen for about 4 hrs today and didn't get anything accomplished ~ bah!
__________________
~zilker

uummm...perhaps you should tell me again.

http://www.designertrends.com
Version 4.0.6
Unix
Reply With Quote
  #6  
Old 01-17-2005, 03:11 PM
 
balinor balinor is offline
 

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

Default

And of course...the customer is ALWAYS right

If I get some free time tonight I'll take a look at it for you....
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 01-27-2005, 07:22 AM
 
zilker zilker is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 89
 

Default

bump

anyone have any ideas on where to start?
__________________
~zilker

uummm...perhaps you should tell me again.

http://www.designertrends.com
Version 4.0.6
Unix
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:09 PM.

   

 
X-Cart forums © 2001-2020