For the option to show rewards points or not in the product pages a solution could be this:
in includes/templates/YOUR_TEMPLATES/tpl_product_info_display.php find:
PHP Code:
* display the product reward points
*/
include($template->get_template_dir('/tpl_product_reward_points.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_product_reward_points.php');
?>
</h2>
<!--eof Product Reward Points block -->
Modify in:
* display the product reward points
*/
if (SHOW_REWARD_POINTS_PRODUCT == '1')
{
include($template->get_template_dir('/tpl_product_reward_points.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_product_reward_points.php');
}
?>
</h2>
<!--eof Product Reward Points block -->
Then using Phpmyadmin or the zencart admin patch add the following:
PHP Code:
SELECT @cgi:=configuration_group_id FROM configuration_group WHERE configuration_group_title = 'Reward Points';
INSERT INTO configuration
(configuration_id ,configuration_title ,configuration_key ,configuration_value ,configuration_description ,configuration_group_id ,sort_order ,last_modified ,date_added ,use_function ,set_function)
VALUES (NULL , 'Show rewards point in Product Page', 'SHOW_REWARD_POINTS_PRODUCT', '0', 'Display Reward Points in the product page?<br />0= No<br />1= Yes', @cgi, '1', NULL, now(), NULL , 'zen_cfg_select_option(array(''0'', ''1''), ');
Setting to 0 the new option will not show the points in the product pages, else if you set to 1 it will show points.
NOTE: Please check if it's all correct and there is not errors of any kind. If You think ity could be useful please add it to the modules ;-)
Bookmarks