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

Reward Points Module for ZC v13x

Locked

Views: 470,642

Results 721 to 740 of 2,476
This thread is locked. New replies are disabled.
29 Dec 2008, 10:38 PM
#721
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Reward Points Module for ZC v13x

trigi:

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:

if date(now) > date_of_last_valid_order+expiry_time then delete_points;

> 
> Sorry to be a bother, Crt

It's already there- Check 'Delete Old Reward Transactions Period' in the Reward Points admin.
29 Dec 2008, 10:40 PM
#722
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Reward Points Module for ZC v13x

trigi:

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

The rounding calculation changed when I moved it to using zen_round(). Set it to 0 and you will be right.

1 Jan 2009, 3:53 AM
#723
opengrave avatar

opengrave

New Zenner

Join Date:
Aug 2008
Posts:
17
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hi, I hate to be a bother.

I installed this mod, and am not having any luck in getting to work right.

The first thing I've noticed is that the only place in my admin that I can even find anything referring to this mod is configuration/reward points

When I go to it this error shows up when I click around on the options:

Fatal error: Call to undefined function SetRewardPointStateFunction() in /home/diviocom/public_html/elocin/configuration.php(192) : eval()'d code on line 1

Warning: call_user_func(UseRewardPointStateFunction) [function.call-user-func]: First argument is expected to be a valid callback in /home/diviocom/public_html/elocin/includes/functions/general.php on line 1538

I have noticed that on orders placed since installing the mod that customers are receiving reward points on their orders.

I'm really confused!

1 Jan 2009, 11:36 AM
#724
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Reward Points Module for ZC v13x

opengrave:

Hi, I hate to be a bother.

I installed this mod, and am not having any luck in getting to work right.

The first thing I've noticed is that the only place in my admin that I can even find anything referring to this mod is configuration/reward points

When I go to it this error shows up when I click around on the options:

Fatal error: Call to undefined function SetRewardPointStateFunction() in /home/diviocom/public_html/elocin/configuration.php(192) : eval()'d code on line 1

Warning: call_user_func(UseRewardPointStateFunction) [function.call-user-func]: First argument is expected to be a valid callback in /home/diviocom/public_html/elocin/includes/functions/general.php on line 1538

I have noticed that on orders placed since installing the mod that customers are receiving reward points on their orders.

I'm really confused!

Did you try the Reward Point Diagnostic? https://www.omnicia.com/rpd.zip

1 Jan 2009, 6:41 PM
#725
opengrave avatar

opengrave

New Zenner

Join Date:
Aug 2008
Posts:
17
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

hem:

Did you try the Reward Point Diagnostic? https://www.omnicia.com/rpd.zip

Ok, I ran this an fixed the few missing files.

However on the Diagnostic page I received this error:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/diviocom/public_html/rpd.php:5) in /home/diviocom/public_html/includes/functions/sessions.php on line 108

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/diviocom/public_html/rpd.php:5) in /home/diviocom/public_html/includes/functions/sessions.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at /home/diviocom/public_html/rpd.php:5) in /home/diviocom/public_html/includes/init_includes/init_templates.php on line 78

And I'm still receiving this error in confg/reward points:
Fatal error: Call to undefined function SetRewardPointStateFunction() in /home/diviocom/public_html/elocin/configuration.php(192) : eval()'d code on line 1

Warning: call_user_func(UseRewardPointStateFunction) [function.call-user-func]: First argument is expected to be a valid callback in /home/diviocom/public_html/elocin/includes/functions/general.php on line 1538

1 Jan 2009, 7:20 PM
#726
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Reward Points Module for ZC v13x

opengrave:

Ok, I ran this an fixed the few missing files.

However on the Diagnostic page I received this error:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/diviocom/public_html/rpd.php:5) in /home/diviocom/public_html/includes/functions/sessions.php on line 108

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/diviocom/public_html/rpd.php:5) in /home/diviocom/public_html/includes/functions/sessions.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at /home/diviocom/public_html/rpd.php:5) in /home/diviocom/public_html/includes/init_includes/init_templates.php on line 78

And I'm still receiving this error in confg/reward points:
Fatal error: Call to undefined function SetRewardPointStateFunction() in /home/diviocom/public_html/elocin/configuration.php(192) : eval()'d code on line 1

