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

Use thumbnail as detailed if detailed image is not available

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-22-2005, 10:25 AM
 
Dorette Dorette is offline
 

Advanced Member
  
Join Date: Jun 2005
Posts: 71
 

Default Use thumbnail as detailed if detailed image is not available

How can I use thumbnail as detailed image if detailed image is not available?
I have some detailed images.
__________________
Version 4.0.17
Reply With Quote
  #2  
Old 08-23-2005, 03:27 AM
 
balinor balinor is offline
 

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

Default

You mean you want to just repeat the thumbnail below the product description again?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 08-23-2005, 06:24 AM
 
Dorette Dorette is offline
 

Advanced Member
  
Join Date: Jun 2005
Posts: 71
 

Default

not exactly, what i mean is this

on the detailed product page,
if there is a detailed image show it, if not show thumbnail
__________________
Version 4.0.17
Reply With Quote
  #4  
Old 08-25-2005, 05:43 AM
 
Dorette Dorette is offline
 

Advanced Member
  
Join Date: Jun 2005
Posts: 71
 

Default

Any help?
__________________
Version 4.0.17
Reply With Quote
  #5  
Old 08-25-2005, 08:10 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

check custom mods forum for stuff like this, done plenty of times
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #6  
Old 08-25-2005, 02:03 PM
 
Dorette Dorette is offline
 

Advanced Member
  
Join Date: Jun 2005
Posts: 71
 

Default

Hi Shan,
Do you have a link to any of those topics, I have searched all over but still can't find any ?
__________________
Version 4.0.17
Reply With Quote
  #7  
Old 08-26-2005, 03:56 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

a quick search of custome mods forum gives this in the first few results

http://forum.x-cart.com/viewtopic.php?t=21397&highlight=detailed+image

search for detailed AND images in custom mods forum
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #8  
Old 08-26-2005, 04:12 AM
 
Dorette Dorette is offline
 

Advanced Member
  
Join Date: Jun 2005
Posts: 71
 

Default

Hi Shan,
Thanks a lot, i read the topic but I think this is what the mod is for
Quote:
replace the thumbnail on the product page with the first image from your detailed images and then have your detailed images section start with the second detailed image


This is to use the thumbnail on the detailed product page. and then use the detailed image as a first detailed image.

What i am looking for is this

I have some deatiled images for some products and only the thumbnails for others

on my detailed page, I want an if clause like this

If detailed image is available show the detailed image
else show the thumbnail for this product.
__________________
Version 4.0.17
Reply With Quote
  #9  
Old 08-26-2005, 04:31 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

just find the code that shows the thumbnail in product.tpl and wrap this round it

Code:
{if $images} code to show detailed imge {else} code to show thumbnail {/if}

see skin1/modules/detailed_images folder for files that control showing detailed images
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #10  
Old 08-27-2005, 09:56 PM
 
Dorette Dorette is offline
 

Advanced Member
  
Join Date: Jun 2005
Posts: 71
 

Default

Hi Shan,
I used this code and I am getting the no image available image instead of the thumbnail where there is no detailed image



{if $images}
{include file="modules/Detailed_Product_Images/product_images.tpl" }
{else}
{include file="product_thumbnail.tpl" productid=$products[product].productid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].tmbn_url}
{/if}
__________________
Version 4.0.17
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 09:54 AM.

   

 
X-Cart forums © 2001-2020