Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
ripvoid
do you know why it does not work with 1.5.1 in the admin editing orders show 0.00 points but in invoices it show them can any one help-??
The reason the reward points in admin/customers/orders/edit order will not show is because, the reward points is different with the total of,
100 points = $1 so the reward points can not save the points value in database so you see it's 0.00
Check the orders_totals table and you will understand whats going on.
I know it is hard to understand but that's the best I can explain it.
Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
countrycharm
You are the first person to ever report a bug in Sales/Specials. I have checked my test site and I don't have the problem you are experiencing neither has anybody else.
Go back and make sure all the reward points files uploaded correctly. It is something in your installation not in the module.
Also the hack you are offering makes no sense. Reward points was created to reward customers when they purchase products from your site. Why would you penalize the customer from earning more points just because they don't spend them when you want them to. There is a feature in admin/modules/order total/Reward Points you can set to Automatic. It will select all Reward Points earned by the customer and enter them at checkout. So the hack you have come up with is of no use.
If it's not a bug, why does it check if !$attributes before setting the price to the special price? Maybe I missed the reasoning, but for me it was a bug and can easily be recreated. In any case it's here now so if someone else has the same problem they know where to look.
Anyways, thank you for a wonderful zen cart addition it works very well and does exactly what I wanted it to do with very minor modifications.
Re: Reward Points Module- Live Release now available.
Is it possible to make the sunrise period start after the order is marked "shipped" instead of having it start immediately after the order is placed?
Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
Coins2012
I don't think you will get an answer to your question because I asked the same question perhaps a month or two ago, I think the module is not setup for that so I got one of my family members write me a code which I run daily, it's not the perfect way but itworks, you could set it up as a cron job if you like to run it daily, here is the code below:
<?php
try {
$dbh = new PDO("mysql:host=localhost;dbname=DATABASE_NAME", 'DATABASE_NAME_Points', '1qwer13');
$Totalquery = "Update reward_customer_points
SET reward_points = 0.00
Where customers_id not in (select customers_id from reward_status_track)";
$Totalstmt = $dbh->prepare($Totalquery);
$Totalstmt ->execute();
echo 'Total Task Completed';
}
catch(PDOException $e)
{
echo $e->getMessage();
}
?>
Basically when you set up your reward points module pending points to expire in 30 days, the reward_status_track table keeps only 30 days of records so what the code does if it's not in the track table then it sets the points to Zero.
You have to run this daily though, if not then the deleted records will be lost and won't be able to zero the reward points that are older than 30 days.
I am sure some people here could make it much better and full proof and run it as a cron job.
I am not an expert in code writing but was able to figure things out to solve my problem.
Hope this helps,
I need points to expire 90 days after they are earned.
This code is a good start, but I can see a problem...
Say we want rewards to expire at 90 days.
Day 1: Customer places order. Earns 100 points.
Day 30: Customer places another order. Earns 100 points.
Day 90: Only 100 points should be removed, not all of their points, which is what this code would do.
Has anyone determined how to properly remove earned points after a certain time period?
Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
abcisme
I need points to expire 90 days after they are earned.
This code is a good start, but I can see a problem...
Say we want rewards to expire at 90 days.
Day 1: Customer places order. Earns 100 points.
Day 30: Customer places another order. Earns 100 points.
Day 90: Only 100 points should be removed, not all of their points, which is what this code would do.
Has anyone determined how to properly remove earned points after a certain time period?
Ok, I am not a programmer, so I am taking a stab in the dark at this.. but looking at the housekeeping function, if I create a subset for housekeeping which specifies earned points instead of pending points.. then switched the housekeeping function to reflect rewards_points instead of pending_points, it should work to remove any earned points instead of pending points. Right?
So pending points will switch to earned after the sunrise period, then be removed after the housekeeping period... Does this look correct?
Code:
function CleanupRewardPointHistory()
{
global $db,$messageStack;
$subset="IFNULL((SELECT SUM(rp.reward_points) FROM ".TABLE_REWARD_STATUS_TRACK." rp WHERE cp.customers_id=rp.customers_id AND rp.status='".STATUS_PENDING."' AND rp.date<NOW()-INTERVAL %s DAY),0)";
$subset2="IFNULL((SELECT SUM(rp.reward_points) FROM ".TABLE_REWARD_STATUS_TRACK." rp WHERE cp.customers_id=rp.customers_id AND rp.status='".STATUS_PROCESSED."' AND rp.date<NOW()-INTERVAL %s DAY),0)";
$sunrise_subset=sprintf($subset,REWARD_POINTS_SUNRISE_PERIOD);
$housekeeping_subset=sprintf($subset2,REWARD_POINTS_HOUSEKEEPING);
if(REWARD_POINTS_SUNRISE_PERIOD>0)
if($db->Execute("UPDATE ".TABLE_REWARD_CUSTOMER_POINTS." cp, ".TABLE_REWARD_STATUS_TRACK." rp SET cp.reward_points=cp.reward_points+".$sunrise_subset.",cp.pending_points=cp.pending_points-".$sunrise_subset." WHERE cp.customers_id=rp.customers_id;"))
$db->Execute("UPDATE ".TABLE_REWARD_STATUS_TRACK." SET status=".STATUS_PROCESSED." WHERE status=".STATUS_PENDING." AND date<NOW()-INTERVAL ".REWARD_POINTS_SUNRISE_PERIOD." DAY;");
if(REWARD_POINTS_HOUSEKEEPING>0)
if($db->Execute("UPDATE ".TABLE_REWARD_CUSTOMER_POINTS." cp, ".TABLE_REWARD_STATUS_TRACK." rp SET cp.reward_points=cp.reward_points-".$housekeeping_subset." WHERE cp.customers_id=rp.customers_id;"))
$db->Execute("DELETE FROM ".TABLE_REWARD_STATUS_TRACK." WHERE date<NOW()-INTERVAL ".(int)REWARD_POINTS_HOUSEKEEPING." DAY;");
}
Re: Reward Points Module- Live Release now available.
Hi,
in my site, when i change attributes the points dont change, please take a look: 66.147.242.164/~kiteaddi
Re: Reward Points Module- Live Release now available.
can share products ( facebook, twiiter ) and get points ?
Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
dmagic
can share products ( facebook, twiiter ) and get points ?
Could you be more clear in what you are asking. If your asking if someone shares your products on facebook, twiiter and receive reward points for doing that, the answer is no. You will have to hire someone to custom coded reward points to do that.
Re: Reward Points Module- Live Release now available.
Hi,
I have a problem where if i enter in a product´s page it shows the current amount of points i should get for that product.
However when i actually add it to the cart it never adds the correct points. It doesnt matter if i set the ratio to 0.0, 0.5, to 2.0, it always adds the global ratio points (which is now set to 1).
My zen_reward_master table for a given category looks like this: point ratio (for category) = 0.5 (For example). Bonus points = null. redeem points = null. redeem ratio = null
Any ideas?
Re: Reward Points Module- Live Release now available.
I have the following problem: in the product page the points are calculated on base price (wrong) and when I add it to the cart they are calculated on the subtotal (base price+taxes - right).
how to fix the points amount shown in product page?
thanks in advance