Forums / General Questions / Where does it (and maybe Image Handler) save my larger image?

Where does it (and maybe Image Handler) save my larger image?

Views: 1,745

Results 1 to 10 of 10
30 May 2013, 4:50 PM
#1
bparker avatar

bparker

Zen Follower

Join Date:
Oct 2008
Location:
Rochester, NY
Posts:
232
Plugin Contributions:
0

Where does it (and maybe Image Handler) save my larger image?

When I upload a product, I want to include an image. When I add the file, it saves a smaller copy which it displays as a thumbnail in my product viewing screen. (Nice!) However, when I click on that picture, the larger image does not appear.
See http://xyzgrocerydelivery.com/index.php?main_page=product_info&cPath=33&products_id=90 for example.

I know that the viewer works fine. I can upload a larger image using FTP and put it in the right directory with the right label. It shows just fine.
See http://xyzgrocerydelivery.com/index.php?main_page=product_info&cPath=3&products_id=10 for example.
(Yes, I know it shows up as "N/A", but I put that in there for example.

However, it doesn't save a larger image when I upload one upon product upload. How do I fix this? Is this an Image Handler issue?

This is driving me crazy and is absolutely critical to the store. Any help would be much appreciated!

Thanks,
Brendan

30 May 2013, 5:29 PM
#2
kobra avatar

kobra

Black Belt

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

Re: Where does it (and maybe Image Handler) save my larger image?

Your first image is listed as and appears to be handled by image handler
//xyzgrocerydelivery.com/bmz_cache/e/e671372e5ad78339e34e8dc712d42db8.image.132x150.jpg

BUT

Your second image is listed as located at and is not being handled by image handler
//xyzgrocerydelivery.com/images/10.png

Check that you have IH installed correctly and the correct version for the version of ZenCart you are using

Zen-Venom Get Bitten

30 May 2013, 6:13 PM
#3
bparker avatar

bparker

Zen Follower

Join Date:
Oct 2008
Location:
Rochester, NY
Posts:
232
Plugin Contributions:
0

Re: Where does it (and maybe Image Handler) save my larger image?

Ok, thanks, but I'll explain a little bit more.

I installed Zen Cart and then purchased a templatemonster template, which came with some pre-installed products. These are products like the picture of the basket which I replaced with the larger "N/A" image. The tree product was one I added through the products section in admin. Is this saving my larger image? Would you still recommend reinstalling image handler?

(Incidentally, I didn't install it once. I just uploaded whatever was in the template.)

Thanks,
Brendan

30 May 2013, 7:08 PM
#4
kobra avatar

kobra

Black Belt

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

Re: Where does it (and maybe Image Handler) save my larger image?

You can try in your admin removing it and re-enabling it
This should clear out the cache and start over

Zen-Venom Get Bitten

30 May 2013, 7:40 PM
#5
bparker avatar

bparker

Zen Follower

Join Date:
Oct 2008
Location:
Rochester, NY
Posts:
232
Plugin Contributions:
0

Re: Where does it (and maybe Image Handler) save my larger image?

Sorry, I haven't done this before. Where is that? The setting to change it, I mean.

30 May 2013, 11:53 PM
#6
kobra avatar

kobra

Black Belt

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

Re: Where does it (and maybe Image Handler) save my larger image?

If I am not mistaken it is at

admin > tools >

Zen-Venom Get Bitten

31 May 2013, 5:55 PM
#7
bparker avatar

bparker

Zen Follower

Join Date:
Oct 2008
Location:
Rochester, NY
Posts:
232
Plugin Contributions:
0

Re: Where does it (and maybe Image Handler) save my larger image?

OH COOL! It didn't work, but I think I figured something else out.

My images are SAVING to this location: http://xyzgrocerydelivery.com/images/DSC01041.JPG
My larger image popup is LOOKING in this location: http://xyzgrocerydelivery.com/images/large/DSC01041_LRG.JPG

HOW do I change the path? Can I do it in the code? Is there an easier way?
I may have modified the path before in the code. Anyone know where this code is?

Thanks,
Brendan

31 May 2013, 8:33 PM
#8
kobra avatar

kobra

Black Belt

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

Re: Where does it (and maybe Image Handler) save my larger image?

Image handler takes care of this if it is installed correctly

Zen-Venom Get Bitten

3 Jun 2013, 6:39 PM
#9
bparker avatar

bparker

Zen Follower

Join Date:
Oct 2008
Location:
Rochester, NY
Posts:
232
Plugin Contributions:
0

Re: Where does it (and maybe Image Handler) save my larger image?

YIPPEEEE!

I think I solved my problem!

(Did I just say "Yippeeee"? I haven't said that in years.)

What I did was change main_product_image.php.
There's a line which reads:
$products_image_large = DIR_WS_IMAGES . 'large/' . $products_image_base . IMAGE_SUFFIX_LARGE . $products_image_extension;
Which I changed to:
$products_image_large = DIR_WS_IMAGES . '' . $products_image_base . $products_image_extension;

Bad fix, I know, but it's on the way to correcting the problem. :)

3 Jun 2013, 9:21 PM
#10
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,848
Plugin Contributions:
17

Re: Where does it (and maybe Image Handler) save my larger image?

You've now committed your second strike. The first was a TM template which will haunt even an experienced ZC user through many trials and tribulations.

The second just might be worse in that you have "messed" with a php file when something else was clearly the problem.

It looks like you may have done this elsewhere as the product page you presented has 12 errors and 24 warnings.

Along the way, you've decided you've done such a good job that you all but eliminated any reference to ZC.:( And, you messed up the href in your "Designed and Developed by" change. If you are having a problem with that, I would surely be careful with the php edits.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com