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

Detailed Product Images Popup on Thumbnail click.

 
Closed Thread
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #61  
Old 01-22-2004, 09:17 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

skin1/modules/Detailed_Product_images/product_images.tpl update this file with the following code.

Code:
{if $images[image].tmbn_url} [img]{$images[image].tmbn_url}[/img] {else} [img]{$xcart_web_dir}/product_image.php?imageid={$images[image].imageid}[/img] {/if}
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
  #62  
Old 02-20-2004, 07:10 AM
 
magnumkp magnumkp is offline
 

eXpert
  
Join Date: Apr 2003
Location: England
Posts: 304
 

Default

I got it all working and it is a fantastic mod (as I'm stuck on 56k at home I hate looking at big pics myself). However, I've got a bit of a problem as I've put a bit of text under the images so people know that you can click. However, not all products have detailed images. What coding do I need to hide the text when there are no detailed images. TIA.
  #63  
Old 02-20-2004, 07:16 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

{if $images}
...
{/if}
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
  #64  
Old 02-23-2004, 01:26 AM
 
magnumkp magnumkp is offline
 

eXpert
  
Join Date: Apr 2003
Location: England
Posts: 304
 

Default

Thanks boomer, works a treat
  #65  
Old 03-09-2004, 03:33 PM
 
cspecken cspecken is offline
 

Senior Member
  
Join Date: Nov 2003
Posts: 161
 

Default Still trying to get the resize to work! Any Ideas?

Hi, has anyone been able to resize the popup window to fit the image correctly?

Thanks in Advance
  #66  
Old 03-09-2004, 05:19 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Inside the skin1/modules/Detailed_Product_Images/product_images.tpl after the {section name=image loop=$images} code add:

Code:
<SCRIPT language=JavaScript1.2> <!-- h = {$images[image].image_y} + 65; w = {$images[image].image_x} + 85; window.resizeTo(h,w); --> </SCRIPT>

May want to adjust the 65, 85 to whatever you like for spacing.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
  #67  
Old 03-12-2004, 12:55 PM
 
cspecken cspecken is offline
 

Senior Member
  
Join Date: Nov 2003
Posts: 161
 

Default Now Popup will not POPUP!

Hi Boomer, I tried your suggestion, but now the Detailed image only shows below the detailed text, the popup window no longer displays. My images are stored on the file system. Any ideas?




Thanks, Chris

X-Cart V.3.5
PHP 4.3.3
  #68  
Old 04-03-2004, 01:48 PM
 
SMDStudios SMDStudios is offline
 

eXpert
  
Join Date: Dec 2003
Location: Orlando, FL
Posts: 207
 

Default

Quick question.....

If there isnt a detailed image for a product it will show the thumbnail image in place of the detail image correct?
__________________
X-Cart Gold various versions
Tahoe Web Design

WebsiteCM.com - We recommend WebsiteCM
  #69  
Old 04-04-2004, 07:21 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

No, if no detailed image exists the thumbnail isn't clickable, no window popup would occur on click.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
  #70  
Old 04-05-2004, 05:47 AM
 
SMDStudios SMDStudios is offline
 

eXpert
  
Join Date: Dec 2003
Location: Orlando, FL
Posts: 207
 

Default

weird...It doesnt work for me like that. How could I alter the code so if there isnt a detailed image it shows the full size thumbnail image?
__________________
X-Cart Gold various versions
Tahoe Web Design

WebsiteCM.com - We recommend WebsiteCM
Closed Thread
   X-Cart forums > X-Cart 4 > Dev Questions



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 06:19 AM.

   

 
X-Cart forums © 2001-2020