If you mixed up the function files, maybe you also mixed up the language files. Because this happens when a language file (or at least text variable in it) is missing. In that case, zencart prints the name of the variable that is missing.
Bye, Crt
Printable View
If you mixed up the function files, maybe you also mixed up the language files. Because this happens when a language file (or at least text variable in it) is missing. In that case, zencart prints the name of the variable that is missing.
Bye, Crt
Yes indeed!
That was the cause of the issue. I reloaded the language files and all is right in the universe.
Now I have to work on set up. If I have not said it yet thank you!!! It is folks like you that make all of this work.
I hope to be in a position at some point to know this stuff well enough to in turn help someone else.
A
OK, since I had some time (holidays and all) I upgraded my store to 1.3.8. and the module is now working.
But I have another problem now. When a customer chooses to redeem the points, he doesn't get any (or very little) points on that order, why? I installed 1.22.
Thanks in advance, Crt
To Correct Myself: the script works fine, it gives the apropriate amount of points, and the reward points sidebox shows the correct amount, but the order total shows up wrong.
OK, so we have a minor cosmetical glitch :D
Bye, Crt
OK, I fixed it (I think)
In file ot_reward_points_display.php (order total modules)
There was a code:
I commented the line that didn't seem right and voila:Code:if(isset($_SESSION['redeem_value']))
{
$redeem_ratio=GetRedeemRatio($_SESSION['customer_id']);
$reward_points=$reward_points/$redeem_ratio;
$reward_points=$reward_points-$_SESSION['redeem_value'];
$reward_points=$reward_points*$redeem_ratio;
}
Code:if(isset($_SESSION['redeem_value']))
{
$redeem_ratio=GetRedeemRatio($_SESSION['customer_id']);
$reward_points=$reward_points/$redeem_ratio;
//$reward_points=$reward_points-$_SESSION['redeem_value'];
$reward_points=$reward_points*$redeem_ratio;
}
OK, then it's a thing of an opinion.
In my opinion it's fair, if they earned them, they can use them freely and not be "punished" for using them.
Now I have a question, why do we have rounding of points if only full points can be awarded?
Thanks, Crt
Oh yea... another thing to add to functionality requests :D
Points Expiry Period - the period of time after wich the awarded points are deleted.
To explain more in detail. Reward Points are usualy used as an reward for regular customers and regular customers only. So it would be nice if you could set the number of days after wich the reward points "go bad". I know it's hard to keep records of how many and when the points were rewarded and the delete them and everything, but for begining there could be function like this:
Sorry to be a bother, CrtCode:if date(now) > date_of_last_valid_order+expiry_time then delete_points;
OK, I don't know if this is right, but this happened to me.
I had rounding set to 1 and ratio set to 0.2.
When a customer had 10 - 12.5€ in cart, he would only get 1 point.
Is this OK?
Bye, Crt