X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Detailed Image(s) Popup 2.1 [3.4.x-4.0.x] (https://forum.x-cart.com/showthread.php?t=8460)

TL408 01-28-2005 12:55 PM

Quote:

Originally Posted by B00MER
If you can't get this to work I can offer my services to do such customizations for you.

How much do you charge to get this module working on X-cart 4.0.11 ?

Thanks.

chetlucas 02-04-2005 05:17 PM

Works Great in 4.0.11
 
Detailed Popup Window works great in 4.0.11 also.

Thanks bunches - I needed that. I used it in 3.5.4 and it worked then too.

wapiticboy 02-05-2005 08:49 PM

Got it working in 4.0.11
 
BOOMER~~~~~~

thanks..great mod... got it working in 4.0.11 nicely

originally did not work..but i re-read the entire topic and found the entry about the product_detailed_images.php file having to be in the cart root directory in Version 4.xx..
moved it there and whoop-de-doo it worked.

thanks Boomer et al...
adds a little pinache to an otherwise boring process....

mustang 02-07-2005 10:51 AM

Very nice mod BOOMER! I do appreciate you sharing it. Thank you.

Anyone know how to work the detailed image's "Alternative text" into this mod? In some cases, it would be useful to display this text under the image, so the customer knows exactly what they are looking at.

sstillwell@aerostich.com 02-08-2005 07:39 AM

Here is what I did to get the ALT text to show at the top of the image. May not be the best implementation but oh well.

This is for 4.x

skin1/customer/main/product_images.tpl

Added photo_alt array in javascript
Code:

{/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}


Added " document.all.photosalt.innerHTML=photos_alt[which]; "
Code:

  applyeffect()
  document.images.photoslider.src=photos[which];
  document.all.photosalt.innerHTML=photos_alt[which]; 
  newWidth=parseInt(photos_width[which])+50;
  newHeight=parseInt(photos_height[which])+100;

In both the forward and backward functions

for the HTML

Change the top part to
Code:

{if $images[1].imageid ne ""}
  <tr>
    <td width="20%" height="21" onClick="javascript:backward();return false;" style="cursor:pointer;cursor:hand;" onMouseOver="'"><p align="left">[img]{$ImagesDir}/larrow.gif[/img] Previous</td>
    <td align="center"><div id="photosalt"><script>document.write(photos_alt[0])</script></div></td>
    <td width="20%" height="21" onClick="javascript:forward();return false;" style="cursor:pointer;cursor:hand;"><p align="right">Next [img]{$ImagesDir}/rarrow.gif[/img]</td>
  </tr>
{/if}


kalmaster 02-10-2005 04:56 PM

Hello all, i'm getting this error in the popup page

Quote:

Warning: main(./auth.php): failed to open stream: No such file or directory in /home/httpd/vhosts/vtec.com/httpdocs/retail/customer/product_detailed_images.php on line 10



this is line 10 on the product_detailed_image.php
Code:

require "./auth.php";

when i changed it to the absolute path
/home/httpd/vhosts/vtec.com/httpdocs/retail/auth.php

it worked sorta but then it gave me another error message
it said:
Quote:

ERROR: Can not initiate application! Please check configuration.


What gives?

the version of x-cart i have is 4.0.4

Thank you for your help

kalmaster 02-10-2005 05:35 PM

ah! nevermind
i just read someone's post about product_detailed_images.php has to be in the base directory for 4.0.x

thanks!
it works great now!

TheComputerGuy 02-12-2005 05:48 PM

Anyone sucessful getting this to run with v4.0.9?

balinor 02-12-2005 06:52 PM

I have it working in quite a few different versions of 4.0 including 4.0.9.

PremiumPonyParts 02-15-2005 09:06 PM

Thanks this script was exactly what I was looking for. I think you deserve a donation or something.


All times are GMT -8. The time now is 03:09 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.