Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
ardhill
Hi
Where does the link in the "Admin>Configuation>Reward Points" come from?
I have a spare link in my config menu, and I was wondering how to get rid of it. The url is configuration.php?gID=31 if that means anything.
That link goes to a basically blank page (I gues it is from a previous version). It isn't a problem as such, I just wanted to tidy things up a bit and remove the link/code/file/database entry or whatever it is.
Thanks
Paul
there's an SQL patch included in the mod zipfile called remove_multiple_config_items.sql. Just run that under Config->Tools->SQL Patches.
Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
hem
there's an SQL patch included in the mod zipfile called remove_multiple_config_items.sql. Just run that under Config->Tools->SQL Patches.
Thanks Hem
Re: Reward Points Module- Live Release now available.
Thanks Andrew,
That lastest fix works perfectly!
You can now allow your customer to enter the number of points they wish to redeem :clap:
Re: Reward Points Module- Live Release now available.
Now- does anybody else have any outstanding issues???
Re: Subtract reward points when order cancelled
Quote:
Originally Posted by
imagino
How to AUTOMATICALLY subtract reward points when customer cancelled his order?
Thank you.
Hem, am I missing some option, or it is not possible right now?
Thank you.
Re: Subtract reward points when order cancelled
Quote:
Originally Posted by
imagino
Hem, am I missing some option, or it is not possible right now?
Thank you.
The points will be removed if they are still pending. If you have moved the points to earned then you will need to manually remove them.
Re: Reward Points Module- Live Release now available.
Re: Reward Points Module- Live Release now available.
I've found a bug in the version 1.33a that allows the customer to enter more points than they have earned.
I don't know how I managed to miss that one in my earlier tests :unsure:
To fix the bug, change function get_points_redeeming in includes/modules/order_total/ot_reward_points.php to:
Code:
function get_points_redeeming()
{
if(MODULE_ORDER_TOTAL_REWARD_POINTS_TYPE=="Automatic")
$points_redeeming=GetCustomersRewardPoints($_SESSION['customer_id']);
else
if(isset($_POST['redeem_points']))
$points_redeeming=$_POST['redeem_points'];
else
$points_redeeming=$_SESSION['redeem_points'];
$order_total=$this->get_order_total();
$redeem_maximum=GetRewardPointsRedeemMaximum($order_total);
$points_earned=GetCustomersRewardPoints($_SESSION['customer_id']);
if($points_redeeming>$points_earned)
$points_redeeming=$points_earned;
if($points_redeeming>$redeem_maximum)
$points_redeeming=$redeem_maximum;
return $points_redeeming;
}
The section in red is the new code
Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
damiantaylor
I've found a bug in the version 1.33a that allows the customer to enter more points than they have earned.
I don't know how I managed to miss that one in my earlier tests :unsure:
To fix the bug, change function get_points_redeeming in includes/modules/order_total/ot_reward_points.php to:
Code:
function get_points_redeeming()
{
if(MODULE_ORDER_TOTAL_REWARD_POINTS_TYPE=="Automatic")
$points_redeeming=GetCustomersRewardPoints($_SESSION['customer_id']);
else
if(isset($_POST['redeem_points']))
$points_redeeming=$_POST['redeem_points'];
else
$points_redeeming=$_SESSION['redeem_points'];
$order_total=$this->get_order_total();
$redeem_maximum=GetRewardPointsRedeemMaximum($order_total);
$points_earned=GetCustomersRewardPoints($_SESSION['customer_id']);
if($points_redeeming>$points_earned)
$points_redeeming=$points_earned;
if($points_redeeming>$redeem_maximum)
$points_redeeming=$redeem_maximum;
return $points_redeeming;
}
The section in red is the new code
Nice one- I'll add it to the current code- Might tweak it up a little.