Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2012
    Location
    Montreal
    Posts
    84
    Plugin Contributions
    0

    Default Different image for product listing page

    Is it possible to display a different product image on the products listing page than the product info page?

    My employer wants to show Image A in the product listing. Then when that product is clicked on the product info page shows Image B, and Image A as the secondary image.

    I told him that would require some PHP coding that would take me at least a few days to get right on our test server.

    I'm pretty sure that I'm correct on this one.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Different image for product listing page

    Zen Cart supports 3 image formats:

    a) main thumbnail - shown in categorized listing of products and all sideboxes
    b) "medium" image - the main product image on the product_info page
    c) "large" images - large versions of the thumbnails

    plus "additional images" based on filename pattern matching, in both thumbnail and "large" sizes.

    So, yes, if you want to use a different image for medium and/or large, you certainly may.

    See: http://www.zen-cart.com/content.php?100-multiple-images
    .

    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. #3
    Join Date
    Jan 2012
    Location
    Montreal
    Posts
    84
    Plugin Contributions
    0

    Default Re: Different image for product listing page

    So the Category listing page uses the main image as the thumbnail. This is the image that is uploaded when creating a new product. If I want to show a different image on the product page I'd have to FTP the image with the _MED suffix.

    But first, I'd have to go into the Admin and set the product page to look for images with _MED suffix?

    I hope this makes sense because I'm a little confused. Writing it all out helps me understand a little better.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,498
    Plugin Contributions
    88

    Default Re: Different image for product listing page

    Let's say you have set your product to use the image named xyzzy.jpg and that you haven't made changes to your image suffixes via your admin's Configuration->Images. What DrByte told you is that you can FTP your "different" image to xyzzy_MED.jpg and xyzzy_LRG.jpg and those "different" images will be used as the product's main image files when the product is viewed on its product_info page.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Different image for product listing page

    Like the FAQ article says:

    Thumbnail: /images/abc.jpg
    Prod Info: /images/medium/abc_MED.jpg
    Large: /images/large/abc_LRG.jpg
    .

    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.

  6. #6
    Join Date
    Jan 2012
    Location
    Montreal
    Posts
    84
    Plugin Contributions
    0

    Default Re: Different image for product listing page

    Quote Originally Posted by lat9 View Post
    What DrByte told you is that you can FTP your "different" image to xyzzy_MED.jpg and xyzzy_LRG.jpg and those "different" images will be used as the product's main image files when the product is viewed on its product_info page.
    Didn't happen. Maybe my settings are wrong.

    For Product with model number 123456:
    123456.jpg - uploaded via Admin where product is created
    123456_MED.jpg - FTP to /images/medium
    123456_LRG.jpg - FTP to /images/large

    Result:
    123456.jpg is used for Product Listing thumb
    123456_MED.jpg is used when Hover over on Product Listing page.

    123456.jpg is used for main product image on product page
    123456.jpg is used for large IHv3 when clicked.

    So I moved the 123456_MED.jpg and 123456_LRG.jpg to the main /images/ directory and the main image on the product page is 123456.jpg, the second image is 123456_LRG.jpg.

    Not exactly the result I'm looking for. Could I achieve what I'm trying to do in Image Handler?
    Thanks for the help .

    Here is a screeny of my config > images:
    Last edited by thebigkick; 2 Jul 2012 at 05:07 PM.

 

 

Similar Threads

  1. v151 Can I style different product listing pages for different product types?
    By DannyVarley in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Jun 2013, 05:45 PM
  2. Different product listing layouts for different categories?
    By kbascombe in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Apr 2010, 09:36 AM
  3. Different image for product listing and Product Info?
    By JuanDBB in forum Basic Configuration
    Replies: 2
    Last Post: 7 Apr 2009, 09:32 PM
  4. Different product listing setup for different category
    By Broll in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 12 Apr 2007, 08:28 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR