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

Reward Points Module for ZC v13x

Locked

Views: 470,584

Results 2,141 to 2,160 of 2,476
This thread is locked. New replies are disabled.
17 Oct 2012, 3:49 PM
#2141
coins2012 avatar

coins2012

New Zenner

Join Date:
Jan 2012
Posts:
89
Plugin Contributions:
0

Reward Points Module for ZC v13x

SeanLoberg:

v1.5 version: http://www.zen-cart.com/downloads.php?do=file&id=704

Feature Question: the rewards program allows the automatic expiration of PENDING points by setting a future expiration in days:

admin > config > rewards points config > Delete Old Reward Transactions Period = 30 days (for example below)

For example, a customer buys product, receives 1000 points that are PENDING until the order has shipped, triggering the 1000 points to move from PENDING to EARNED. If the order does not ship in 30 days, the PENDING points expire. No problem, tested and works fine.

What I want to do is expire EARNED points in 30 days. For example, a customer buys product, receives 1000 points that are PENDING. The the order is shipped, triggering the 1000 points to move from PENDING to EARNED. If the customer does not use/redeem the EARNED 1000 points in 30 days, the EARNED points automatically expire. A "Use 'em or Loose'em" scenario.

Does this feature exist in the Mod? If not, any pointers on how to create this function ... Help greatly appreciated!

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,

30 Oct 2012, 2:33 PM
#2142
dh010010 avatar

dh010010

New Zenner

Join Date:
Aug 2012
Posts:
23
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hi all!

First off.... great contribution!

Could some one help me get the value of the points to show on the products info page?

i.e. 100 points worth £1.00

Thanks in advance :o)

30 Oct 2012, 11:36 PM
#2143
lovets avatar

lovets

New Zenner

Join Date:
Jun 2012
Posts:
23
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hi,

Thanks for this great module, just wondering if it is possible for me to rename 'Reward points' to something else that i want it to be? I don't seems to find any solution to this in the thread.

