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 701 to 720 of 2,476
This thread is locked. New replies are disabled.
26 Dec 2008, 11:06 PM
#701
4thwave avatar

4thwave

Zen Follower

Join Date:
Sep 2007
Posts:
125
Plugin Contributions:
0

Reward Points Module for ZC v13x

Thank's Crt!
Sorry for the "newby" questions. Do you mean on the Admin>Layout Boxes Contoller?
Or are you referring to the Admin folder in the zen cart root?

A

27 Dec 2008, 12:08 AM
#702
4thwave avatar

4thwave

Zen Follower

Join Date:
Sep 2007
Posts:
125
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hey all,
I am getting this message when I go to Admin>Catalog>Reward Points:

"Fatal error: Call to undefined function: getrewardpointrecord() in /home/content/w/i/t/filefolder/html/mystore/admin/reward_points.php on line 125"

That is all that is there!

How do I fix this?:unsure:

27 Dec 2008, 9:21 AM
#703
trigi avatar

trigi

New Zenner

Join Date:
Dec 2008
Location:
sLOVEnia
Posts:
18
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I meant the Admin>Layout Boxes Contoller :smile:

For the other problem you're experiencing, I do not have an exact answer, but the first thing I would check is if the functions are in their place, there must be one file in the admin/includes/functions/extra_functions and one in the includes/functions/extra_functions... as this happens in the admin section it is most possible that the admin functions are missing.

Bye, Crt

27 Dec 2008, 4:39 PM
#704
4thwave avatar

4thwave

Zen Follower

Join Date:
Sep 2007
Posts:
125
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Thank's CRT,

I will take a look as I would love to use this mod.

A

27 Dec 2008, 4:48 PM
#705
4thwave avatar

4thwave

Zen Follower

Join Date:
Sep 2007
Posts:
125
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Muchas Gracias!!!
I looked into the two folders and found that for some reason the functions files were swapped which of course would result in the wrong file being called.

I am sure that I screwed it up, just not sure how. ;-)

Thank you for your willingness to help. May your tribe increase!


I didn't do it, nobody saw me do it, can't prove anything (Bart Simpson)

27 Dec 2008, 6:27 PM
#706
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

4thwave:

Hey all,
I am getting this message when I go to Admin>Catalog>Reward Points:

"Fatal error: Call to undefined function: getrewardpointrecord() in /home/content/w/i/t/filefolder/html/mystore/admin/reward_points.php on line 125"

That is all that is there!

How do I fix this?:unsure:

Download the Reward Point Diagnostic- It's here: http://www.omnicia.com/rpd.zip

Upload the two files to the root of the store and then stick "www.your_store_address.com/rpd.php" into the address bar of your browser.

27 Dec 2008, 6:37 PM
#707
trigi avatar

trigi

New Zenner

Join Date:
Dec 2008
Location:
sLOVEnia
Posts:
18
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Sorry to be a nag :blush:

trigi:

hem: I really must tell you that your mod is excelent and thank you for all the work you have done on it. I hope you had a merry Xmas, you deserved it :D

I've read many pages in this thread, but couldn't find this question. I'm using ZenCart 1.3.6. (done some heavy modification on it and don't have that much time to migrate it to 1.3.8) and managed to install the mod. It shows the points and everything looks ok, the admin section works perfectly, I can assign points and everything. There is just one problem - customer doesn't get the points after making an order, neither pending or rewarded. I'm not using paypal IPN, it was tested on COD and on Invoice, I also use another payment method called Moneta, but first we have to make it work on COD :D Anybody have any idea why this happens?

Bye, Crt

27 Dec 2008, 6:52 PM
#708
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:

Sorry to be a nag :blush:

Are the points showing up in Pending? What version are you using?

27 Dec 2008, 6:57 PM
#709
trigi avatar

trigi

New Zenner

Join Date:
Dec 2008
Location:
sLOVEnia
Posts:
18
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

No... the points are not showing up in pending. I can assign them manualy. They show up in cart and in the order total, they also show up in product info.

I'm using 1.21 ... I will also try my luck with 1.22.

Bye, Crt

28 Dec 2008, 6:14 AM
#710
4thwave avatar

4thwave

Zen Follower

Join Date:
Sep 2007
Posts:
125
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hello All,
I have the mod installed now and it shows up in the Layout Box Controller. When I switch the sidebox to "ON" and log in on the site this is what shows up in the box. Could it be a file loaded into the wrong folder so that it becomes an error when called???

      **BOX_REWARD_POINTS

NO_REWARD_POINTS_IN_CART_TAG
0 CUSTOMER_EARNED_POINT_TAG
0 CUSTOMER_PENDING_POINT_TAG**

I have not seen the mod in action but this doesn't look correct.:huh:


