Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default [Duplic]New, Featured, & Specials code doesn't work on tpl_product_info_noproduct.php

    It looks like there are admin configuration settings which allows one to turn on/off new specials, featured and upcoming products specifically on the tpl_product_info_noproduct.php page. It doesn't appear to be working though.. (just tried turning it on on my test site, and one other person has reported this isn't working for them either..) So I replaced lines 27-61 of the tpl_product_info_noproduct.php file with this code:


    Code:
    <?php if  ($show_display_category->fields['configuration_key'] ==  'SHOW_PRODUCT_INFO_MISSING_FEATURED_PRODUCTS') { ?>
    <?php
    /**
     * display the Featured Products Center Box
     */
    ?>
    <?php  require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE,  $current_page_base,'templates'). '/tpl_modules_featured_products.php');  ?>
    <?php } ?>
    
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_SPECIALS_PRODUCTS') { ?>
    <?php
    /**
     * display the Special Products Center Box
     */
    ?>
    <?php  require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE,  $current_page_base,'templates'). '/tpl_modules_specials_default.php');  ?>
    <?php } ?>
    
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_NEW_PRODUCTS') { ?>
    <?php
    /**
     * display the New Products Center Box
     */
    ?>
    <?php  require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE,  $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
    <?php } ?>
    
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_UPCOMING') { ?>
    <?php
    /**
     * display the Upcoming Products Center Box
     */
    ?>
    <?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS)); ?><?php } ?>
    and now it works.. Wanted to report this.. It appears to be a bug..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,491
    Plugin Contributions
    88

    Default Re: New, Featured, & Specials code doesn't work on tpl_product_info_noproduct.php

    'tis a bug, previously reported here: http://www.zen-cart.com/showthread.p..._noproduct-php

    Fixed in v1.5.2.

  3. #3
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: New, Featured, & Specials code doesn't work on tpl_product_info_noproduct.php

    Quote Originally Posted by lat9 View Post
    'tis a bug, previously reported here: http://www.zen-cart.com/showthread.p..._noproduct-php

    Fixed in v1.5.2.
    Well how about that..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 

Similar Threads

  1. v151 Flexibe NSF (New, Specials & Featured) Sideboxes for 1.5.x
    By rbarbour in forum Addon Sideboxes
    Replies: 3
    Last Post: 1 Jul 2017, 06:14 PM
  2. v151 Flexibe NSF (New, Specials & Featured) Centerboxes for 1.5.x
    By rbarbour in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 14 Jan 2015, 08:28 PM
  3. Replies: 94
    Last Post: 8 Oct 2014, 07:47 AM
  4. Specials, New, Featured, Also Purchased Boxes - Heading & Border
    By Donn in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Feb 2009, 02:20 AM
  5. Specials.php & Featured Products will not work for me
    By Makoshark in forum General Questions
    Replies: 2
    Last Post: 4 Mar 2008, 07:31 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR