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)

B00MER 08-31-2006 10:53 AM

Re: Detailed Image(s) Popup 2.1 [3.4.x-4.0.x]
 
4.1.x has a similar mod built-in, look around the admin settings ;)

goldoak 09-02-2006 12:34 PM

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

Originally Posted by B00MER
4.1.x has a similar mod built-in, look around the admin settings ;)

Yes, I've enabled the module to display the detailed images in a popup window, but I don't see anything about displaying the image alt tag text with the image.
How can I have the alt text show below the image as a caption?

B00MER 09-02-2006 02:10 PM

Re: Detailed Image(s) Popup 2.1 [3.4.x-4.0.x]
 
I beleive {image.[i].alt} would work in the instance, [i] being the iteration of a section/foreach loop if there are multiple images. Just taking a stab in the dark, but should help you achieve what you want.

goldoak 09-05-2006 07:57 AM

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

Originally Posted by B00MER
I beleive {image.[i].alt} would work in the instance, [i] being the iteration of a section/foreach loop if there are multiple images. Just taking a stab in the dark, but should help you achieve what you want.

Thanks Boomer, but that didn't work. With that code added, the popup opens but no images display.
In the img tag, the alt text is referred to as '{$images[$idx].alt|escape}' and it does work to include the alt text within the img tag. But it does not work to display the text on the page.
Does something have to be declared or coded in 'popup_images.js'?

ecommerce 09-13-2006 09:21 AM

Re: Detailed Image(s) Popup 2.1 [3.4.x-4.0.x]
 
hey boomer, sees like a champion mod!

1. is this working on 4 0 18?

2. where to do i get the latest must updated instructions/files?

3. does the latest version include:
next previous links
1 of xx
title of image
click here to close link

thanks as always 8)

ecommerce 09-13-2006 09:26 AM

Re: Detailed Image(s) Popup 2.1 [3.4.x-4.0.x]
 
is there a way to set the initial size of the pop up to say 400 x 400

so if the
# 1 image is 200 x 200, the window will remain at 400 x 400

# 2 image is 600 x 600, the window will increase to 600 x 600 approx

# 3 image is 300 x 300, the window will default to 400 x 400

I think a method like this will allow for more of a consistent window size
that only needs to expand on special huge image cases.

goldoak 09-14-2006 10:01 AM

Re: Detailed Image(s) Popup 2.1 [3.4.x-4.0.x]
 
Hi All,
Just got info from X-cart support:
the syntax '{$images[$idx].alt|escape}' is correct to display the alt text in the popup window with the image. It just is not compatible with the module option "Switch detailed images...without page reloading".
Once I turned off that option the alt text displayed as I wanted.

Kara 09-27-2006 02:28 PM

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

Originally Posted by B00MER
What version of X-Cart are you running?

If your using any version above 3.5.x+ you'll need to put the php file straight in the root of your x-cart installation and change the reference in the .tpl files accordingly.

Hope this helps.



What .tpl files are you referring to? I am having the same problem.

And as well, I get this message:
[img]/store/skin1/images/preview.gif/img]View Details
under the product picture


http://d2729703.u51.websitesource.net/store/product.php?productid=16415&cat=249&page=1

Other than that, I have it working and I am def not a tech head. Your help would be greatly appreciated.

B00MER 09-27-2006 06:38 PM

Re: Detailed Image(s) Popup 2.1 [3.4.x-4.0.x]
 
Change [img] tags to the proper <IMG html counterpart since the change from phpBB to vB it seems code tags got converted as well.

Hopefully I can fix the posted code in the future.

martin242 10-08-2006 06:03 PM

Re: Detailed Image(s) Popup 2.1 [3.4.x-4.0.x]
 
Hi there,
I would like to show the detailed image on a popup window when you click on any product's thumbnail instead of linking to the product itself. Any ideas of how to do this?


All times are GMT -8. The time now is 11:30 AM.

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