Results 1 to 9 of 9
  1. #1
    Join Date
    Jul 2010
    Posts
    37
    Plugin Contributions
    0

    Default How do I remove empty photo box on documents-general items?

    I am posting recipes on my site using documents_general. It works well since I can then link the product in the recipe to a product on my site and I can use cross sell to link from the product to the recipe (and vice versa).

    The issue I am having is that I do not need the photo box for the recipes. I simply do not have photos of every recipe that is posted and to have only a few photos and the rest "empty" photo boxes looks unprofessional IMO.

    I have tried to search here to see if anyone else was having a similar problem and found one thread with no answer. I found where to remove all photos but I need them for the regular products so that isn't an option.

    I'm not sure if there is something I can adjust in specfically for the documents_general or not.

    Thanks in advance!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How do I remove empty photo box on documents-general items?

    Edit a copy for your template of tpl_document_general_info_display.php

    Remove/delete or comment out the following
    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-->
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2010
    Posts
    37
    Plugin Contributions
    0

    Default Re: How do I remove empty photo box on documents-general items?

    I tried that and it didn't work. I deleted the entire code below in the file and the empty file box still showed up. I tried editing the file in my custom file and the standard file...neither took the empty box away.

    I appreciate the help but removing the code below did not solve the issue. Any other ideas?

    Quote Originally Posted by kobra View Post
    Edit a copy for your template of tpl_document_general_info_display.php

    Remove/delete or comment out the following
    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-->

  4. #4
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: How do I remove empty photo box on documents-general items?

    Quote Originally Posted by smurfy1 View Post
    I tried that and it didn't work. I deleted the entire code below in the file and the empty file box still showed up. I tried editing the file in my custom file and the standard file...neither took the empty box away.

    I appreciate the help but removing the code below did not solve the issue. Any other ideas?
    Do you have a template installed?
    If so what is the directory it is in?

    Did you edit the version in your template directory?
    or did you edit the original version?
    Last edited by gilby; 7 Jun 2013 at 04:48 AM.

  5. #5
    Join Date
    Jul 2010
    Posts
    37
    Plugin Contributions
    0

    Default Re: How do I remove empty photo box on documents-general items?

    I have a custom directory with a custom template. I tried removing the section in the tpl_document_general_info_display.php there with no luck. Then I tried editing the original file and still no luck. I am simply removing the 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-->

    I'm not very technical so I'm sure it's operator error. Is removing it incorrect?



    Quote Originally Posted by gilby View Post
    Do you have a template installed?
    If so what is the directory it is in?

    Did you edit the version in your template directory?
    or did you edit the original version?

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How do I remove empty photo box on documents-general items?

    Are you sure that your product type is "Document - General"

    With this edit the result can be seen HERE
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Jul 2010
    Posts
    37
    Plugin Contributions
    0

    Default Re: How do I remove empty photo box on documents-general items?

    The recipes category is restricted to: Document - General

    Each title in the Recipes category is: Document Name and Document Status is available
    If I open the Recipes category, the drop down box next to BACK and NEW PRODUCT only has Document-General as an option.

    I updated includes/templates/MYCUSTOMTEMPLATE/templates/tpl_document_product_info_display.php

    I removed
    <!--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-->

    The blank image boxes (and a few have pics) are still there. I have attached a screen shot. I'm not sure what I'm doing wrong???

    Am I removing from the wrong location?Name:  blank-photo-boxes.jpg
Views: 110
Size:  23.1 KB

    Quote Originally Posted by kobra View Post
    Are you sure that your product type is "Document - General"

    With this edit the result can be seen HERE

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How do I remove empty photo box on documents-general items?

    I updated includes/templates/MYCUSTOMTEMPLATE/templates/tpl_document_product_info_display.php
    That is not the file I quoted it should be a copy for your template of

    tpl_document_general_info_display.php
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Jul 2010
    Posts
    37
    Plugin Contributions
    0

    Default Re: How do I remove empty photo box on documents-general items?

    Ugh, I knew it had to be my error. I'll try that. Thanks!


    Quote Originally Posted by kobra View Post
    That is not the file I quoted it should be a copy for your template of

    tpl_document_general_info_display.php

 

 

Similar Threads

  1. v151 Document General -how to remove remove “Product Image, Item Name- and Price”
    By BevCox in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 May 2013, 01:28 AM
  2. How to Seperate New General Documents from New Products ?
    By HeyIts007 in forum General Questions
    Replies: 4
    Last Post: 29 Jul 2011, 06:04 PM
  3. Items in Documents Side Box showing up in catagories
    By Martin Smith in forum Basic Configuration
    Replies: 3
    Last Post: 12 May 2009, 04:05 AM
  4. Would like to remove empty photo box
    By MT Ed in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 12 Jan 2008, 05:58 AM
  5. Documents General on Main Page
    By tiger in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 1 Aug 2007, 12:08 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