If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Categories, Products, Attributes / Alternate pictures not showing large pictures in pop-up

Alternate pictures not showing large pictures in pop-up

Started by pexter on 8 May 2013, 8:04 PM · Views: 1,244

Results 1 to 7 of 7
8 May 2013, 8:04 PM
#1
pexter avatar

pexter

New Zenner

Join Date:
May 2013
Location:
Karlskoga, Sweden
Posts:
48
Plugin Contributions:
0

Alternate pictures not showing large pictures in pop-up

I can't figure this one out:
I have set up a new product and added a product image for it using admin, alufase55bred.jpg.
I have then added alufase55bred_LRG.jpg in the images/large folder using cpanel file upload.

When viewing the product, the small image shows up and the large image shows up when clicking the product picture, so that's all working as it should.

Now, I add a couple of more pictures using cpanel file upload, alufase55bred_01.jpg in the images folder and alufase55bred_01_LRG.jpg in the images\large folder.

When viewing the product page I can now see the additional images under the main product image, but when I click the additional images its not the large image that pops up, it's still the small image.

I have tried changing image names, uploaded them again and again and googled for hours.. I'm stuck :(
Everything works as it should with the main picture but not with the additional pictures.

Ideas anyone?

8 May 2013, 10:51 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Alternate pictures not showing large pictures in pop-up

Try naming it

alufase55bred_LRG_01.jpg

Zen-Venom Get Bitten

13 May 2013, 12:46 PM
#3
pexter avatar

pexter

New Zenner

Join Date:
May 2013
Location:
Karlskoga, Sweden
Posts:
48
Plugin Contributions:
0

Re: Alternate pictures not showing large pictures in pop-up

Nope, that did not help, and I believe the proper syntax is with _LRG at the end, how else am I supposed to name the smaller pictures?

So, Im still stuck. Is it possible to limit the "large-image-script" so that it only works with the main picture? I dont know why anyone would want that, but that's how it's acting right now.

Do I need a medium picture?

13 May 2013, 1:37 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Alternate pictures not showing large pictures in pop-up

Double check image naming for spaces & caps that are different than the base image

You are correct that the correct naming protocol would be alufase55bred_01_LRG.jpg in the large folder

Zen-Venom Get Bitten

13 May 2013, 1:39 PM
#5
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Alternate pictures not showing large pictures in pop-up

pexter:

Do I need a medium picture?No you don't need a medium.
Its most likely a typo
Have you got a link where we can see this.

13 May 2013, 2:59 PM
#6
pexter avatar

pexter

New Zenner

Join Date:
May 2013
Location:
Karlskoga, Sweden
Posts:
48
Plugin Contributions:
0

Re: Alternate pictures not showing large pictures in pop-up

Found the error, it was in the additional_images.php file under my template.
I had to change line 94 from:
$script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="' . $base_image . '">' . $thumb_slashes . '<br /><span class="lupa"></span></a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';

to:
$script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="' . $products_image_large . '">' . $thumb_slashes . '<br /><span class="lupa"></span></a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';

Thanks everyone for trying to help! :smile:

13 May 2013, 3:03 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Alternate pictures not showing large pictures in pop-up

Thanks for the update that this is now working for you and for posting the problem that was causing it ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!