Installed the mod but had one small problem with one of my extra modules, Customer Loyalty Rewards. This mod does not appear as a choice under one of the existing admin pulldown menus but instead has its own pulldown menu in admin. After I followed Kuroi's instructions for updating the box file, the menu for Customer Loyalty Rewards was still not appearing. So I had to modify the box file to the following:
Code:
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
$za_contents = array();
$za_heading = array();
$za_heading = array('text' => BOX_HEADING_CUSTOMER_REWARDS_ADMIN, 'link' => zen_href_link(FILENAME_ALT_NAV, '', 'NONSSL'));
$options = array( array('box' => BOX_CUSTOMER_REWARDS_SET_POINTS_MAINT_ADMIN, 'page' => FILENAME_CUSTOMER_REWARDS_POINTS_MAINT_ADMIN),
array('box' => BOX_CUSTOMER_REWARDS_SET_EXCLUDED_ITEMS_ADMIN, 'page' => FILENAME_CUSTOMER_REWARDS_POINTS_RESTRICT),
array('box' => BOX_CUSTOMER_REWARDS_CUSTOMER_ADMIN, 'page' => FILENAME_CUSTOMER_REWARDS_CUSOMER_MAINT),
array('box' => BOX_CUSTOMER_REWARDS_REPORT_ADMIN, 'page' => FILENAME_CUSTOMER_REWARDS_REPORT)
);
foreach ($options as $key => $value)
if (page_allowed($value['page'])=='true') $za_contents[] = array('text' => $value['box'], 'link' => zen_href_link($value['page'], '', 'NONSSL'));
?>
<!-- customer_rewards_admin //-->
<?php
echo zen_draw_admin_box($za_heading, $za_contents);
?>
<!-- customer_rewards_admin_eof //-->
I didn't write this out myself, but instead just hacked together the missing parts from the original box file into the new box file version. Then it worked perfectly, or at least I have not found any problems yet.
Thanks, Kuroi, for the nice mod!
Bookmarks