Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23
  1. #11
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Remove "larger image" when no image for product

    Can you do two things:

    Firstly, uncomment those programmers bits so all that horrid text appears on the page!

    Secondly, send a URL so I can have a look at it.

    It works fine on my test server. I'll PM you a link to the pages where it works. And you can say if this is what you want.

  2. #12
    Join Date
    Sep 2008
    Posts
    98
    Plugin Contributions
    0

    Default Re: Remove "larger image" when no image for product

    I got it working....here is what I did.

    First, I uncommented the programmer stuff.

    Then, as a test I named the "no picture", the actual name of one of my real pictures. This way I could test to see what was happening. Sure enough on that page, the imageflag---0 appeared and the words "larger image" did not appear....On all other pages the imageflag---1 appeared and the words "larger image" was there. So that of course convinced me that this should work if only I could figure out the "name" of my blank images.

    Then I thought that maybe instead of using the word 'NONE' which is what was appearing in the text...I should actually USE NOTHING..which is what is really happening with those products which don't have an image...so I changed the code to read:
    Code:
    if($products_image_base==''){$imageflag=0;}
    where the '' are two consecutive single quotes not a double quote. thus representing NOTHING...and sure enough it worked. Those pages where there is an image appear properly, and those pages without an image also appear properly...i.e. without the text "larger image."

    So thanks very much for working with to get this done.

  3. #13
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Remove "larger image" when no image for product

    Perfect. Well done

  4. #14
    Join Date
    Sep 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: Remove "larger image" when no image for product?

    Nick, I see where you have help this man out a lot. I have been working with your code and got most of it figured out. Looks great.

    But I guess I am have a problem because I not want to display a image never. Using your code leaves a place holder.
    What am I doing wrong, maybe its my TM template, but all the other suggestion you have given work fine..

    Any suggestions would be great..
    Tom

  5. #15
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Remove "larger image" when no image for product?

    Hi Tom,

    If you want to never display an image there are easier ways to do that than this but also this will work!

    If you are using a TM template then you need to post a URL so I can have a look and see what is going on.

  6. #16
    Join Date
    Sep 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: Remove "larger image" when no image for product?

    Thanks Nick for the response.

    http://blitzbaydirect.com.

    Currently I am using a check mark for the picture, but I prefer to have nothing..

    Thanks again for any suggestions.
    Tom

  7. #17
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Remove "larger image" when no image for product?

    If you really want nothing then find includes/templates/yourtemplate/tpl_product_info_display.php and look for the code that looks like:

    Code:
    <!--bof Main Product Image -->
    <?php
      if (zen_not_null($products_image)) {
      ?>
    <?php
    /**
     * display the main product image
     */
       require($template->get_template_dir('/tpl_modules_main_product_image.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_main_product_image.php'); ?>
    <?php
      }
    ?>
    <!--eof Main Product Image-->
    And delete it all.

  8. #18
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Remove "larger image" when no image for product?

    Hmm... Actually, this code already will not display anything at all when there is no product image set:
    PHP Code:
    <?php
      
    if (zen_not_null($products_image)) {
      
    ?>
    <?php
    /**
     * display the main product image
     */
       
    require($template->get_template_dir('/tpl_modules_main_product_image.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_main_product_image.php'); ?>
    <?php
      
    }
    Do you have an image for the product and not want to display it on the product info page?

    Does it perhaps display the "no image" image when there is none set? Then you would want to turn that off in Configuration > Images > Product Image - No Image Status.
    Last edited by gjh42; 1 Oct 2009 at 02:39 PM.

  9. #19
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Remove "larger image" when no image for product?

    Hmm, that's true. I had kind of assumed that there were images but they weren't needed on the product info page. That's what assumptions do for you...

  10. #20
    Join Date
    Sep 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: Remove "larger image" when no image for product?

    Understand. Yes I have no Image status set to 0-off and it does not display. But it displays a place holder for and image. I remove a check image on the main page so you can see what I am talking about..

    I prefer not to have an image but if I must I will maybe use Stars to rate the product, but that is a lot of work may look nice but very time consuming for 500+ suppliers I have not enter yet..

    You thoughts on remove the place hold or at least a way to hide it.
    Thanks
    Tom

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Removing "larger image" hyperlink when no image present
    By husefool in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 14 Jun 2011, 12:35 AM
  2. ZC isn't using "_LRG" image for "larger image" pop-up (??)
    By whiteleyweb in forum Customization from the Admin
    Replies: 6
    Last Post: 14 Oct 2010, 08:43 PM
  3. Replies: 0
    Last Post: 31 Dec 2008, 07:39 PM
  4. Remove "Product Image" "Item Name" and "Price"...
    By rebekah in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Sep 2008, 06:08 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