Results 1 to 5 of 5
  1. #1
    Join Date
    May 2006
    Posts
    6
    Plugin Contributions
    0

    Common image for all products in a category

    I want to be able to show a few additional images for every product in a category but I can't see a way of doing this. I have cards for sale so I want to show an envelope and maybe the inside of a card which is going to be common for all the cards.

    The smaller images works by taking the root name and as every image has to be unique that seems unuseable.

    The only other way I can see is to use attributes but this is geared to small icons and they are not clickable to enlarge the view.

    Any ideas anyone?

  2. #2
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,237
    Plugin Contributions
    20

    Default Re: Common image for all products in a category

    You've got me confused - you want all the images to be the same one?
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

  3. #3
    Join Date
    May 2006
    Posts
    6
    Plugin Contributions
    0

    Default Re: Common image for all products in a category

    No not every image the same. Additional is the key. The product has a main image which in this case is a greeting card then I want to show that it comes with an envelope which will be the same for every card. So if:

    Product ID#1, image=card_01.jpg\
    Product ID#2, image=card_02.jpg \_all share image envelope.jpg
    Product ID#3, image=card_03.jpg /
    Product ID#4, image=card_04.jpg/

    And image appears smaller and underneath the main image where card_01_a.jpg & card_01_b.jpg etc would be.

    Does that help?

  4. #4
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,237
    Plugin Contributions
    20

    Default Re: Common image for all products in a category

    There's a variety of possibilities;

    • Name your images:
      card01.jpg=main image of card (exterior?)
      card01_a.jpg= first additional image (interior?)
      card01_b.jpg=envelope image

      card02.jpg=main image of card (exterior?)
      card02_a.jpg= first additional image (interior?)
      card02_b.jpg=envelope image (which is a copy of card01_b)
    • embed the envelope image in the description.
    • Install Image-Handler and utilise the watermarking feature with the envelope as the watermark (I haven't actually tried that but it might work)
    • Edit all your images so the card is sitting on the envelope - probably a bit tedious; depends on your image-editing skills.


    card01.jpg and card02.jpg are your image basenames; card01_a.jpg, card02_b.jpg etc are seen by ZC as being additional images for the relevant basename and will therefore automatically display on the product info page - as for exact positioning, you will need to edit includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php and probably your stylesheet as well.

    You may also want to consider the installation of the Swap Images on Mouseover mod which you can see working here
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

  5. #5
    Join Date
    May 2006
    Posts
    6
    Plugin Contributions
    0

    Default Re: Common image for all products in a category

    Thanks Ryk, I think embedding the envelope image in the description is the way I'll look at, the other options are what I am trying to avoid.

    Seems to me there's room for a contrib here.

 

 

Similar Threads

  1. v151 Common Notifier for all Pages?
    By Dave224 in forum General Questions
    Replies: 4
    Last Post: 4 Apr 2016, 03:03 PM
  2. common or shared options for all products (in certain category)
    By sunraise2005 in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 13 Sep 2010, 07:13 AM
  3. Common stock level for multiple products
    By Phil020782 in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 6 Mar 2010, 10:04 AM
  4. resetting Master Category ID for all products in a category = HTTP 406 error!
    By bodyjewelrystores in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 18 Nov 2009, 04:25 AM
  5. Replies: 4
    Last Post: 24 Oct 2008, 10:17 AM

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