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

Detailed Image(s) Popup 2.1 [3.4.x-4.0.x]

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #171  
Old 02-01-2006, 02:09 PM
 
Kerbsp Kerbsp is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 95
 

Default

Hi everyone
Thanks for such a great module and installation guide. I put it on my website with no problems.
Question: how do I remove the rezise button (maximize, and restore)? and If I want to have thumbnails of the detail images in the pop up window that opens up when clicked on, how do I do that.
I am using 4.0.17. Thank you.
__________________
Xcart 4.0.17 - XAOM - XRMA - Special Offer - Sales & Stats
______
www.futurevis.com
Reply With Quote
  #172  
Old 02-15-2006, 08:59 AM
 
ortonceramic ortonceramic is offline
 

Member
  
Join Date: Nov 2005
Location: Columbus, Ohio
Posts: 28
 

Default

how do you use this mod with image stored in the file system rather than the database?
__________________
xcart gold v4.0.16 [unix]
Reply With Quote
  #173  
Old 02-15-2006, 09:15 AM
 
balinor balinor is offline
 

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

Default

It works fine either way.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #174  
Old 02-15-2006, 09:22 AM
 
ortonceramic ortonceramic is offline
 

Member
  
Join Date: Nov 2005
Location: Columbus, Ohio
Posts: 28
 

Default

Quote:
Originally Posted by balinor
It works fine either way.

ok, well I get a 404 error in the pop up window.

http://www.ortonceramic.com/store/product.php?productid=16383 (live store, do not buy please)


ugh
__________________
xcart gold v4.0.16 [unix]
Reply With Quote
  #175  
Old 02-15-2006, 09:26 AM
 
balinor balinor is offline
 

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

Default

Looks like you put a template or php file in the wrong directory. Check the installation instructions again just to be sure...
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #176  
Old 02-15-2006, 09:53 AM
 
ortonceramic ortonceramic is offline
 

Member
  
Join Date: Nov 2005
Location: Columbus, Ohio
Posts: 28
 

Default

Quote:
Originally Posted by balinor
Looks like you put a template or php file in the wrong directory. Check the installation instructions again just to be sure...

hmm, looks like the instructions are a tad incorrect.

Code:
Step 1) Save the below file to xcart/customer/product_detailed_images.php

should really just be xcart/product_detailed_images.php
__________________
xcart gold v4.0.16 [unix]
Reply With Quote
  #177  
Old 02-15-2006, 10:24 AM
 
ortonceramic ortonceramic is offline
 

Member
  
Join Date: Nov 2005
Location: Columbus, Ohio
Posts: 28
 

Default

Quote:
Originally Posted by keavy
anyone any idea how I would have this option active ONLY if there is more than 1 detailed image?


similarly, I would like only the FIRST detailed image to be shown in the pop up, and not cycle through the other images. Thoughts?
__________________
xcart gold v4.0.16 [unix]
Reply With Quote
  #178  
Old 02-16-2006, 06:53 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

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

Default

Quote:
Originally Posted by ortonceramic
similarly, I would like only the FIRST detailed image to be shown in the pop up, and not cycle through the other images. Thoughts?

Edit:
xcart/skin1/customer/main/product_images.tpl

and comment out or remove:
Code:
{if $images[1].imageid ne ""} <tr class="VertMenuBox"> <td width="50%" height="21" onClick="javascript:backward();return false;" style="cursor:pointer;cursor:hand;" onMouseOver="'"><p align="left">[img]{$ImagesDir}/larrow.gif[/img] Previous</td> <td width="50%" height="21" onClick="javascript:forward();return false;" style="cursor:pointer;cursor:hand;"><p align="right">Next [img]{$ImagesDir}/rarrow.gif[/img]</td> </tr> {/if}

In both the bottom and top of the document.write part of the script.

This will simply remove the ability for the customer to proceed forward or backwards leaving them on the initial detailed image only. You may also want to make some adjustments to the initial popup sizes as you may get a margin on the top and bottom, commenting them out.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #179  
Old 04-12-2006, 02:40 AM
 
dazybabes dazybabes is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 70
 

Default

Has anyone come across this problem at all? From all accounts the mod seems to have been working ok, I use firefox and then check on a pc explorer etc. For some reason it has started putting in a large space at the top before the alt text and image when viewed in explorer. Have a look at the detailed image on this one.
http://www.kitinfo.co.uk/kitwarehouse/product.php?productid=223&cat=%2039&page=1

