Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Join Date
    Sep 2007
    Posts
    20
    Plugin Contributions
    0

    Default Removing Images From Product Pages without removing them from Category Pages

    I'd like to remove the main image from the product page, as the page is for a pack containing a varity of different products but having done this the image then disappears from the category listings. Is there anyone I can get rid of one without losing the other?
    This is the product page (sans image)
    http://www.pipersfarm.com/zen-cart/i...roducts_id=158

    This is the category page (also sans image for the product in question)
    http://www.pipersfarm.com/zen-cart/i...index&cPath=12

    Any help much appreciated,

    Ed

  2. #2
    Join Date
    Jun 2003
    Posts
    33,825
    Plugin Contributions
    0

    Default Re: Removing Images From Product Pages without removing them from Category Pages

    What did you do to remove the image in question?
    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.

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

    Default Re: Removing Images From Product Pages without removing them from Category Pages

    I typed none.gif as the image name as suggested in the zen cart tutorial.

  4. #4
    Join Date
    Jun 2003
    Posts
    33,825
    Plugin Contributions
    0

    Default Re: Removing Images From Product Pages without removing them from Category Pages

    Okay, using none.gif removes the main product image everywhere. To show them on the listings pages and other palaces but not on the product detail page then you should be able to "remove" it with some CSS.

    find #productMainImage in your style sheet. Remove any other css properties and replace with:

    #productMainImage {display: none;}
    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.

  5. #5
    Join Date
    Sep 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: Removing Images From Product Pages without removing them from Category Pages

    Legendary... I love your parrot.

  6. #6
    Join Date
    Sep 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: Removing Images From Product Pages without removing them from Category Pages

    Though that may be a little premature. How do I avoid removing all the images? That stylesheet covers all the product pages doesn't it? Am I being really stupid? Why did I even ask that? Of course I am.

  7. #7
    Join Date
    Sep 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: Removing Images From Product Pages without removing them from Category Pages

    I could do it just for a single $cPath if that helps...

  8. #8
    Join Date
    Sep 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: Removing Images From Product Pages without removing them from Category Pages

    Perhaps something along the lines of the script that disables sideboxes on certain pages? How would one go about incorporating this:

    Code:
    if (in_array($current_page_base,explode(",",'index')) ) {
        $flag_disable_left = true;
      }
    if (in_array($cPath,explode(",",'1,2,3.....etc etc')) ) {
        $flag_disable_right = true;
        $flag_disable_left = false;
      }
    into the tpl_product_info_display.php page?

  9. #9
    Join Date
    Jun 2003
    Posts
    33,825
    Plugin Contributions
    0

    Default Re: Removing Images From Product Pages without removing them from Category Pages

    Oh ... I didn't understand you only wanted to remove the main image from certain products ... Hhhmmm

    I would use a different product type for the ones you don't want the main image for and use the CSS fix instead of messing in the code. :)
    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.

  10. #10
    Join Date
    Sep 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: Removing Images From Product Pages without removing them from Category Pages

    OK, so I have a new product type but the CSS still governs it and the Product - General type. Apologies again for the stupidity but how do I seperate the CSS?

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Removing category icon/product main image on product info page
    By cochlear in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 28 Oct 2010, 04:42 AM
  2. Product images not showing up on listing...?
    By lamajlooc in forum General Questions
    Replies: 12
    Last Post: 13 Aug 2008, 03:25 AM
  3. Removing Date/In Stock on Product Pages
    By andit in forum General Questions
    Replies: 3
    Last Post: 11 Jul 2007, 11:00 AM
  4. Removing Category Images?
    By frankmachine in forum General Questions
    Replies: 3
    Last Post: 11 Jun 2007, 03:06 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
  •