Thanks for responding :)
An upgrade is in the works, thanks again.
Printable View
Thanks for responding :)
An upgrade is in the works, thanks again.
Hi..
I have just installed this module and I'm trying to set the global points ratio in the section "Customers >Group Reward Redeem". By default it is 0.0100 but I want it as 0.1000. Every time I alter it (and then go back to that page) it still says 0.0100. Can anyone tell me what I'm doing wrong please? Thank you in advance!
Attachment 14237
Ok I got this one...after tearing my hair out, it was a very simple case of hitting the enter key. In hindsight, very obvious and basic.
Hello group.. I am having a problem and I don't know how to fix it.. see attached.
I have check the files in the lnaguage files and under the templates and sideboxes and I can figure out why it is doing as attachecd.
what do you need from my my website is below
thank you for reading.
noppie
I have been to both files
\includes\languages\english\extra_definitions\custom\reward_points.php
here is the code
"<?php
define('BOX_REWARD_POINTS', 'Magic Bucks');
define('PRODUCT_REWARD_POINT_TAG', 'magic bucks');
define('REWARD_POINTS_IN_CART_TAG', 'magic bucksin cart');
define('CUSTOMER_EARNED_POINT_TAG', 'magic bucks earned');
define('CUSTOMER_PENDING_POINT_TAG', 'magic bucks pending');
define('MINIMUM_POINT_LEVEL_TAG', 'magic bucks minimum');
define('MAXIMUM_POINT_LEVEL_TAG', 'magic bucks maximum');
define('CUSTOMER_TOTAL_POINT_TAG', 'magic bucks total');
define('NO_REWARD_magic bucks_IN_CART_TAG','No rewards earned.');
define('CUSTOMER_NOT_LOGGED_IN_TAG','Log in to see rewards earned');
define('REWARD_POINT_TITLE','Reward magic bucks');
define('REWARD_POINT_PROMPT','Total magic bucks: ');
define('REWARD_POINT_VALUE_PROMPT','Total Magic Bucks Value: ');
?>
and here is the \includes\templates\custom\sideboxes\tpl_reward_points.php
<?php
/**
* Side Box Template for reward points
*
* @package templateSystem
* @copyright Copyright 2008 Andrew Moore
* @copyright Portions 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
*/
$reward_points=GetRewardPoints($_SESSION['cart']->get_products());
$warning='';
$content='<div id="'.str_replace('_', '-', $box_id . 'Content').'" class="sideBoxContent">';
/*
foreach($_SESSION['cart']->get_products() as $product)
// if($products[$i]['products_priced_by_attribute'])
$reward_points+=GetRewardPoints($product['id'],$product['attributes'])*$product['quantity'];
// else
// $reward_points+=GetRewardPoints($product['id'])*$product['quantity'];
*/
if($reward_points>0)
$content.='<div class="cartBoxRewardPoints">'.(int)$reward_points.' '.REWARD_POINTS_IN_CART _TAG.'</div>';
else
$warning.=NO_REWARD_POINTS_IN_CART_TAG;
if(isset($_SESSION['customer_id']))
$content.='<div class="cartBoxEarnedPoints">'.GetCustomersRewardPoints($_SESSION['customer_id']).' '.CUSTOMER_EARNED_POINT_TAG.'</div><div class="cartBoxPendingPoints">'.GetCustomersPendingPoints($_SESSION['customer_id']).' '.CUSTOMER_PENDING_POINT_TAG.'</div>';
else
$warning.=($warning?'<br />':'').CUSTOMER_NOT_LOGGED_IN_TAG;
if($warning)
$content.='<div id="cartBoxEmpty">'.$warning.'</div>';
$content.='</div>';
?>
can anyone help
Your problem is with the line in red. Fix the line and things should work.Quote:
<?php
define('BOX_REWARD_POINTS', 'Magic Bucks');
define('PRODUCT_REWARD_POINT_TAG', 'magic bucks');
define('REWARD_POINTS_IN_CART_TAG', 'magic bucksin cart');
define('CUSTOMER_EARNED_POINT_TAG', 'magic bucks earned');
define('CUSTOMER_PENDING_POINT_TAG', 'magic bucks pending');
define('MINIMUM_POINT_LEVEL_TAG', 'magic bucks minimum');
define('MAXIMUM_POINT_LEVEL_TAG', 'magic bucks maximum');
define('CUSTOMER_TOTAL_POINT_TAG', 'magic bucks total');
define('NO_REWARD_magic bucks_IN_CART_TAG','No rewards earned.');
define('CUSTOMER_NOT_LOGGED_IN_TAG','Log in to see rewards earned');
define('REWARD_POINT_TITLE','Reward magic bucks');
define('REWARD_POINT_PROMPT','Total magic bucks: ');
define('REWARD_POINT_VALUE_PROMPT','Total Magic Bucks Value: ');
?>