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

Detail instead of thumbnail on Product page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-11-2004, 11:41 PM
 
Light Speed Light Speed is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 921
 

Default Detail instead of thumbnail on Product page

In product.tpl where the code is:
Code:
<td valign=top align=left rowspan=2 width=100> {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} </td>

I would like to replace the thumbnail image with the first detailed image (I am using the detailed images module) and in the detailed images section I would like to not display the first detailed image (since it would already be viewed above) and start the detailed images section with the second detailed image.

Is this possible or would it be a real pain?
Reply With Quote
  #2  
Old 03-16-2004, 07:03 AM
  domspe's Avatar 
domspe domspe is offline
 

Advanced Member
  
Join Date: Mar 2004
Location: Sarasota, FL
Posts: 79
 

Default

i'd say, find the code that loads the detail image and insert it there.
back everything up before, of course..
but through trial & error, you should have your detail image where you want it.

if i could even GET my detail image module to work, i'd be of more help...
__________________
~jaime*
shop.mpartworks.com
~~~~~~~~~~~~~~
xcart pro 3.5.5
heavily modified
freeBSD 4.8
php 4.3.3
Reply With Quote
  #3  
Old 03-16-2004, 10:06 AM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default

It's possible, but keep in mind the product.tpl isn't for the faint of heart so back it up before playing with it.

Replace

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}

With

Code:
{if $active_modules.Detailed_Product_Images ne ""} <font class=ProductDetailsTitle> {include file="modules/Detailed_Product_Images/product_images.tpl"}{/if}

You'll see the above code further down on the product.tpl template too, remember to comment it out or you'll get a duplicate of the detail images.

Add that in the place of the thumbnail will use the detailed product images in it's place on customer/main/product.tpl.

If you only want the first image to show you're going to have to hack up product_images.tpl too.

The above should put you on the right track anyway.

Oh above examples are from 3.4.9 branch, not looked at it for 3.5.X but should be something similar
__________________
Groovico

Used by X-carters the world over:
Marketing Manager Pro Bundle For X-cart
Featured Product Manager for X-cart
Feed manager pro for X-cart

http://www.firetanksoftware.com

Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X
Reply With Quote
  #4  
Old 03-16-2004, 11:55 AM
 
Light Speed Light Speed is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 921
 

Default

Thanks Groovico - That makes sense on the thumbnail replacement. I'll dig around a little in product_images.tpl and see if I can find a way to start the detail image loop that shows up down the page to start with the second detailed image.
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 02:23 AM.

   

 
X-Cart forums © 2001-2020