Warning: call_user_func(UseRewardPointStateFunction) [function.call-user-func]: First argument is expected to be a valid callback in /home/diviocom/public_html/elocin/includes/functions/general.php on line 1538

You have an empty first line somewhere in one of your ZenCart files. Check this article for info on how to fix this: https://www.zen-cart.com/tutorials/index.php?article=87

1 Jan 2009, 9:50 PM
#727
jean_bergeron avatar

jean_bergeron

New Zenner

Join Date:
Dec 2008
Posts:
2
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

HI Andrew,

I wish you an Happy New Year and want let you know how we appreciate your dedication to this module. May you have a Great Year.

Everything is working fine but i cannot have the points working within clients - rewards points in the backstore. The points are showing everywhere (even in the email to the customer) but I'm unable to see them appearing there, I'm able to give or take off points but the they don't automatically appear. :frusty:

I'm using credit cards and Invoice modules only. (No Paypal, No Google modules)

Any idea of what I'm missing ?

TIA

Jean Bergeron

2 Jan 2009, 6:47 AM
#728
evariety avatar

evariety

New Zenner

Join Date:
Apr 2008
Posts:
24
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Just wonder that is that we can change reward point to cash reward or not? Anybody done this b4?

3 Jan 2009, 1:34 AM
#729
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Reward Points Module for ZC v13x

evariety:

Just wonder that is that we can change reward point to cash reward or not? Anybody done this b4?

Already being looked into as a category that can be used for reward point only products, cash certs and charitable donations.

4 Jan 2009, 6:32 PM
#730
jb2233 avatar

jb2233

New Zenner

Join Date:
Jan 2009
Posts:
1
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hi Andrew,

I am new and quite rookie regarding SQL. I have a new -- and working -- installation of zen cart. What is the exact script that I need to type into the "Install SQL Patches" window in order to run the 'new.sql' file?

Thank you much
Jay

5 Jan 2009, 7:45 AM
#731
opengrave avatar

opengrave

New Zenner

Join Date:
Aug 2008
Posts:
17
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

hem:

You have an empty first line somewhere in one of your ZenCart files. Check this article for info on how to fix this: https://www.zen-cart.com/tutorials/index.php?article=87

I looked at this file and there are no extra lines.

If anyone that has set this up prior, I would be willing to pay to have my set up completed. The errors I'm receiving are all listed above. Please, PM me if you're willing.

5 Jan 2009, 10:52 AM
#732
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Reward Points Module for ZC v13x

jb2233:

Hi Andrew,

I am new and quite rookie regarding SQL. I have a new -- and working -- installation of zen cart. What is the exact script that I need to type into the "Install SQL Patches" window in order to run the 'new.sql' file?

Thank you much
Jay

Where it says "Upload file" click on the browse button and select the file from there.

6 Jan 2009, 2:42 AM
#733
mipavluk avatar

mipavluk

Zen Follower

Join Date:
Jun 2007
Location:
Posadas, Misiones, Argentina
Posts:
221
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hi Andrew

In Customers/Reward Points

I only can see my first 40 customers to edit it and give them manually their points.

If I make a search, for example, looking the customer 41, I can edit it, I obtain this 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 'AND status=0 ORDER BY date DESC LIMIT 12' at line 1
in:
[SELECT rewards_id, orders_id, date, reward_points, status FROM zen_reward_status_track WHERE customers_id= AND status=0 ORDER BY date DESC LIMIT 12;]
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 fields.

can you please help me?

thanks

6 Jan 2009, 10:03 AM
#734
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Reward Points Module for ZC v13x

mipavluk:

Hi Andrew

In Customers/Reward Points

I only can see my first 40 customers to edit it and give them manually their points.

If I make a search, for example, looking the customer 41, I can edit it, I obtain this 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 'AND status=0 ORDER BY date DESC LIMIT 12' at line 1
in:
[SELECT rewards_id, orders_id, date, reward_points, status FROM zen_reward_status_track WHERE customers_id= AND status=0 ORDER BY date DESC LIMIT 12;]
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 fields.

can you please help me?

thanks

That issue was sorted out in v1.22- http://www.omnicia.com/Zencart%20Reward%20Points%20Module.zip

6 Jan 2009, 6:08 PM
#735
mipavluk avatar

mipavluk

Zen Follower

