Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,401
    Plugin Contributions
    87

    Default *[Done v1.6.0] Missing 'echo' in tpl_product_info_noproduct.php

    In /includes/templates/template_default/templates/tpl_product_info_noproduct.php there's a missing echo that causes the "Continue" button not to be displayed:
    Code:
    <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE, BUTTON_CONTINUE_ALT) . '</a>'; ?></div>

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,401
    Plugin Contributions
    87

    Default Re: Missing 'echo' in tpl_product_info_noproduct.php

    It turns out that there are a couple more issues with this script. For each of the new/featured/special products modules, it's calling the module instead of the template so that nothing is ever output to the screen. Here's an entire update, based on the v1.5.1 version:
    Code:
    <?php
    /**
     * Page Template
     *
     * Displays simple "product not found" message if the selected product's details cannot be located in the database
     *
     * @package templateSystem
     * @copyright Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_product_info_noproduct.php 2578 2005-12-15 19:31:34Z drbyte $
     */
    ?>
    <div class="centerColumn" id="productInfoNoProduct">
    
    <div id="productInfoNoProductMainContent" class="content"><?php echo TEXT_PRODUCT_NOT_FOUND; ?></div>
    
    <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE, BUTTON_CONTINUE_ALT) . '</a>'; ?></div>
    
    <?php
    //// bof: missing
    $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MISSING);
    
    while (!$show_display_category->EOF) {
    ?>
    
    <?php
      if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_FEATURED_PRODUCTS') {
    /**
     * display the featured product center box
     */
    //    include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_FEATURED_PRODUCTS_MODULE));
        require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php');
      }
    ?>
    
    <?php
      if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_SPECIALS_PRODUCTS') {
    /**
     * display the special product center box
     */
    //    include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_SPECIALS_INDEX));
        require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php');
      }
    ?>
    
    <?php
      if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_NEW_PRODUCTS') {
    /**
     * display the new product center box
     */
    //    include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_NEW_PRODUCTS));
        require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php');
      }
    ?>
    
    <?php
      if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_UPCOMING') {
    /**
     * display the upcoming product center box
     */
        include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS));
      }
    ?>
    <?php
      $show_display_category->MoveNext();
    } //// eof: missing
    ?>
    </div>

  3. #3
    Join Date
    Apr 2005
    Location
    Traralgon
    Posts
    56
    Plugin Contributions
    0

    Default Re: Missing 'echo' in tpl_product_info_noproduct.php

    Thanks lat9. This was a timesaver.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 10 Aug 2011, 02:09 PM
  2. [Done v1.3.9] Missing </tr> in collect_info.php
    By torvista in forum Bug Reports
    Replies: 1
    Last Post: 10 Jul 2010, 03:16 PM
  3. css sheet for tpl_product_info_noproduct.php
    By Andy_GS in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 22 Oct 2009, 09:27 PM
  4. Replies: 9
    Last Post: 15 Aug 2006, 12:13 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