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

Reward Points Module for ZC v13x

Locked

Views: 470,580

Results 121 to 140 of 2,476
This thread is locked. New replies are disabled.
24 Apr 2008, 11:46
#121
hem avatar

hem

Totally Zenned

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

Reward Points Module for ZC v13x

walkerhxg:

Hi all,

  Whatever  I do , it always gets :

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 'SELECT SUM(reward_points) FROM reward_status_track ph WHERE p
in:
[UPDATE reward_customer_points rc SET pending_points=pending_points-IFNULL((SELECT SUM(reward_points) FROM reward_status_track ph WHERE ph.customers_id=rc.customers_id AND ph.status=0 AND ph.orders_id NOT IN (SELECT orders_id FROM orders)),0);]
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.

Please help me , thx in advance.

PS: How can I uninstall the sql completely?

  1. Download and install the latest version.

  2. Check http://www.zen-cart.com/forum/showpost.php?p=543257&postcount=19

24 Apr 2008, 11:50
#122
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

Mike_Dean:

Hi Andrew,

RP was working ok, then for some reason I am now having an issue.

I have put points onto a customers account, but in Admin they show up as Reward Points Earned, but as you can seem, they don't show up in the Value of Earned section.

Value of Pending: $0.00
Reward Points Earned: 1000
Value of Earned: $0.00

When I go through the checkout process, its shows as:

Current Reward Points:1000 points earned
Value of Redeemed Reward Points:$0.00
Redeem Reward Points: (is un checked)

If I tick the checkbox, then continue to process the order, the order total amount does not get adjusted,

*Sub-Total: $175.50

AustPost (Parcel Post - 4 days Estimated Delivery Time)): $10.50

GST: $16.90

Value of Redeemed Reward Points: -$0.00

Total: $186.00

Reward Points earned: 160*

Yet, when I go back into Admin, the points have been deducted ?????

*Value of Pending: $0.00
Reward Points Earned: 160
Value of Earned: $0.00 *

I've re-installed the mod and re-tried and its the same

Your redeem ratio was set to 0- re-installing the mod just reset the ratio back to the default (0.01). And yes the points will be removed from the earned as you had ticked the box.

24 Apr 2008, 12:25
#123
mike_dean avatar

mike_dean

Totally Zenned

Join Date:
Feb 2006
Location:
Central Coast, NSW, Australia
Posts:
531
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

hem:

Ah- Now I get you. So it would mean an addition to the Reward Points configuration and some method of telling the customer that they must spend at least X amount before they can redeem their points. I suppose this should go in the reward point sidebox.

Getting back to this one.

Is this something you think you could add Andrew, and how long would it take..?

I'm thinking of hanging on until this option becomes available (if possible)

Thanks for the wonderful support and great Mod..

24 Apr 2008, 12:29
#124
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

Mike_Dean:

Getting back to this one.

Is this something you think you could add Andrew, and how long would it take..?

I'm thinking of hanging on until this option becomes available (if possible)

Thanks for the wonderful support and great Mod..

I'm adding it at the moment (it's a lot easier than trying to track down Rasyrs PayPal issue :smile:). Should have something later this afternoon.

24 Apr 2008, 12:32
#125
mike_dean avatar

mike_dean

Totally Zenned

Join Date:
Feb 2006
Location:
Central Coast, NSW, Australia
Posts:
531
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

hem:

I'm adding it at the moment (it's a lot easier than trying to track down Rasyrs PayPal issue :smile:). Should have something later this afternoon.

Wow.... Thanks heaps... :clap:

I'm yet to try PayPal. as I have not installed the Paypal sandbox so I hope I dont have the same issues..!! :unsure::unsure:

24 Apr 2008, 13:47
#126
mike_dean avatar

mike_dean

Totally Zenned

Join Date:
Feb 2006
Location:
Central Coast, NSW, Australia
Posts:
531
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

hem:

Your redeem ratio was set to 0- re-installing the mod just reset the ratio back to the default (0.01). And yes the points will be removed from the earned as you had ticked the box.

Ok.. I clearly have a gremiln.. I have not touched or installed anything and now I have this issue again. (Rapidly removing hair..!!!)

I checked the ot_rewards_points and nothing seems to be amiss.

I even copied the original across and no change..

Where do I set (re-set) the ratio ?

24 Apr 2008, 14:44
#127
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

Right- new version has been sent off to the contribs:

v1.11a
Added an uninstall.sql script to remove Reward Point sql items.
Added Configuration item to set minimum order value to redeem points against.
Added Configuration item to allow redeem of RP against Subtotal or Total (inc. shipping)
Added Reward Points on Attribute Price for products that are Priced By Attribute

24 Apr 2008, 14:46
#128
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

Mike_Dean:

Ok.. I clearly have a gremiln.. I have not touched or installed anything and now I have this issue again. (Rapidly removing hair..!!!)

I checked the ot_rewards_points and nothing seems to be amiss.

I even copied the original across and no change..

Where do I set (re-set) the ratio ?

Admin->Customers->Group Reward Points. Global Redeem is on the top right hand side.

24 Apr 2008, 14:49
#129
mike_dean avatar

mike_dean

Totally Zenned