Thanks in advance! (:

31 Oct 2012, 1:19 AM
#2144
lovets avatar

lovets

New Zenner

Join Date:
Jun 2012
Posts:
23
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

lovets:

Hi,

Thanks for this great module, just wondering if it is possible for me to rename 'Reward points' to something else that i want it to be? I don't seems to find any solution to this in the thread.

Thanks in advance! (:

Have figured out. Thanks (:

31 Oct 2012, 10:57 AM
#2145
webkat avatar

webkat

Zen Follower

Join Date:
Jan 2012
Location:
New England
Posts:
238
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

So tell us how you did it!

5 Nov 2012, 9:11 PM
#2146
skwebdev avatar

skwebdev

New Zenner

Join Date:
Nov 2012
Posts:
3
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Firstly, sorry if this has been covered in this thread already, I did search but couldn't find what I was looking for.

What I'm trying to achieve is this:

  1. Have a category of products that you can purchase and receive reward points for (as normal) but can't be purchased with reward points.
  2. Have a second category of products that you can only buy with reward points.

So far I haven't been able to find an obvious way to stop certain products from being purchased with reward points (that would be a start).

Any advice on how I might achieve this, pointers on where I should be hooking into the API etc?

Cheers.

17 Nov 2012, 7:38 PM
#2147
alucard13mm avatar

alucard13mm

New Zenner

Join Date:
Oct 2012
Posts:
13
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

SKWebDev:

Firstly, sorry if this has been covered in this thread already, I did search but couldn't find what I was looking for.

What I'm trying to achieve is this:

  1. Have a category of products that you can purchase and receive reward points for (as normal) but can't be purchased with reward points.
  2. Have a second category of products that you can only buy with reward points.

So far I haven't been able to find an obvious way to stop certain products from being purchased with reward points (that would be a start).

Any advice on how I might achieve this, pointers on where I should be hooking into the API etc?

Cheers.

I would also like to know this..

Like I want customers to get points from everything they buy, but customers can only use their points on a certain category of product. A category that is specifically for using points. Maybe for in-stock items I am trying to get rid of to make room for new stock.


Alternatively, I am going to assume it cannot handle something like
http://www.thinkgeek.com/geekpoints/

30 Nov 2012, 2:54 PM
#2148
mrtorrez avatar

mrtorrez

New Zenner

Join Date:
Aug 2006
Posts:
74
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Is it possible to limit the maximum amount of Reward Points Earned per order?

30 Nov 2012, 3:15 PM
#2149
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Reward Points Module for ZC v13x

mrtorrez:

Is it possible to limit the maximum amount of Reward Points Earned per order?

The Point Ratio or point earn for each product is controlled from The Global Reward Point Redeem setting is found under Customers->Group Reward Redeem.

Quick run through on how it works.

The Point Ratio is the number of reward points you award per unit of base price.
So a Point Ratio of 1 will award 10 reward points for every $10, €10, £10 etc spent.
The currency used is decided by how the prices are stored for the products.
The Global Point Ratio is used for every product, unless overwritten by a Category Point Ratio (if set).
The Category Point Ratio is overwritten by a Product Point Ratio (if set).

If you install the Reward Points Order Total Module you can also set a Redeem Ratio. This is set to 0.01
as default so each point redeemed is worth 1 cent/pence.

30 Nov 2012, 3:31 PM
#2150
mrtorrez avatar

mrtorrez

New Zenner

Join Date:
Aug 2006
Posts:
74
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

mrtorrez:

Is it possible to limit the maximum amount of Reward Points Earned per order?

Thanks but
I mean: a customer will never earns more than a maximum of 100 points for each order.

2 Dec 2012, 1:34 PM
#2151
pearcestephens avatar

pearcestephens

New Zenner

Join Date:
Nov 2012
Posts:
69
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hi Guys,

Can you please tell me what is the best way to assign a "0.200" Redeem ratio to all my existing customers..When i go create a ratio inside "Group Reward Points Redeem" It only lets me add 1 customer at a time..which is not very practical. What is the way everyone else is doing it?

13 Dec 2012, 4:33 AM
#2152
zekin avatar

zekin

New Zenner

Join Date:
Aug 2010
Posts:
33
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I have been using this mod for almost a year, so far so good, except a glitch I have noticed:

btw: I am still on 1.3.9h and reward point v1.40a (downloaded at omnicia.com)

I use sunrise period (eg 30 days) to make all pending points to earned.
Problem is, sometimes (not all the time), in customer > Reward Points , occasionally when I check WHY some customers still have pending points even their orders were much older than the sunrise period - I am seeing orders that made 2 months ago, its reward points are still pending.

Then I checked their "Pending Reward Points" table, the date is no longer the order's date. I am not sure what trigger to change that date, but, it seems, that pending points is stuck there because the date was somehow changed and that date is now within the sunrise period.

My question:

  1. what to trigger the sunrise check? is it when admin login at backend? or when customer login at frontend? or when any page at the store is loaded?
  2. what trigger the change of the date in "Pending Reward Points" table of each customer?

Thanks.

18 Dec 2012, 3:54 AM
#2153
bmboonie avatar

bmboonie

New Zenner

Join Date:
Dec 2012
Posts:
5
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hello everyone, just wondering if anyone else had this problem with installing the Rewards Programme?

When it was installed, after logging in as a user, all of the product pages disappeared, and we could not retrieve the home page. after logging out, it all came back to normal.

Any suggestions?

thanks

BMBoonie

18 Dec 2012, 3:26 PM
#2154
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Reward Points Module for ZC v13x

Bmboonie:

Hello everyone, just wondering if anyone else had this problem with installing the Rewards Programme?

When it was installed, after logging in as a user, all of the product pages disappeared, and we could not retrieve the home page. after logging out, it all came back to normal.

Any suggestions?

thanks

BMBoonie

I already anwered this in the PM you sent me.

All I can say is you didn't install the module right. Go back and check to make sure the admin and the custom folder names are change to the folder name you are using. If you install the module right there shouldn't be any errors.

19 Dec 2012, 1:10 AM
#2155
curlydan avatar

curlydan

New Zenner

Join Date:
Dec 2012
Posts:
14
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hello,

I have installed the rewards module and enabled it on the layout boxes controller. It is showing on my page fine and I have tested it through the checkout.

However, for some reason I cant seem to access this from my admin side:

6.) You can edit Global/Category/Product reward points using Admin->Catalog->Reward Points

7.) You can change the Reward Point configurations using Admin->Configuration->Reward Points

8.) You can set global and group Reward Point redeem ratios using Admin->Customer->Group Reward Redeem

9.) You can set and change earned and pending points for each customer using Admin->Customer->Reward Points

. Why can I not see these menus or edit the points ratios? Did I miss a file somewhere in the installation?

Thanks

19 Dec 2012, 12:08 PM
#2156
heresy_miniatures avatar

heresy_miniatures

New Zenner

Join Date:
Jul 2011
Posts:
59
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Same problem as Curlydan - I can't seem to access those options, they are missing from the Admin section. I've uploaded the files with proper 'CUSTOM' names for my folders and stuff, but a lot of missing bits - and if I try to install the Discounts module I get nothing - the sidebar that allows you to edit the options doesn't show up.

