Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Posts
    76
    Plugin Contributions
    0

    Default Disable product images in just one category?

    Hello everyone,

    I was wondering if it would be possible to disable the images in the product list in a single category. I would like to have other categories that should still display the images.

    Is this possible??

    Thanks for your reply!
    DMR

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Disable product images in just one category?

    This may be possible by using a customised stylesheet for the category where you don't want images. In your zencart css folder(s) you will see a readme file. This tells you how to set up a category-specific CSS file.

    I don't know what CSS commands you will have to edit, but if you find the ones that control product images, you could probably use the CSS command "display: none; " to stop the imaged appearing.

  3. #3
    Join Date
    Feb 2007
    Posts
    76
    Plugin Contributions
    0

    Default Re: Disable product images in just one category?

    Thanks for the quick reply! I found this in the stylesheet.css file: (line 492)

    Code:
    /*Image Display*/
    #productMainImage, #reviewsInfoDefaultProductImage, #productReviewsDefaultProductImage, #reviewWriteMainImage {
     margin: 0em 1em 1em 0em ;
     }
    Could that be the class to use (productMainImage)?

    And after this, where to put it? I found in that readme file:
    Code:
      c_??_??.css   // changes to all info pages in a category
    Isn't that just the text that comes above the product listing? how would I name this file? where do I put it?

    Thanks for any help!
    DMR

  4. #4
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Disable product images in just one category?

    c_??_??.css

    This means that you change the ?? for the category ID numbers of the relevant category.

    Easiest way to see the category ID's is to open up that category that you want the stylesheet for - and look at your browser address bar. You'll see something like:-

    HTML Code:
    http://www.yourwebsite.com/index.php?main_page=index&cPath=2_9
    the "2_9" are the category ID numbers, where 2 is the upper-level category, and 9 is the relevant sub-category below it.

    If your categories are THREE levels deep, you will see something like:

    index.php?main_page=index&cPath=12_19_25

    Now, just create a CSS file called c_2_9.css (use your cat ID numbers) or c_12_19_25.css (three levels deep).

    Now, in that css file, type in:-


    /*Image Display*/
    #productMainImage, #reviewsInfoDefaultProductImage, #productReviewsDefaultProductImage, #reviewWriteMainImage {
    display: none;
    }

    save it and load into your css folder.

    You may have to tweak the style classes and ID's (#.....Image) to get your desired effect.

  5. #5
    Join Date
    Feb 2007
    Posts
    76
    Plugin Contributions
    0

    Default Re: Disable product images in just one category?

    Thanks a million! Sorry for the late response, but wanted to solve it first (had the wrong css-class first). If anyone ever wants to do the same:

    make a css-file named c_??.css (?? stands for the path, look at this topic for info) and put the following in there:

    Code:
    /**
     * CSS remove Images in product listing
     
     */
    .productListing-heading {
    display:none; 
    }
     
     .listingProductImage {
     display: none;
     }
    The productlisting-heading is to remove the titles above (mine is dutch, but it's something like "product image" or something)

    Bare in mind that I did this with the red-passion template and therefore placed it in that css-folder. So if you have a template installed, place it in the corresponding css-folder.

    Thanks again for the help, hope anyone else can use this as well!
    DMR

 

 

Similar Threads

  1. v138a Disable Product Images in one TOP category to affect all subcategories
    By sbbemn in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 17 Jul 2012, 10:36 PM
  2. Out of stock for just one product not entire category
    By MissFrog in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 6 Dec 2010, 07:26 PM
  3. Disable product category images for V 1.2.7?
    By ichthyous in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 Mar 2010, 08:43 PM
  4. How do I hide pricing for just one product type and/or category
    By stevenlee in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 2 Jun 2009, 05:20 AM
  5. Hiding product images under one category but not another
    By robgt in forum Templates, Stylesheets, Page Layout
    Replies: 21
    Last Post: 7 Mar 2008, 01:13 AM

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