Zen Cart Logo
Forums / Bug Reports / [Duplic]New, Featured, & Specials code doesn't work on tpl_product_info_noproduct.php

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

Locked

Views: 2,247

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
28 Dec 2013, 6:18 PM
#1
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

[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:

<?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..