19 Dec 2012, 12:34 PM
#2157
heresy_miniatures avatar

heresy_miniatures

New Zenner

Join Date:
Jul 2011
Posts:
59
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Actually, never mind, I've reloaded everything from both the 'upgrade' options and the 'full install' again afterwards and it works now. Think I must have missed a folder or file somewhere, somehow.

19 Dec 2012, 5:57 PM
#2158
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Reward Points Module for ZC v13x

curlydan:

Hello,

I have installed the rewards module and enabled it on the layout boxes controller. It is showing on my page fine and I have tested it through the checkout.

However, for some reason I cant seem to access this from my admin side:

6.) You can edit Global/Category/Product reward points using Admin->Catalog->Reward Points

7.) You can change the Reward Point configurations using Admin->Configuration->Reward Points

8.) You can set global and group Reward Point redeem ratios using Admin->Customer->Group Reward Redeem

9.) You can set and change earned and pending points for each customer using Admin->Customer->Reward Points

. Why can I not see these menus or edit the points ratios? Did I miss a file somewhere in the installation?

Thanks

You have missed a folder or file somewhere. Go back and recheck that all files and folders were uploaded correctly, making sure you have renamed them to your custom folder name.

20 Dec 2012, 5:01 PM
#2159
curlydan avatar

curlydan

New Zenner

Join Date:
Dec 2012
Posts:
14
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

countrycharm:

You have missed a folder or file somewhere. Go back and recheck that all files and folders were uploaded correctly, making sure you have renamed them to your custom folder name.

Ok well I still havent been able to solve my problem. I have uninstalled all files and reinstalled them. I have access to

4.) Switch on the 'Shopping Cart with Rewards' sidebox using Admin->Tools->Layout Box Controller

4.1.) There is also a "Reward Points" sidebox which displays points in cart and points earned (if logged in)

5.) Install the Reward Point Order Total module using Admin->Modules->Order Total

5.1.) There is also a "Reward Points earned" module which displays the points earned at checkout

However, I still dont have access to any new categories from the admin drop down menus. Such as:

6.) You can edit Global/Category/Product reward points using Admin->Catalog->Reward Points

7.) You can change the Reward Point configurations using Admin->Configuration->Reward Points

8.) You can set global and group Reward Point redeem ratios using Admin->Customer->Group Reward Redeem

9.) You can set and change earned and pending points for each customer using Admin->Customer->Reward Points

Perhaps it is because I skipped this step? What does this step do/ how can I do this step?

3.2) If you use table prefixes in ZenCart you will need to manually rename 2 Reward Point Mod tables:

3.2.1.1 Rename 'yourprefix_reward_product_points' to 'yourprefix_reward_master'

3.2.1.2) Rename 'yourprefix_reward_point_history' to 'yourprefix_reward_status_track'

20 Dec 2012, 6:10 PM
#2160
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Reward Points Module for ZC v13x

curlydan:

Ok well I still havent been able to solve my problem. I have uninstalled all files and reinstalled them. I have access to

4.) Switch on the 'Shopping Cart with Rewards' sidebox using Admin->Tools->Layout Box Controller

4.1.) There is also a "Reward Points" sidebox which displays points in cart and points earned (if logged in)

5.) Install the Reward Point Order Total module using Admin->Modules->Order Total

5.1.) There is also a "Reward Points earned" module which displays the points earned at checkout

However, I still dont have access to any new categories from the admin drop down menus. Such as:

6.) You can edit Global/Category/Product reward points using Admin->Catalog->Reward Points

7.) You can change the Reward Point configurations using Admin->Configuration->Reward Points

8.) You can set global and group Reward Point redeem ratios using Admin->Customer->Group Reward Redeem

9.) You can set and change earned and pending points for each customer using Admin->Customer->Reward Points

Perhaps it is because I skipped this step? What does this step do/ how can I do this step?

3.2) If you use table prefixes in ZenCart you will need to manually rename 2 Reward Point Mod tables:

3.2.1.1 Rename 'yourprefix_reward_product_points' to 'yourprefix_reward_master'

3.2.1.2) Rename 'yourprefix_reward_point_history' to 'yourprefix_reward_status_track'

Sounds like you didn't Install the new.sql statement in your admin/tools/SQL Patches. You need to open the new.sql statement up in note pad and copy the contents and place it in Admin - Tools - Install SQL Patches

If you have already done that you need to run the uninstall.sql statement and then re-run the new.sql statement again.