Forums / Templates, Stylesheets, Page Layout / Multiple Images for One Listing Questions

Multiple Images for One Listing Questions

Locked
Results 1 to 20 of 48
This thread is locked. New replies are disabled.
12 Oct 2007, 16:11
#1
donn avatar

donn

Zen Follower

Join Date:
Oct 2007
Posts:
241
Plugin Contributions:
0

Multiple Images for One Listing Questions

Hi....new Zen Cart user here...must say it is beyond what I thought it COULD possibly be. = )

Only limitation I've run into is using multiple photos.

I see that it is possible, I've not yet succeded in getting this feature to work.

I have a few quick questions. Will the product listing display additional photos? Or, is it just the larger photos that will show extras? (And if this IS the case, how does the user select the additional photos)?

I basically only need to add the photos to the listing, with the option to click for larger on all.

I''ve uploaded the photos to cart/images....

named them:
image.bmp

and:
image_01.bmp

Selected that file/sub-dir w/the drop down menu in Zen Cart...

But the addtnl images STILL don't display (when browsing the site as a guest), after updating the changes, of course. I have the Product type set to allow multipe photos.

Please, any help would be much appreciated....this is holding me up...

Otherwise it's 100% A OK...........so far........
12 Oct 2007, 17:47
#2
madmumbler avatar

madmumbler

Zen Follower

Join Date:
Dec 2005
Posts:
450
Plugin Contributions:
0

Re: Multiple Images for One Listing Questions

Under the admin panel:

Catalog --> Product Types --> Product - General (if that's what you're using) --> click the Edit Layout button.

Make sure the Show Product Additional Images is on.

HTH,
12 Oct 2007, 23:25
#3
donn avatar

donn

Zen Follower

Join Date:
Oct 2007
Posts:
241
Plugin Contributions:
0

Re: Multiple Images for One Listing Questions

Thanks for the fast reply. + )

I did, in fact, have ALL of the product types set to "1" for
Show Product Additional Images....

((I can't seem to find where the product type is set for each product, but as all are set to ON for that parameter, I guess it doesn't matter. BTW, where DO I set the product type for each item???))



So....I'm still stuck........


What else could it be???


Thanks,
Donn
13 Oct 2007, 00:04
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Multiple Images for One Listing Questions

Donn:

((I can't seem to find where the product type is set for each product, but as all are set to ON for that parameter, I guess it doesn't matter. BTW, where DO I set the product type for each item???))
When you create your product, you set its product type by choosing the product type from the pulldown menu next to the "New Product" button.
13 Oct 2007, 00:05
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Multiple Images for One Listing Questions

Donn:

I''ve uploaded the photos to cart/images....

named them:
image.bmp

and:
image_01.bmp

Selected that file/sub-dir w/the drop down menu in Zen Cart...

But the addtnl images STILL don't display (when browsing the site as a guest), after updating the changes, of course. I have the Product type set to allow multipe photos.
What is your URL?
13 Oct 2007, 00:15
#6
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,564
Plugin Contributions:
0

Re: Multiple Images for One Listing Questions

Uh - you really don't want to be using bitmap images on the web ....
13 Oct 2007, 00:31
#7
donn avatar

donn

Zen Follower

Join Date:
Oct 2007
Posts:
241
Plugin Contributions:
0

Re: Multiple Images for One Listing Questions

DrByte:

When you create your product, you set its product type by choosing the product type from the pulldown menu next to the "New Product" button.


OK...I missed that! :P The pulldown was hiding,,,,,

I had the items Im testing all set to the default prodyct type (general) and the general product type has the parameter for multi photos set to ON.

SO....what else could it be?????

(BTW, once I create a new item, how can I check which product type it is? Where is this info displayed?? And, of course,,,,,,,Can it later be changed?)

Thanks,
Donn
13 Oct 2007, 01:46
#8
donn avatar

donn

Zen Follower

Join Date:
Oct 2007
Posts:
241
Plugin Contributions:
0

Re: Multiple Images for One Listing Questions

Any other ideas as to what could be keeping the additional photos from displaying??