I didn't do it, nobody saw me do it, can't prove anything!
(B Simpson)

28 Dec 2008, 7:45 AM
#711
trigi avatar

trigi

New Zenner

Join Date:
Dec 2008
Location:
sLOVEnia
Posts:
18
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

If you mixed up the function files, maybe you also mixed up the language files. Because this happens when a language file (or at least text variable in it) is missing. In that case, zencart prints the name of the variable that is missing.

Bye, Crt

28 Dec 2008, 5:22 PM
#712
4thwave avatar

4thwave

Zen Follower

Join Date:
Sep 2007
Posts:
125
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Yes indeed!
That was the cause of the issue. I reloaded the language files and all is right in the universe.
Now I have to work on set up. If I have not said it yet **thank you!!! **It is folks like you that make all of this work.
I hope to be in a position at some point to know this stuff well enough to in turn help someone else.

A

28 Dec 2008, 7:12 PM
#713
trigi avatar

trigi

New Zenner

Join Date:
Dec 2008
Location:
sLOVEnia
Posts:
18
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

OK, since I had some time (holidays and all) I upgraded my store to 1.3.8. and the module is now working.

But I have another problem now. When a customer chooses to redeem the points, he doesn't get any (or very little) points on that order, why? I installed 1.22.

Thanks in advance, Crt

28 Dec 2008, 7:52 PM
#714
trigi avatar

trigi

New Zenner

Join Date:
Dec 2008
Location:
sLOVEnia
Posts:
18
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

To Correct Myself: the script works fine, it gives the apropriate amount of points, and the reward points sidebox shows the correct amount, but the order total shows up wrong.

OK, so we have a minor cosmetical glitch :D

Bye, Crt

28 Dec 2008, 8:09 PM
#715
trigi avatar

trigi

New Zenner

Join Date:
Dec 2008
Location:
sLOVEnia
Posts:
18
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

OK, I fixed it (I think)

In file ot_reward_points_display.php (order total modules)

There was a code:

if(isset($_SESSION['redeem_value']))
		{
			$redeem_ratio=GetRedeemRatio($_SESSION['customer_id']);
			$reward_points=$reward_points/$redeem_ratio;
			$reward_points=$reward_points-$_SESSION['redeem_value'];
			$reward_points=$reward_points*$redeem_ratio;
		}

I commented the line that didn't seem right and voila:

if(isset($_SESSION['redeem_value']))
		{
			$redeem_ratio=GetRedeemRatio($_SESSION['customer_id']);
			$reward_points=$reward_points/$redeem_ratio;
			[B]//$reward_points=$reward_points-$_SESSION['redeem_value'];[/B]
			$reward_points=$reward_points*$redeem_ratio;
		}
28 Dec 2008, 9:49 PM
#716
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 fixed it (I think)

In file ot_reward_points_display.php (order total modules)

There was a code:

if(isset($_SESSION['redeem_value']))
{
$redeem_ratio=GetRedeemRatio($_SESSION['customer_id']);
$reward_points=$reward_points/$redeem_ratio;
$reward_points=$reward_points-$_SESSION['redeem_value'];
$reward_points=$reward_points*$redeem_ratio;
}

> 
> I commented the line that didn't seem right and voila:
> ```
if(isset($_SESSION['redeem_value']))
		{
			$redeem_ratio=GetRedeemRatio($_SESSION['customer_id']);
			$reward_points=$reward_points/$redeem_ratio;
			[B]//$reward_points=$reward_points-$_SESSION['redeem_value'];[/B]
			$reward_points=$reward_points*$redeem_ratio;
		}

That code was in place to stop customers from receiving points from orders where points were redeemed.

29 Dec 2008, 8:12 PM
#717
trigi avatar

trigi

New Zenner

Join Date:
Dec 2008
Location:
sLOVEnia
Posts:
18
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

OK, then it's a thing of an opinion.
In my opinion it's fair, if they earned them, they can use them freely and not be "punished" for using them.

Now I have a question, why do we have rounding of points if only full points can be awarded?

Thanks, Crt

29 Dec 2008, 8:29 PM
#718
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, then it's a thing of an opinion.
In my opinion it's fair, if they earned them, they can use them freely and not be "punished" for using them.

Now I have a question, why do we have rounding of points if only full points can be awarded?

Thanks, Crt

The rounding makes the difference between awarding 9 reward points or 10 reward points on an item costing 9.99.

29 Dec 2008, 8:33 PM
#719
trigi avatar

trigi

New Zenner

Join Date:
Dec 2008
Location:
sLOVEnia
Posts:
18
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

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

29 Dec 2008, 8:39 PM
#720
trigi avatar

trigi

New Zenner

Join Date:
Dec 2008
Location:
sLOVEnia
Posts:
18
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

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