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

Reward Points Module for ZC v13x

Locked

Views: 470,586

Results 301 to 320 of 2,476
This thread is locked. New replies are disabled.
2 Jul 2008, 11:02 PM
#301
nullmind avatar

nullmind

Zen Follower

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

Reward Points Module for ZC v13x

Hello

Hope you can help, I have been using this mod for months now, worked great .. but I decided now to upgrade to the latest version, as I need the "Sunrise Period"

But now I am having a problem :dontgetit

When I go to "Customers -> Reward Points" I get

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(rp.reward_points) FROM reward_status_track rp WHERE cp.customers_id=r' at line 1
in:
[UPDATE reward_customer_points cp, reward_status_track rp SET cp.reward_points=cp.reward_points+IFNULL(SELECT SUM(rp.reward_points) FROM reward_status_track rp WHERE cp.customers_id=rp.customers_id AND rp.status='0' AND rp.dateIf 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.I use MySql 5.0.51

Can you help ? :cry:

PS - Also, in order to have the points show in the product_display_info I had to revert tpl_product_reward_points to

<?php /** * Module Template * * @package templateSystem * @copyright Copyright 2008 Andrew Moore * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ echo (int)GetRewardPoints($_GET['products_id']).' '.PRODUCT_REWARD_POINT_TAG; ?>

or it wont show it.. (on the product display)

3 Jul 2008, 7:36 AM
#302
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

NullMind:

Hello

Hope you can help, I have been using this mod for months now, worked great .. but I decided now to upgrade to the latest version, as I need the "Sunrise Period"

Which version did you upgrade from??? Theres been a couple of table name changes taht might be causing your problem.

3 Jul 2008, 7:38 AM
#303
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

zafer:

I installed latest reward points , with updated update.sql file

still error after loading sql:

Fatal error: Call to a member function add() on a non-object in /home/pillownp/public_html/admin/sqlpatch.php on line 211

Please help

Which version of ZenCart are you running?

3 Jul 2008, 9:45 AM
#304
zafer avatar

zafer

New Zenner

Join Date:
Jan 2008
Posts:
50
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

hem:

Which version of ZenCart are you running?

I am running 1.3.8a from the start. I upgraded from rewards 1.11a

Also my checkout is now a blank screen. When I debug the error is:

PHP Fatal error: Cannot redeclare class ot_reward_points in /home/pillownp/public_html/includes/modules/order_total/ot_reward_points.php on line 23

Thank you for your help

3 Jul 2008, 12:02 PM
#305
nullmind avatar

nullmind

Zen Follower

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

Re: Reward Points Module for ZC v13x

hem:

Which version did you upgrade from??? Theres been a couple of table name changes taht might be causing your problem.

1.10b I believe :unsure:

what do I need to do ?

3 Jul 2008, 2:04 PM
#306
burgundy avatar

burgundy

New Zenner

Join Date:
Feb 2008
Location:
Ontario, Canada
Posts:
15
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hello!

I am getting the same error message when I try to go to Customers --> Reward Points in admin:

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(rp.reward_points) FROM reward_status_track rp WHERE cp.customers_id=r' at line 1
in:
[UPDATE reward_customer_points cp, reward_status_track rp SET cp.reward_points=cp.reward_points+IFNULL(SELECT SUM(rp.reward_points) FROM reward_status_track rp WHERE cp.customers_id=rp.customers_id AND rp.status='0' AND rp.dateIf 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.

I am using mysql 5.0 and Zen Cart 1.3.8a. I have a fresh install of Reward Points Module. Everything else appears to be working fine.

3 Jul 2008, 7:44 PM
#307
zafer avatar

zafer

New Zenner

Join Date:
Jan 2008
Posts:
50
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

zafer:

I am running 1.3.8a from the start. I upgraded from rewards 1.11a

Also my checkout is now a blank screen. When I debug the error is:

PHP Fatal error: Cannot redeclare class ot_reward_points in /home/pillownp/public_html/includes/modules/order_total/ot_reward_points.php on line 23

Thank you for your help

Shall I uninstall sql? Please advise

3 Jul 2008, 9:12 PM
#308
kenwahl avatar

kenwahl

New Zenner

Join Date:
Feb 2008
Posts:
32
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

zafer:

Shall I uninstall sql? Please advise

Something I would try if you haven't already is to go to Modules - Order Total on admin screen. Select remove for Rewards Points & Reward Points earned. Then select Install for both. If the Module changed it may need reinstalled in this fashion.

Ken

5 Jul 2008, 8:19 PM
#309
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

NullMind:

1.10b I believe :unsure:

what do I need to do ?

Do you have phpmyadmin???

If so check you have the following tables:

reward_customer_points
reward_master
reward_status_track

If you use a prefix then look of the same tables preceded by YOURPREFIX_

5 Jul 2008, 9:03 PM
#310
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Reward Points Module for ZC v13x

kenwahl:

I looked at that one and from what I remember.... It didn't play well with Google Checkout or items with attributes. It also was set up to only work with a global point structure by a percentage of the sale( All items get same points). It also displays in Dollars not points so if a product gets 10 points with this mod that one may display $.05 for that one depending what they are worth. I personally like it to show points rather that what they are worth on the product page. That mod has a lot less options as to how points are awarded and how they are used.

Hope this helps a little

Ken

Thanks for the clarification. I will give this a go on our test site.

6 Jul 2008, 6:35 PM
#311
nullmind avatar

nullmind

Zen Follower

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

Re: Reward Points Module for ZC v13x

hem:

Do you have phpmyadmin???

If so check you have the following tables:

reward_customer_points
reward_master
reward_status_track

If you use a prefix then look of the same tables preceded by YOURPREFIX_

I have the following

reviews_description
reward_customer_points
reward_master
reward_point_history
reward_status_track

7 Jul 2008, 1:09 PM
#312
car86l avatar

car86l

New Zenner

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

Re: Reward Points Module for ZC v13x

I've just upgraded to the latest version that i read has fixed attribute handling.

however i'm still having a BIG issue.

I am using another contributions to enable users to set the price of the product.

now the shopping cart sees a total and everything works right, except 0 reward points are awarded.

http://www.diversitygifts.com.au/index.php?main_page=product_info&cPath=9_34&products_id=1
**
EDIT i changed the value of an attribute and now it gives just the base price. It may be a problem with how the other contribution works.

7 Jul 2008, 4:01 PM
#313
burgundy avatar

burgundy

New Zenner

Join Date:
Feb 2008
Location:
Ontario, Canada
Posts:
15
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

burgundy:

Hello!

I am getting the same error message when I try to go to Customers --> Reward Points in admin:

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(rp.reward_points) FROM reward_status_track rp WHERE cp.customers_id=r' at line 1
in:
[UPDATE reward_customer_points cp, reward_status_track rp SET cp.reward_points=cp.reward_points+IFNULL(SELECT SUM(rp.reward_points) FROM reward_status_track rp WHERE cp.customers_id=rp.customers_id AND rp.status='0' AND rp.dateIf 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.

I am using mysql 5.0 and Zen Cart 1.3.8a. I have a fresh install of Reward Points Module. Everything else appears to be working fine.

Anyone have any ideas for me on what the problem can be? My install was a brand new installation of the contribution, I'm not updating from a previous version. I've checked the tables and they are there. Thanks

8 Jul 2008, 6:46 PM
#314
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Does this play well with the other modules yet or is there still come problems?

Thanks!

9 Jul 2008, 1:45 AM
#315
ladyink avatar

ladyink

Zen Follower

Join Date:
Oct 2007
Posts:
105
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

burgundy:

Anyone have any ideas for me on what the problem can be? My install was a brand new installation of the contribution, I'm not updating from a previous version. I've checked the tables and they are there. Thanks

I had this same error show up and I got lucky because the only setting that I changed was the "sunrise period" in the configuration- I had made it 10. I changed it back to 0 and it works fine now. Of course, I don't know how to add a Sunrise period but at least I don't have the error!!

Hope this helps???
Nancy

9 Jul 2008, 9:00 AM
#316
nullmind avatar

nullmind

Zen Follower

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

Re: Reward Points Module for ZC v13x

ladyink:

I had this same error show up and I got lucky because the only setting that I changed was the "sunrise period" in the configuration- I had made it 10. I changed it back to 0 and it works fine now. Of course, I don't know how to add a Sunrise period but at least I don't have the error!!

Hope this helps???
Nancy

Hi Nancy

You are correct, just put the sunrise period back to 0 in the config and the error went away

but like you, I need the sunrise period :(

9 Jul 2008, 12:25 PM
#317
fiji avatar

fiji

New Zenner

Join Date:
Oct 2007
Posts:
42
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I found a problem.
If use "Super Orders" to change order status, the pending points won't add to earn point.

10 Jul 2008, 6:14 AM
#318
burgundy avatar

burgundy

New Zenner

Join Date:
Feb 2008
Location:
Ontario, Canada
Posts:
15
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Thank you Ladyink and Nullmind. I set the sunrise period to 0 and that did the trick. However like you, I also need a sunrise period. And I tried setting it back to see if it worked on the off chance. It didn't.

Any of the wonderful resident coders have a fix for this? I'm just a coding noob, I wouldn't have the faintest idea what to do.

Or is there some other setting that needs to be tweaked in order for it to work? Maybe there's another switch we need to flip?

13 Jul 2008, 9:27 PM
#319
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

burgundy:

Thank you Ladyink and Nullmind. I set the sunrise period to 0 and that did the trick. However like you, I also need a sunrise period. And I tried setting it back to see if it worked on the off chance. It didn't.

Any of the wonderful resident coders have a fix for this? I'm just a coding noob, I wouldn't have the faintest idea what to do.

Or is there some other setting that needs to be tweaked in order for it to work? Maybe there's another switch we need to flip?

I'll have a look in the morning.

13 Jul 2008, 10:26 PM
#320
nazarhookah avatar

nazarhookah

New Zenner

Join Date:
Nov 2007
Posts:
12
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

So I just installed this mod and I have a few problems, and yes...I am kind of a newbie.

I copied all the files to the folders, installed SQL, and at first when I went to turn the Order Total portion "on" there was an error....So I tried uninstalling the SQL....it didnt work

So now I receive this error :
Fatal error: Call to a member function format() on a non-object in /home/nazarhoo/public_html/includes/modules/order_total/ot_gv.php on line 49

That is under the Order Total in Admin.

What do I have to do to get this mod working smoothly???

Thank You
-Mahir