I've read as much as I could find, and apparently, having photos with the same base name, along with ANYTHING appended (_01, _02, _FF) will be shown, as long as they are in the same dir as the photo 'owned' by the item. (OR....do ALL additional photo ned to be in /IMAGE/ and not /IMAGE/SUBDIR/>>>

There MUST be something else going on here....
13 Oct 2007, 01:52
#9
donn avatar

donn

Zen Follower

Join Date:
Oct 2007
Posts:
241
Plugin Contributions:
0

Re: Multiple Images for One Listing Questions

OK...I understand that ZC will generate lower res images for the thumbnail and product listing....but ideally, in terms of optimizing processing, I know they should be uploaded already sized to the /lrg and /med subdirs.

So....

If I want to keep my photos in seperate sub-dirs, under image
e.g. (/image/forks/, /image/knives/) to keep everything organized, I just specify the path to the photo, select, and then the photos are set.

OK

Is ZenCart going to search for additional photos in the image/forks, sub-dir where I initially uploaded the image file to ZenCart, and I later FTPed the other additional photos?

Or will ZC look in the /image/ dir ONLY??

AND....as far as looking for 'Med" and "LRG" photos...

If I make sub-dirs in each of the MED and LRG sub-dirs, can ZC be directed toa sub-dir? Or must all the LRG and MED files be in the LRG and MED root dir??


I also read that only ONE MED file is allowed. But isn't the MEd file the file displayed on the item description??

If so, are the additional photos just small thumbnails at the bottom of the description HTML, which can be clicked for larger popups, or are they the same size as the description photo...

(Hopefully soon Ill see for myself.,..!!!!!!!!!!)
13 Oct 2007, 02:05
#10
donn avatar

donn

Zen Follower

Join Date:
Oct 2007
Posts:
241
Plugin Contributions:
0

Re: Multiple Images for One Listing Questions

OK.........I found the problem....

I was using a subdir called

/IMAGE/PROD1/

and the additional photos were in THAT folder.

So...I copied all the additional images to /image/ and now it works 100%.

So, no sub-dirs, with regard to image, LRG and MED. Answers my toher post as well.

ONE QUESTIONS:

The additional photos display as small thumbs thna can be clicked to enlarge.

I downloaded and installed Image Manager (I was toldit was the older version).
It doesn't work....but...anyway...

Can this module (or IM 2.0) add photos at resolution specified by the admin?

In other words, can I choose to have the MED photo at the top, and additional 'med'-sized photos at the bottom of the HTML text?
13 Oct 2007, 02:11
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Multiple Images for One Listing Questions

Donn:


(BTW, once I create a new item, how can I check which product type it is? Where is this info displayed?? And, of course,,,,,,,Can it later be changed?)
Once product types are established, they are not intended to be changed.
If you browse for the product via the categories list in the storefront, you can see the product-type in the URL of the product when you select it. The main_page=PRODUCT-TYPE-HANDLER_info is the indicator.
13 Oct 2007, 02:15
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Multiple Images for One Listing Questions

Donn:


I downloaded and installed Image Manager (I was toldit was the older version).
It doesn't work....but...anyway...

Can this module (or IM 2.0) add photos at resolution specified by the admin?
I don't know about Image Manager.
But Image Handler 2 allows you to upload images via the admin, for each of the 3 resolution types.
13 Oct 2007, 02:21
#13
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,564
Plugin Contributions:
0

Re: Multiple Images for One Listing Questions

Donn- please don't post multiple threads for the same issues.
13 Oct 2007, 02:25
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Multiple Images for One Listing Questions

Donn:

In other words, can I choose to have the MED photo at the top, and additional 'med'-sized photos at the bottom of the HTML text?


Zen Cart handles 3 sizes of images:

Small images / thumbnails ... are used in product/category listings and for the additional-image thumbnails on the product pages.

The Medium Image (only one) is used as the main image of the product on the product page. If none is specified, the thumbnail image is used.

The Large Images are used only when clicking on a smaller image that says Click for Larger Image.