This is the detailed image.tpl that Im using
Code:
{if $images ne ""} { config_load file="$skin_config" } <html> <head> <title>Detailed Image(s) - {$lng.txt_site_title}</title> {include file="meta.tpl"} <link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}"> <SCRIPT language=JavaScript1.2> <!-- // Initial Resize var h = {$images[0].image_y}+{if $images[1].imageid ne ""}100{else}50{/if}; var w = {$images[0].image_x}+50; // make sure size isn't bigger than users screen {literal} if(h>=screen.height) { б═ h=screen.height-30; } if(w>=screen.width) { б═ w=screen.width; } {/literal} window.resizeTo(w,h); // Vars var photos=new Array() var photos_width=new Array() var photos_height=new Array() var photos_alt=new Array() var which=0 // Images {section name=image loop=$images} photos[{%image.index%}]="{$xcart_web_dir}/product_image.php?imageid={$images[image].imageid}" photos_width[{%image.index%}]="{$images[image].image_x}" photos_height[{%image.index%}]="{$images[image].image_y}" photos_alt[{%image.index%}]="{$images[image].alt}" {/section} {literal} var preloadedimages=new Array() for (i=0;i<photos.length;i++){ б═ б═preloadedimages[i]=new Image() б═ б═preloadedimages[i].src=photos[i] } function applyeffect(){ б═ б═if (document.all && photoslider.filters){ б═ б═ б═ photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*23) б═ б═ б═ photoslider.filters.revealTrans.stop() б═ б═ б═ photoslider.filters.revealTrans.apply() б═ б═} } function playeffect(){ б═ б═if (document.all && photoslider.filters) б═ б═ б═ photoslider.filters.revealTrans.play() } function backward(){ б═ б═if (which>0){ б═ б═ б═ which-- б═ б═} else { б═ б═ б═ which=photos.length-1; б═ б═} б═ applyeffect() б═ б═pagenumber = which + 1; б═ б═document.images.photoslider.src=photos[which]; б═ б═document.all.photosalt.innerHTML=photos_alt[which];б═ б═ б═ б═document.all.page.innerHTML=pagenumber+" of "+photos.length;б═ б═ б═ б═newWidth=parseInt(photos_width[which])+50; б═ б═newHeight=parseInt(photos_height[which])+100; б═ б═if(newHeight>=screen.height) { б═ б═ б═newHeight=screen.height-30; б═ б═} б═ б═if(newWidth>=screen.width) { б═ б═ б═newWidth=screen.width; б═ б═} б═ б═window.resizeTo(newWidth,newHeight)б═ б═ б═ б═ б═playeffect() б═ б═ } function forward(){ б═ б═if (which<photos.length-1){ б═ б═ б═ which++; б═ б═} else { б═ б═ б═ which=0; б═ б═} б═ applyeffect() б═ б═pagenumber = which + 1; б═ б═document.images.photoslider.src=photos[which]; б═ б═document.all.photosalt.innerHTML=photos_alt[which]; б═ б═document.all.page.innerHTML=pagenumber+" of "+photos.length;б═ б═ б═ б═newWidth=parseInt(photos_width[which])+50; б═ б═newHeight=parseInt(photos_height[which])+100; б═ б═if(newHeight>=screen.height) { б═ б═ б═newHeight=screen.height-30; б═ б═} б═ б═if(newWidth>=screen.width) { б═ б═ б═newWidth=screen.width; б═ б═} б═ б═window.resizeTo(newWidth,newHeight)б═ б═ б═ б═ б═playeffect() } function print_index(){ б═ б═alert(which); } //--> </script> {/literal} </head> <body class="PopupImage" LEFTMARGIN=0 TOPMARGIN=0 RIGHTMARGIN=0 BOTTOMMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0> <TABLE class="PopupImage" WIDTH="100%" HEIGHT="100%" CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD align="center" valign="top"> <table border="0" cellspacing="0" cellpadding="0"> {if $images[1].imageid ne ""} б═ <tr> б═ б═ <td colspan="3"><div class="ProductTitle" id="photosalt" align="center"><script>document.write(photos_alt[0])</script> </div></td> б═ б═ б═ б═ б═ </tr> {/if} б═ <tr> б═ б═ <td width="100%" colspan="3" align="center"><center><A HREF="javascript:window.close();"> {literal} <script> document.write('[img]'+photos[0]+'[/img]') </script> {/literal} </center></a></td> б═ </tr> {if $images[1].imageid ne ""} б═ <tr> б═ б═ <td onClick="javascript:backward();return false;" style="cursor:pointer;cursor:hand;" onMouseOver=""><p align="left">[img]{$ImagesDir}/larrow.gif[/img] Previous</td> б═ б═ <td><div id="page" align="center"><script>document.write('1 of '+photos.length);</script></div></td> б═ б═ <td onClick="javascript:forward();return false;" style="cursor:pointer;cursor:hand;"><p align="right">Next [img]{$ImagesDir}/rarrow.gif[/img]</td> б═ </tr> {/if} </table> </TD> </TR></TABLE> </body> </html> {else} No Image(s) Found! {/if}
__________________
X-Cart Version 4.0.3
Reply With Quote
  #180  
Old 06-30-2006, 04:40 AM
  girlsbits's Avatar 
girlsbits girlsbits is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 77
 

Default

Hi Guys,

Thanks to Boomer for this mod, it works fine except that instead of showing the default thumbnail image (130x150px) on the product details page, how would I show a resized larger image (250x297) which would then open a popup window on click? The current correct code for the larger image of 250x297 is this:

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" type="P"}{/if}

I have tried for days using different variations, don't want to pluck the last strand of hair from my head so thought I'd finally ask for help.

Many thanks!
__________________
X-Cart Gold | v 4.0.18 | Unix | php 4.3 | phpMyAdmin 2.8.0.3 |
Reply With Quote
Reply
   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 11:31 PM.

   

 
X-Cart forums © 2001-2020