Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2007
    Posts
    215
    Plugin Contributions
    0

    Default Images for some products and not for others

    version 1.3.8
    Is there a way to install some images for some of the products but have another category of product which have no images at all?

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Images for some products and not for others

    Not quite sure what you mean here...

    Do you want a specific product to have an image in one category, but not in another?

    ... or do you want some products to have images and different products NOT to have images?

    If the latter... then just don't upload any images with the product data...

    If the former - not sure if this can be achieved with php, but you may be able to create a CATEGORY SPECIFIC STYLESHEET* that contains the declaration:-

    Code:
    .listingProductImage, #productMainImage {
     display: none;
     }
    *Category-specific stylesheet "how-to" is explained in the README file in a default css folder...

    (Possibly a good idea to have this category-specific stylesheet anyway - as it will prevent the blank links appearing too.)
    20 years a Zencart User

  3. #3
    Join Date
    Sep 2007
    Posts
    215
    Plugin Contributions
    0

    Default Re: Images for some products and not for others

    Thanks. I mean that I want some products to have images and others not, but I don't want the large gif which shows 'no image available' to pop up. For example, say I have two categories - pens and envelopes. I want the shop to show the images I've uploaded for the pens but I don't want any images for the envelopes. Hope this is clearer.

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Images for some products and not for others

    You could also consider creating a transparent gif (transparent.gif) and loading this into your images folder.

    Then for every product where you do not want an image, state its image as: "transparent.gif".

    To be sure that you don't get any text linkings that can appear, (such as to "larger image"), you must also then create the category-specific stylesheet and apply the declaration I suggest above.
    20 years a Zencart User

 

 

Similar Threads

  1. attribute images layout fine for some products and not others...
    By Sushigal in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 5 Nov 2010, 04:22 PM
  2. Store pickup for some products and not others
    By Sushigal in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 29 Apr 2009, 11:48 AM
  3. Make products available for some customers, not others.
    By Peekay in forum General Questions
    Replies: 2
    Last Post: 29 Mar 2007, 11:43 PM
  4. Images for some and not others
    By tracyselena in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 3 Feb 2007, 02:55 AM
  5. Free shipping for some and not others
    By Lisylou in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 11 Jan 2007, 05:34 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