If you wish to change the size of the additional images shown on the product page to use the Medium Images and display in Medium Size, edit your /includes/modules/additional_images.php and save it as /includes/modules/YOUR_TEMPLATE/additional_images.php
around line 88 you have these 2 lines:
    $thumb_slashes = zen_image($base_image, addslashes($products_name), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
    $thumb_regular = zen_image($base_image, $products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);

replace them with these instead:
    // check for a medium image else use small
    $products_image_medium = $products_image_base . IMAGE_SUFFIX_MEDIUM . $products_image_extension;
    if (file_exists(DIR_WS_IMAGES . 'medium/' . $products_image_medium)) {
      $base_image = DIR_WS_IMAGES . 'medium/' . $products_image_medium;
    }
    $thumb_slashes = zen_image($base_image, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT);
    $thumb_regular = zen_image($base_image, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT);
13 Oct 2007, 02:36
#15
donn avatar

donn

Zen Follower

Join Date:
Oct 2007
Posts:
241
Plugin Contributions:
0

Re: Multiple Images for One Listing Questions

Kim:

Donn- please don't post multiple threads for the same issues.


Sorry---I didn't realize that the issues were so interrelated....

I thought the MED and LRG question deserved its own post...but upon learning a bit more, turns out all the questions were very closely related.

I appreciate all of the help......thanks to everyone who provided feedback and tips.

Have a great weekend!!!!!!

Donn
16 Oct 2007, 15:10
#16
donn avatar

donn

Zen Follower

Join Date:
Oct 2007
Posts:
241
Plugin Contributions:
0

Re: Multiple Images for One Listing Questions

DrByte:

Zen Cart handles 3 sizes of images:

Small images / thumbnails ... are used in product/category listings and for the additional-image thumbnails on the product pages.

The Medium Image (only one) is used as the main image of the product on the product page. If none is specified, the thumbnail image is used.

The Large Images are used only when clicking on a smaller image that says Click for Larger Image.


If you wish to change the size of the additional images shown on the product page to use the Medium Images and display in Medium Size, edit your /includes/modules/additional_images.php and save it as /includes/modules/YOUR_TEMPLATE/additional_images.php
around line 88 you have these 2 lines:

-----------------------
OK.........I changed the PHP file....

And now the additional images do appear the same size as the product description photo.

I am still havign a few issues.

First of all, an observation: If I specify the product name at the prompt, but NOT the file suffix, ZC will not recognize the additional photos!! So the product file must always include the file TYPE suffix for additional photos to appear.

Once I realized this, the photos showed up.... = )

OK...also...CAN subdirectories be used in the /IMAGES/ and /IMAGES/LRG/ and /MED/ directories? I didn't think so, but the demo cart for 1.3.7 has the products organized in this manner. It seems WAY neater, and I'd like to set up this way. CAN it be done??? The answer seems to be YES....
16 Oct 2007, 15:15
#17
donn avatar

donn

Zen Follower

Join Date:
Oct 2007
Posts:
241
Plugin Contributions:
0

Re: Multiple Images for One Listing Questions

OK.........

and as for files, themselves.......

In the /IMAGES/ dir: file.jpg (thumbnail-sized photo for category listing)

In the /IMAGES/MED/ dir: file_MED.jpg (product description-sized photo)

In the /IMAGES/LRG/ dir: file_LRG.jpg (popup large-sized photo)

Correct??

Now, as for additional photos.....

Do I create additional photos in ALL THREE sizes? I can understand the need for _MED and _LRG photos, but do I also need the additional files saved at thumbnail res, in the /IMAGES/ directory, *IF* I am using medium-sized photos for the additionals??
16 Oct 2007, 19:30
#18
donn avatar

donn

Zen Follower

Join Date:
Oct 2007
Posts:
241
Plugin Contributions:
0

Re: Multiple Images for One Listing Questions

DrByte:

Zen Cart handles 3 sizes of images:

Small images / thumbnails ... are used in product/category listings and for the additional-image thumbnails on the product pages.

The Medium Image (only one) is used as the main image of the product on the product page. If none is specified, the thumbnail image is used.

The Large Images are used only when clicking on a smaller image that says Click for Larger Image.


