Zen Cart Logo
Forums / All Other Contributions/Addons / Reward Points Module for ZC v13x

Reward Points Module for ZC v13x

Locked

Views: 470,646

Results 1,761 to 1,780 of 2,476
This thread is locked. New replies are disabled.
12 Mar 2011, 9:16 PM
#1761
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Reward Points Module for ZC v13x

I assume from your reply that you do see the screen as in the picture but all columns show 0. If you don't mind, could you give me your link and I'll make a test order to see how it works. I'm no expert in this mod but, having installed and configured it very recently, I may see something in the process.

12 Mar 2011, 10:32 PM
#1762
commdiver avatar

commdiver

Zen Follower

Join Date:
May 2010
Posts:
222
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Correct. I see the table you showed, but all fields are marked with a "0".

I do not have it enabled now, so as not to have a bunch of customers ask what these reward points are. I have tried multiple test orders, but nothing. It would be nice if the module's author would stick around to answer questions...

13 Mar 2011, 6:16 AM
#1763
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I have had this module installed for a while, but just now noticed that I do not see the global points redeem screen anymore under the customers tool bar. Do you know why that is and what I might do to fix that? I ran the update SQL patch and that didn't do anything but add and extra Reward points tab under configuration.

I also do not see the reward points under customer anymore.

Thank you for your help.

13 Mar 2011, 8:04 AM
#1764
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