Join Date:
Feb 2006
Location:
Central Coast, NSW, Australia
Posts:
531
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

hem:

Admin->Customers->Group Reward Points. Global Redeem is on the top right hand side.

More brownie points to you..

I wonder whyt it re-set it self..?? :unsure:

Ok will wait patiently for the latest version to upload to contribs.. :smile:

24 Apr 2008, 14:49
#130
walkerhxg avatar

walkerhxg

New Zenner

Join Date:
Mar 2008
Posts:
9
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hi hem,

Thank you sooooo much!

BUT

I have done what you said again and again. But it still doesn't work. :frusty:

( zen-cart1.3.8+MySQL 4.0.27-log+PHP4.4.7 )

I installed the 'new.sql' and got this:

17 statements processed.
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
Note: 10 statements ignored. See "upgrade_exceptions" table for additional details.

I clicked "Layout Box Controller" and got :

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 'SELECT SUM(reward_points) FROM reward_status_track ph WHERE p
in:
[UPDATE reward_customer_points rc SET pending_points=pending_points-IFNULL((SELECT SUM(reward_points) FROM reward_status_track ph WHERE ph.customers_id=rc.customers_id AND ph.status=0 AND ph.orders_id NOT IN (SELECT orders_id FROM orders)),0);]
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.

24 Apr 2008, 21:45
#131
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

walkerhxg:

Hi hem,

Thank you sooooo much!

BUT

I have done what you said again and again. But it still doesn't work. :frusty:

( zen-cart1.3.8+MySQL 4.0.27-log+PHP4.4.7 )

I installed the 'new.sql' and got this:

17 statements processed.
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
Note: 10 statements ignored. See "upgrade_exceptions" table for additional details.

I clicked "Layout Box Controller" and got :

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 'SELECT SUM(reward_points) FROM reward_status_track ph WHERE p
in:
[UPDATE reward_customer_points rc SET pending_points=pending_points-IFNULL((SELECT SUM(reward_points) FROM reward_status_track ph WHERE ph.customers_id=rc.customers_id AND ph.status=0 AND ph.orders_id NOT IN (SELECT orders_id FROM orders)),0);]
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.

You can ignore the errors- they just mean that you've already installed the mod. Have you downloaded the latest version of the mod??? It has code that by-passes the error you are seeing.

25 Apr 2008, 02:00
#132
walkerhxg avatar

walkerhxg

New Zenner

Join Date:
Mar 2008
Posts:
9
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Yes,I have installed "Reward Point Full Suite1.10C" and did what you said again and again. But it still doesn't work.

Maybe "reward_points_functions.php" has bug?

I would be crazy :frusty:

25 Apr 2008, 07:54
#133
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

walkerhxg:

Yes,I have installed "Reward Point Full Suite1.10C" and did what you said again and again. But it still doesn't work.

Maybe "reward_points_functions.php" has bug?

I would be crazy :frusty:

Can you confirm that you have a MySQL table called YOURPREFIX_reward_status_track on your ZenCart database.

25 Apr 2008, 08:29
#134
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

hem:

Can you confirm that you have a MySQL table called YOURPREFIX_reward_status_track on your ZenCart database.

Ah- just copped it- you need at least MySQL v4.2 to run this mod.

25 Apr 2008, 09:45
#135
nullmind avatar

nullmind

Zen Follower

Join Date:
Jul 2007
Posts:
129
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

hem:

It's already done automatically by the syncing code.

Are you using simple or advanced Reward Point Status Track???

Advanced ..

26 Apr 2008, 18:27
#136
sutikah1 avatar

sutikah1

New Zenner

Join Date:
Jan 2008
Location:
Scotland
Posts:
33
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I followed all the installation instructions to the letter but in admin > configuration > reward points I only have the heading. None of the configuration options are there.

Any thoughts?

26 Apr 2008, 19:34
#137
rasyr avatar

rasyr

Zen Follower

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

Re: Reward Points Module for ZC v13x

sutikah1:

I followed all the installation instructions to the letter but in admin > configuration > reward points I only have the heading. None of the configuration options are there.

Any thoughts?

Something went amiss with the sql file then. You are missing the entries that were supposed to be placed in the Configuration Group table.

27 Apr 2008, 11:04
#138
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Thanks for this incredible add-on!

I can't quite tell from previous posts and the Readme: Once installed is this module globally on for everyone or can I add customers individually? If it is possible, I would prefer it be a program that a customer signs up for.

Thanks!

27 Apr 2008, 12:34
#139
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hi again - What is the purpose of the Group Reward Points Redeem?

27 Apr 2008, 12:40
#140
rasyr avatar

rasyr

Zen Follower

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

Re: Reward Points Module for ZC v13x

MeltDown:

Thanks for this incredible add-on!

I can't quite tell from previous posts and the Readme: Once installed is this module globally on for everyone or can I add customers individually? If it is possible, I would prefer it be a program that a customer signs up for.

Thanks!

Looks like you found your own answer to the question.

If you go to the Group Rewards Redeem, you can set a Redeem ratio for the entire store (i.e. you can set it to zero.

You can also set the redeem ration for special groups as well.

I don't think that there is any way to turn off the award of points to everybody, but you can set it so that they cannot redeem them for anything unless they are part of a group.