No, I'm saying if the first pics name has a # at the end, then that # is part of the name and all additional images must start with the same name, to include that number.
The underscore is just a convenient method of identifying additional images in a list. I put dashes-between-all-words-in-an-image-name.jpg So if I put another dash-then-number for additional images it can be hard to find them in the folders when I need to. So I use the underscore at the end for additional images.
original-image-2714.jpg
original-image-2714_1.jpg
That way if I need to, I can open a folder and scan down and quickly find the additional images.
A clearer explanation may be in the paragraph labeled "Additional Information" on this tutorial:
https://www.zen-cart.com/tutorials/index.php?article=58
Last edited by joejoejoe; 1 Dec 2011 at 02:08 PM.
joejoejoe is right. It's not the underscore that decides. It's the original filename that decides.
Zen Cart v1.x deconstructs your product's main image filename into filename + extension, and then looks for additional images that match the same base filename.
fred.jpg = fred plus .jpg
So, all images starting with "fred" and ending with ".jpg" will then be considered "additional" images.
ie all of these are valid additional images for "fred.jpg":
fred123.jpg
fred_d.jpg
fred-more.jpg
fredanything.jpg
It's all explained in the tutorial mentioned earlier.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
The way I have most of my images identified is as follows:
POT-03-01.jpg
POT-03-02.jpg
POT-03-03.jpg
POT-03-04.jpg
POT-03-05.jpg
POT-03-06.jpg
This means 3" bonsai pot, style #1, or #2, or whatever
Is this the right or wrong way?
I am not getting multiple images in any listings. So it must be OK unless Image Handler 3 is preventing multiples.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.