Join Date:
Jun 2007
Location:
Posadas, Misiones, Argentina
Posts:
221
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I need execute the update.sql
and update all the files?

6 Jan 2009, 11:10 PM
#736
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Reward Points Module for ZC v13x

mipavluk:

I need execute the update.sql
and update all the files?

Look for the previous post here that just shows the update and execute that.

7 Jan 2009, 5:35 AM
#737
zhengda avatar

zhengda

New Zenner

Join Date:
Jan 2009
Posts:
2
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hi Hem.
I am new to zencart and i really like this module of yours. However i seems to be unable to install this module into my zencart. So i was wondering is there any specific steps to install this module successfully? Help would be greatly appreciated. Thank you

7 Jan 2009, 2:04 PM
#738
djjase avatar

djjase

New Zenner

Join Date:
Jun 2008
Posts:
29
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hi,

I have checked every where - the php files have the correct wording, I have copied all the files over again and I still get this.

Reward Points You may click to redeem any collected Reward Points. Your redeemed points will be applied to the total and reflected in your cart after to click continue.

Current Reward Points:
90 CUSTOMER_EARNED_POINT_TAG
Minimum required to redeem:
1000 MINIMUM_POINT_LEVEL_TAG

Value of Redeemed Reward Points:
AU$0.90

Redeem Reward Points:
Not enough points to redeem.

This is from the reward_points.php file:

<?php define('BOX_REWARD_POINTS', 'Reward Points'); define('PRODUCT_REWARD_POINT_TAG', 'reward points'); define('REWARD_POINTS_IN_CART_TAG', 'reward points in cart'); define('CUSTOMER_EARNED_POINT_TAG', 'points earned'); define('CUSTOMER_PENDING_POINT_TAG', 'points pending'); define('MINIMUM_POINT_LEVEL_TAG', 'points minimum'); define('MAXIMUM_POINT_LEVEL_TAG', 'points maximum'); define('CUSTOMER_TOTAL_POINT_TAG', 'points total'); define('NO_REWARD_POINTS_IN_CART_TAG','No points earned yet on current order.'); define('CUSTOMER_NOT_LOGGED_IN_TAG','Log in to see how many reward points you have already earned'); define('REWARD_POINT_TITLE','Reward Points'); define('REWARD_POINT_PROMPT','Total Reward Points: '); ?>
7 Jan 2009, 11:21 PM
#739
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Reward Points Module for ZC v13x

djjase:

Hi,

I have checked every where - the php files have the correct wording, I have copied all the files over again and I still get this.

Reward Points You may click to redeem any collected Reward Points. Your redeemed points will be applied to the total and reflected in your cart after to click continue.

Current Reward Points:
90 CUSTOMER_EARNED_POINT_TAG
Minimum required to redeem:
1000 MINIMUM_POINT_LEVEL_TAG

Value of Redeemed Reward Points:
AU$0.90

Redeem Reward Points:
Not enough points to redeem.

This is from the reward_points.php file:

<?php define('BOX_REWARD_POINTS', 'Reward Points'); define('PRODUCT_REWARD_POINT_TAG', 'reward points'); define('REWARD_POINTS_IN_CART_TAG', 'reward points in cart'); define('CUSTOMER_EARNED_POINT_TAG', 'points earned'); define('CUSTOMER_PENDING_POINT_TAG', 'points pending'); define('MINIMUM_POINT_LEVEL_TAG', 'points minimum'); define('MAXIMUM_POINT_LEVEL_TAG', 'points maximum'); define('CUSTOMER_TOTAL_POINT_TAG', 'points total'); define('NO_REWARD_POINTS_IN_CART_TAG','No points earned yet on current order.'); define('CUSTOMER_NOT_LOGGED_IN_TAG','Log in to see how many reward points you have already earned'); define('REWARD_POINT_TITLE','Reward Points'); define('REWARD_POINT_PROMPT','Total Reward Points: '); ?>

Did you try the Reward Point Diagnostic? It would appear that the file is in the wrong location.

7 Jan 2009, 11:21 PM
#740
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Reward Points Module for ZC v13x

zhengda:

Hi Hem.
I am new to zencart and i really like this module of yours. However i seems to be unable to install this module into my zencart. So i was wondering is there any specific steps to install this module successfully? Help would be greatly appreciated. Thank you

Just follow the steps in the readme.txt file- It's in the root of the zip file.