If you wish to change the size of the additional images shown on the product page to use the Medium Images and display in Medium Size, edit your /includes/modules/additional_images.php and save it as /includes/modules/YOUR_TEMPLATE/additional_images.php
around line 88 you have these 2 lines:


DrByte:

This seems to work perfectly : The additional photo is the correct one, and it is displayed as a MED-sized image.


/IMAGES/image.jpg
/IMAGES/image_01.jpg


As I understand it, with IMAGE.JPG and IMAGE_01 as the sole image files,
ZenCart sources the smaller thumbnail (category listing) images from the larger IMAGE file. I know this is bad practice, as it makes the page load slower because the smaller images are still hi-res.

So I tried adding the _MED files at the _MED resolution, as well as reducing the IMAGE files to my small (catogory listing) image size..............

/IMAGES/image.jpg
/IMAGES/MED/image_MED.jpg
/IMAGES/MEDimage_01_MED.jpg


when I add Image_01_MED file to the /IMAGES/MEDIUM/ dir, and remove the IMAGE_01.JPG from the /IMAGES/ dir, *NO* additional photos will display. SO I assume I *NEED* the base IMAGE_xx file in the /IMAGES/ dir if I want *ANY* associated MED or LRG files to be recognized. So ZC will only recognize LRG and MED files that have a base file in the /IMAGES/ dir???

Next....

/IMAGES/image.jpg
/IMAGES/image_01.jpg
/IMAGES/MED/image_01_MED.jpg

If I remove the Image_01_MED.JPG file from the /IMAGES/MEDIUM/ dir


I end up with *BOTH* photos being the correct ones, but *BOTH* display in the thumbnail-sized format. So that isn;t good........


/IMAGES/image.jpg
/IMAGES/image_01.jpg
/IMAGES/MED/image_MED.jpg


If I remove the Image_01_MED.JPG file from the /IMAGES/MEDIUM/ dir, but leave IMAGE_01.JPG file in /IMAGES/ and IMAGE_01_MED file in /IMAGES/MEDIUM/, both the product photo AND the additional photo will display in medium size...

*BOTH* will be the IMAGE_MED.JPG file!!

Without the additional _MED file, I thought that Zen Cart would be able to display the small images as additional images if it doesn't find any _MED files associated with that additional image file. But when the base image has a _MED file associated with it, and there's no _MED file for the additional image, it seems to not work.

How does Zen Cart find the images? What are the steps involved?


when I put in *ALL* the necessary files:


/IMAGES/image.jpg
/IMAGES/image_01.jpg
/IMAGES/MED/image_MED.jpg
/IMAGES/MED/image_01_MED.jpg


what happens is *VERY ODD*!!!!!!!!!!

I would expect this combination to work, just as using SOLELY the base images worked, but it doesn't!

What I get is an additional photo displayed as a MED-sized image, but...

It is, again, just the IMAGE_MED file and *NOT* the IMAGE_01_MED file.

Will this work? Or should I just save the IMAGE.JPG file at the resolution I have my MED files set at, and let ZC resize, keeping the LRG files so that the IMAGE file in /IMAGES/ isn't *TOO* big?? I need a little help understanding why this is happening.

Thank you.

Donn
16 Oct 2007, 19:48
#19
donn avatar

donn

Zen Follower

Join Date:
Oct 2007
Posts:
241
Plugin Contributions:
0

Re: Multiple Images for One Listing Questions

OK........now using a set of files like this:

image.jpg
image_01.jpg
image_02/jpg

in

/IMAGES/

and


image_MED.jpg
image_01_MED.jpg
image_02_MED.jpg

in /IMAGES/MED/


I get ALL MED photos displayed in the product listing, but the additional photos are BOTH really just IMAGE_MED.JPG.

PS I buffered that change to the PHP file, so I copied it exactly....
16 Oct 2007, 19:51
#20
donn avatar

donn

Zen Follower

Join Date:
Oct 2007
Posts:
241
Plugin Contributions:
0

Re: Multiple Images for One Listing Questions

PS....just so anyone who may wonder...

I have the files in /IMAGES/MEDIUM and
not /IMAGES/MED.