If you are talking about the "Set Global Reward Point ratio", this is set in Catalog > Reward Points (mine is 5.0). You set the Global Points Ratio in Customers > Group Reward Redeem (I have it 0.01). What my settings mean is that a customer gets 5 points for each base currency unit spent (€, £, $ or whatever is the store's base currency) and each point is worth 1/100 of the currency unit. So, a customer spending $100 will get 500 points redeemable for $5, effectively 5% of the order deducted when the points will be used in the future.

As there are many questions around and my answers are based on personal experience, I think it would be nice if Andrew came in and clarified some points. In my case, the only issue I have is that points are not calculated when the customer pays via PayPal and this is really serious as payments via PayPal (or with a credit card processed by PayPal) are the majority. Otherwise, the module works perfectly and is exactly what I needed.

17 Mar 2011, 4:49 PM
#1765
dmagic avatar

dmagic

Totally Zenned

Join Date:
Oct 2008
Posts:
594
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

in customers_reward_points.php

have error :

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'REWARD_POINTS_CUSTOMER_LIMIT' at line 1
in:
[select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_group_pricing, r.pending_points, r.reward_points, gp.group_name, rm.redeem_ratio from customers as c LEFT JOIN (reward_customer_points as r) ON (r.customers_id=c.customers_id) LEFT JOIN(group_pricing as gp) ON (gp.group_id=c.customers_group_pricing) LEFT JOIN(reward_master as rm) ON ((c.customers_group_pricing!=0 AND rm.scope=3 AND rm.scope_id=c.customers_group_pricing) OR (c.customers_group_pricing=0 AND rm.scope=0 AND rm.scope_id=0)) WHERE c.customers_lastname LIKE 'P%' ORDER BY c.customers_lastname LIMIT REWARD_POINTS_CUSTOMER_LIMIT;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank 
17 Mar 2011, 8:39 PM
#1766
tiffany33 avatar

tiffany33

New Zenner

Join Date:
Nov 2008
Location:
Denver, Colorado
Posts:
13
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Does anyone have Rewards module is working when someone using Google checkout to process the payment,

In this post http://www.zen-cart.com/forum/showthread.php?p=624735&highlight=google#post624735 Kenwah says it s working.

However it seems that Google checkout avoids the whole zen cart, yet if you block Google checkout from only being visible when someone is signed in , it violates Google's TOS and they can suspend your checkout account. :oops:

if so please let me know how I go about doing it? Thanks so much. :yes:

22 Mar 2011, 4:03 AM
#1767
glamourdolleyes avatar

glamourdolleyes

New Zenner

Join Date:
Mar 2009
Posts:
86
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Is there any setting that makes this not applicable with discount codes?

I don't want customers to be able to use the rewards and a discount code at the same time, is this possible??

27 Mar 2011, 1:05 PM
#1768
paul_the_first avatar

paul_the_first

New Zenner

Join Date:
Mar 2010
Posts:
54
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Trying to completely uninstall this mod and have a few issues.

I have removed everything that contained reward or points from my files and ran the uninstall SQL. But I can still see Reward Points listed 3 times in admin>configuration.

How do I get rid of them?

27 Mar 2011, 2:04 PM
#1769
damiantaylor avatar

damiantaylor

Zen Follower

Join Date:
Aug 2009
Posts:
244
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I'm not sure if this is a bug or my misunderstanding of how group rewards work, but I have a customer I have added to a Discount Pricing Group in Admin->Customers->Customers because I want to give them a percentage discount on everything they buy.

Now, if I go to Admin->Customers->Reward Points and edit the customer reward points, say I add a few points to their earned, the Discount Pricing Group is set to --none-- so they no longer receive their percentage discounts when they buy.

When I initially went in to the reward points screen, I could see their Discount Pricing Group name under the heading Pricing Group.
When I click to edit the customer there is a dropdown Set new Pricing Group/Redeem Ratio that only contains 1 option, which is --none-- I'm guessing that's where the problem is?

Is this a small bug or a feature I'm missing the point of?

30 Mar 2011, 9:11 PM
#1770
carley avatar

carley

New Zenner

Join Date:
Mar 2011
Location:
Ontario, Canada
Posts:
18
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

hey everyone - sorry if this has already been covered, i couldn't find this info on the pages i read through.

I've installed everything that came with version 1.4 of the module (from Andrews website directly). I've even had my hosting company help me, as I'm not sure what I'm doing & am learning as i go - with a lot of hiccups along the way!

When I use the diagnostics tool, I no longer have any files or folders showing in red, but i have the following showing in red in the "MySQL Database Check" section:

customers_id- field missing in reward_customer_points!!!
reward_points- field missing in reward_customer_points!!!
pending_points- field missing in reward_customer_points!!!
rewards_id- field missing in reward_status_track!!!
customers_id- field missing in reward_status_track!!!
orders_id- field missing in reward_status_track!!!
date- field missing in reward_status_track!!!
reward_points- field missing in reward_status_track!!!
status- field missing in reward_status_track!!!
Allow Redeem of Reward Points on Order Total or Subtotal- record missing in configuration!!!

I've done all the SQL patches I can find inside the module, and so has my hosting company. I'm almost begin told to give up on the module at this point, because it seems like this issue can't be fixed!
(extra info - version 1.33a, the one for DL through zen cart, it also had the same files showing in red when i installed it, which is why i tried this version)

Could anyone help me with this? tell me how to fix it? where to get the info to fix it?
I"m no programmer, I don't really knwo what i'm doing here, so I can't figure this out on my own. I"d really appreciate anyone helping me with this that can - i'd love to be able to fix this issue & use this mod!

31 Mar 2011, 7:30 AM
#1771
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I am lost.

I want reward points to be earned against regular priced items not items on sale. So can two items be purchased, one sale item and one regular item and still have it compute reward points correctly?

I want each product to be computed by this equation. PRICE X 0.05

Meaning if you buy something for $100. Your reward points will be $100*0.05. Basically you earn a nickel for every dollar you spend.

I want ... okay enough. Can someone please help set this up?

31 Mar 2011, 11:11 AM
#1772
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I think that you can do it. I have set the Global Reward Point Ratio to 5.00 with Catalog > Reward Points. This gives 5 points for every currency unit ($, €, £ or whatever your base currency is) spent, which is redeemed for 0.01 per point. That covers your question about the formula.

If you go to Configuration > Reward Points > Adjust Reward Points for Sales/Specials you can set it to 0 or 1 depending on what you want to do. Each of the options is explained there.

Although I have not played with it, I see that you can define a different Reward Point Ratio for a product. Go to Catalog > Reward Points where you will see the Global Ratio of 5.0000 in the box on the top right of the screen. Then, select a category and a product. You will find another box titled "Set Product Reward Point ratio:" where you can enter a different ratio for the individual product. In your case, if you don't want some products to earn points, enter 0.0000 in the box.

As I said, I have not tried it but this should be the purpose of setting a ratio on a product basis. You may for example want items of sale to get 2 rather than 5 points for every dollar spent, or you may want some other products advertised as earning 20 points per dollar. I can't see any way to do it automatically, so I assume that this should be done manually for each product differentiating from the global setting.

If you try and it works this way, you may want to post your experience here for other users to learn and benefit. Good luck!

31 Mar 2011, 10:38 PM
#1773
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Athens Collectibles:

I think that you can do it. I have set the Global Reward Point Ratio to 5.00 with Catalog > Reward Points. This gives 5 points for every currency unit ($, €, £ or whatever your base currency is) spent, which is redeemed for 0.01 per point. That covers your question about the formula.

If you go to Configuration > Reward Points > Adjust Reward Points for Sales/Specials you can set it to 0 or 1 depending on what you want to do. Each of the options is explained there.

Although I have not played with it, I see that you can define a different Reward Point Ratio for a product. Go to Catalog > Reward Points where you will see the Global Ratio of 5.0000 in the box on the top right of the screen. Then, select a category and a product. You will find another box titled "Set Product Reward Point ratio:" where you can enter a different ratio for the individual product. In your case, if you don't want some products to earn points, enter 0.0000 in the box.

As I said, I have not tried it but this should be the purpose of setting a ratio on a product basis. You may for example want items of sale to get 2 rather than 5 points for every dollar spent, or you may want some other products advertised as earning 20 points per dollar. I can't see any way to do it automatically, so I assume that this should be done manually for each product differentiating from the global setting.

If you try and it works this way, you may want to post your experience here for other users to learn and benefit. Good luck!

I will try that and get back to you. Thanks!

1 Apr 2011, 2:46 AM
#1774
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
856
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Sharni:

I have tried searching this rather large thread for answers, but none of my key words get a result. So here goes.

I just installed this module on my cart. My business has been in operation for 2 years now, and I have a lot of loyal customers. I would like to give my existing customers reward points to match the orders that they have made. Is there a simple way to do this?

Thanks

Sharni

I couldn't find an answer, so I wrote one. Here is the code. You should copy this code and create a .php file with it. Place that file on your web server and replace the top line for connections with your own DB connection info. Execute the script by accessing it through your browser.

I have our sunrises period in the admin set to 31 so I wrote this to check whether the order is older than 30 days. You may adjust this to meet your needs.

This comes with NO warranty or guarantee. It did exactly what I needed it to though. The rewards points module creates 3 tables, one of which is only used to track the reward ratio of different categories, products, groups etc. . .

The additional two tables are what's important here. These tables are properly addressed in my lil' script.

Enjoy! John

BACKUP YOUR DB!!!

<?php
// hour minute second month day year

require 'connections.php';
$sunrises = (30 * 24 * 60 * 60); //days x hours x minutes x seconds
$now = time();
$issue_rewards = array();
$query = mysql_query("SELECT * FROM orders_total WHERE class ='ot_subtotal'");

$cID = '';
$date = '';

while($row = mysql_fetch_assoc($query)){
    
    $updates = array();
    $query2 = mysql_query("SELECT * FROM orders_status_history WHERE orders_id ='$row[orders_id]'");
    while($row2 = mysql_fetch_assoc($query2)){
        
        $updates[] = $row2['orders_status_id'];
    }
    
    if(in_array('3', $updates) && !in_array('5', $updates) && !in_array('6', $updates) && !in_array('111', $updates) && !in_array('107', $updates) && !in_array('109', $updates)){
    $round_val = round($row['value'], PHP_ROUND_HALF_DOWN);
    //2008-01-18 18:16:51
$o_get_date_time = mysql_query("SELECT * FROM orders WHERE orders_id ='$row[orders_id]'");
    while($this_date_time = mysql_fetch_assoc($o_get_date_time)){
    $dt_parts = explode(' ', $this_date_time['date_purchased']);
    $dt_date = $dt_parts[0];
    $dt_time = $dt_parts[1];
    $cID = $this_date_time['customers_id'];
    $date = $this_date_time['date_purchased'];
    }
    
    $d_parts = explode('-', $dt_date);
    $mo = $d_parts[1]; $da = $d_parts[2]; $yr = $d_parts[0];
    $t_parts = explode(':', $dt_time);
    $hr = $t_parts[0]; $mn = $t_parts[1]; $se = $t_parts[2]; 
    $odate_secs = mktime($hr, $mn, $se, $mo, $da, $yr);
    //$recompile = $yr.'-'.$mo.'-'.$da.' '. $hr.':'.$mn.':'.$se;//testing here
    

    $date_math = $now - $odate_secs;
    if($date_math < $sunrises){
    //insert these points as pending
        echo $count . ": OK! Order ID: " . $row['orders_id'] . '  Will Get: ' . $round_val . ' ' . $recompile . ' PENDING<br />';
        
        mysql_query("INSERT INTO reward_status_track (rewards_id,customers_id,orders_id,date,reward_points,status) VALUES ('',$cID,$row[orders_id],'$date',$round_val,'0')") or die(mysql_error());
        $exisitng_check = mysql_query("SELECT * FROM reward_customer_points WHERE customers_id ='$cID'") or die(mysql_error());
        $exis_chk_nums = mysql_num_rows($exisitng_check);
        if($exis_chk_nums < 1){
        mysql_query("INSERT INTO reward_customer_points (customers_id,reward_points,pending_points) VALUES ($cID,'0',$round_val)") or die(mysql_error());
        }else{
            while($existing_record = mysql_fetch_assoc($exisitng_check)){
            //$existing_rp = $existing_record['reward_points'];
            $existing_pp = $existing_record['pending_points'];
            }
            //$new_rp = $existing_rp + $round_val;
            $new_pp = $existing_pp + $round_val;
            mysql_query("UPDATE reward_customer_points SET pending_points=$new_pp WHERE customers_id=$cID") or die(mysql_error());
        }
    }else{
    //insert these points as earned
        echo $count . ": OK! Order ID: " . $row['orders_id'] . '  Will Get: ' . $round_val . ' ' . $recompile . ' EARNED!<br />';
        
                
        mysql_query("INSERT INTO reward_status_track (rewards_id,customers_id,orders_id,date,reward_points,status) VALUES ('',$cID,$row[orders_id],'$date',$round_val,'1')") or die(mysql_error());
        $exisitng_check = mysql_query("SELECT * FROM reward_customer_points WHERE customers_id ='$cID'") or die(mysql_error());
        $exis_chk_nums = mysql_num_rows($exisitng_check);
        if($exis_chk_nums < 1){
        mysql_query("INSERT INTO reward_customer_points (customers_id,reward_points,pending_points) VALUES ($cID,$round_val,'0')") or die(mysql_error());
    }else{
            while($existing_record = mysql_fetch_assoc($exisitng_check)){
            $existing_rp = $existing_record['reward_points'];
            //$existing_pp = $existing_record['pending_points'];
            }
            $new_rp = $existing_rp + $round_val;
            //$new_pp = $existing_pp + $round_val;
            mysql_query("UPDATE reward_customer_points SET reward_points=$new_rp WHERE customers_id=$cID") or die(mysql_error());
        }
    
    
    }

}


}    
?>
1 Apr 2011, 9:52 PM
#1775
carley avatar

carley

New Zenner

Join Date:
Mar 2011
Location:
Ontario, Canada
Posts:
18
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

carley:

hey everyone - sorry if this has already been covered, i couldn't find this info on the pages i read through.

I've installed everything that came with version 1.4 of the module (from Andrews website directly). I've even had my hosting company help me, as I'm not sure what I'm doing & am learning as i go - with a lot of hiccups along the way!

When I use the diagnostics tool, I no longer have any files or folders showing in red, but i have the following showing in red in the "MySQL Database Check" section:

customers_id- field missing in reward_customer_points!!!
reward_points- field missing in reward_customer_points!!!
pending_points- field missing in reward_customer_points!!!
rewards_id- field missing in reward_status_track!!!
customers_id- field missing in reward_status_track!!!
orders_id- field missing in reward_status_track!!!
date- field missing in reward_status_track!!!
reward_points- field missing in reward_status_track!!!
status- field missing in reward_status_track!!!
Allow Redeem of Reward Points on Order Total or Subtotal- record missing in configuration!!!

I've done all the SQL patches I can find inside the module, and so has my hosting company. I'm almost begin told to give up on the module at this point, because it seems like this issue can't be fixed!
(extra info - version 1.33a, the one for DL through zen cart, it also had the same files showing in red when i installed it, which is why i tried this version)

Could anyone help me with this? tell me how to fix it? where to get the info to fix it?
I"m no programmer, I don't really knwo what i'm doing here, so I can't figure this out on my own. I"d really appreciate anyone helping me with this that can - i'd love to be able to fix this issue & use this mod!

Also - Is there a way to make it so my wholesale customers do NOT get reward points for any of their purchases? Since they already get a heavily discounted price in many cases, i don't wish to give hem points as well.

2 Apr 2011, 8:19 AM
#1776
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Well I tried diff configs and still cannot get it right. I tried PM'ing the author with no response or either that he's too busy.

5 Apr 2011, 2:40 PM
#1777
carley avatar

carley

New Zenner

Join Date:
Mar 2011
Location:
Ontario, Canada
Posts:
18
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

well, i did really want to use this module, it seems great. but after reading all 178pgs of posts, not finding anyone else mentioning the issues the RPD is finding with missing lines in the SQL file, and after posting twice myself, without any reply or comment in response, and after trying to PM the author, only to find his inbox is full & msg can't be sent - I'm giving up.

I found another reward points mod for zencart, made by a company, and they're following up with people-supporting their mod & answering questions in their forum without people having to wait too long. and it's also free. so I'm going it a shot instead.
Oh well, this mod does seem better than the 1 i'm going to try, but it's not much better if it won't work & is missing things :(

7 Apr 2011, 1:43 AM
#1778
jill8026 avatar

jill8026

Totally Zenned

Join Date:
May 2007
Posts:
461
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I am having the same problem that someone else is having - I just placed a test order and I saw the points at checkout, I can see them in my order status in the admin, but they are not appearing under the CUSTOMERS > REWARD POINTS screen...

It was working at one time.....I did tests months ago and they worked fine - now we are getting ready to launch the program and it does not work.

We did upgrade to 1.3.9H a few weeks ago - but would think that should not have any cause for this.

Does anyone have any ideas why they are not appearing?!?!?!

Thank you!

7 Apr 2011, 1:48 AM
#1779
jill8026 avatar

jill8026

Totally Zenned

Join Date:
May 2007
Posts:
461
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Even more weird is that I just placed another test order, used points from the old test I did....at checkout I applied the points i had to the order....and saw that I was to earn 395 points for the new order...order went through fine and when I looked at CUSTOMER > REWARD POINTS i can see that the points WERE removed from the earned column....but there are no new PENDING points for this order.....

?!?!?!?!!?

10 Apr 2011, 7:37 AM
#1780
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Athens Collectibles:

I think that you can do it. I have set the Global Reward Point Ratio to 5.00 with Catalog > Reward Points. This gives 5 points for every currency unit ($, €, £ or whatever your base currency is) spent, which is redeemed for 0.01 per point. That covers your question about the formula.

If you go to Configuration > Reward Points > Adjust Reward Points for Sales/Specials you can set it to 0 or 1 depending on what you want to do. Each of the options is explained there.

Although I have not played with it, I see that you can define a different Reward Point Ratio for a product. Go to Catalog > Reward Points where you will see the Global Ratio of 5.0000 in the box on the top right of the screen. Then, select a category and a product. You will find another box titled "Set Product Reward Point ratio:" where you can enter a different ratio for the individual product. In your case, if you don't want some products to earn points, enter 0.0000 in the box.

As I said, I have not tried it but this should be the purpose of setting a ratio on a product basis. You may for example want items of sale to get 2 rather than 5 points for every dollar spent, or you may want some other products advertised as earning 20 points per dollar. I can't see any way to do it automatically, so I assume that this should be done manually for each product differentiating from the global setting.

If you try and it works this way, you may want to post your experience here for other users to learn and benefit. Good luck!

Well the author finally got back to me. Looks like this rounds UP in whole points.

I have it set in global for all products at .005. So if someone purchases for $189.99 their points are 0.94995 which rounds up to 1 full point.
to redeem in orders total I have it set at 1 point equals 1 dollar.

I DON"T think the author wants to be bothered with questions so for the future anyone seeking to ask him, forget it. He's maybe just too busy to deal with it anymore.

"Reward Point Rounding
Rounding value- This is an adjustment to each product price before it is rounded to 0 decimal places to calculate product Reward Points (default 0.0)"

Does anyone know what this means or how it adjusts? Becase like in my example above. "So if someone purchases for $189.99 their points are 0.94995 which rounds up to 1 full point." I don't want it to round up. I want it to round down. So this amount should not be getting any points. Now if the total was $379.98 the points would be$1.8999 which should be only 1 point.

All in all, it seems like a good mod, seems there is a lot of confusion as the instructions aren't that clear. After 179 pages you would think all the questions would be answered.