Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 48
  1. #11
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Multiple Images for One Listing Questions

    Quote Originally Posted by Donn View Post
    (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.
    .

    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.

  2. #12
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Multiple Images for One Listing Questions

    Quote Originally Posted by Donn View Post
    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.
    .

    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.

  3. #13
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Multiple Images for One Listing Questions

    Donn- please don't post multiple threads for the same issues.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #14
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Multiple Images for One Listing Questions

    Quote Originally Posted by Donn View Post
    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:
    Code:
        $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:
    Code:
        // 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);
    .

    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.

  5. #15
    Join Date
    Oct 2007
    Posts
    241
    Plugin Contributions
    0

    Default Re: Multiple Images for One Listing Questions

    Quote Originally Posted by Kim View Post
    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

  6. #16
    Join Date
    Oct 2007
    Posts
    241
    Plugin Contributions
    0

    Default Re: Multiple Images for One Listing Questions

    Quote Originally Posted by DrByte View Post
    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....

  7. #17
    Join Date
    Oct 2007
    Posts
    241
    Plugin Contributions
    0

    Default 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??
    Last edited by Donn; 16 Oct 2007 at 04:19 PM.

  8. #18
    Join Date
    Oct 2007
    Posts
    241
    Plugin Contributions
    0

    Default Re: Multiple Images for One Listing Questions

    Quote Originally Posted by DrByte View Post
    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

  9. #19
    Join Date
    Oct 2007
    Posts
    241
    Plugin Contributions
    0

    Default 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....

  10. #20
    Join Date
    Oct 2007
    Posts
    241
    Plugin Contributions
    0

    Default 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.

 

 
Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

  1. How can I add multiple images for ONE product through the Admin page?
    By stevewag in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Apr 2009, 09:57 AM
  2. Multiple images for one item ? ? ?
    By ve39 in forum General Questions
    Replies: 7
    Last Post: 22 Oct 2008, 06:56 AM
  3. Questions about emailing multiple customers at one time
    By BouncerFL in forum General Questions
    Replies: 0
    Last Post: 1 Apr 2008, 05:57 PM
  4. Multiple Images Questions
    By manifest in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 3 Mar 2008, 10:44 PM
  5. Stock control - listing multiple items as one
    By chmac in forum General Questions
    Replies: 3
    Last Post: 10 Sep 2007, 01:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg