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

Reward Points Module for ZC v13x

Locked

Views: 470,668

Results 1,481 to 1,500 of 2,476
This thread is locked. New replies are disabled.
6 Jul 2010, 11:40 AM
#1481
hem avatar

hem

Totally Zenned

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

Reward Points Module for ZC v13x

ardhill:

Hi

Where does the link in the "Admin>Configuation>Reward Points" come from?

I have a spare link in my config menu, and I was wondering how to get rid of it. The url is configuration.php?gID=31 if that means anything.

That link goes to a basically blank page (I gues it is from a previous version). It isn't a problem as such, I just wanted to tidy things up a bit and remove the link/code/file/database entry or whatever it is.

Thanks

Paul

there's an SQL patch included in the mod zipfile called remove_multiple_config_items.sql. Just run that under Config->Tools->SQL Patches.

6 Jul 2010, 11:43 AM
#1482
ardhill avatar

ardhill

New Zenner

Join Date:
Dec 2007
Location:
Belfast, N.Ireland
Posts:
99
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

hem:

there's an SQL patch included in the mod zipfile called remove_multiple_config_items.sql. Just run that under Config->Tools->SQL Patches.

Thanks Hem

6 Jul 2010, 4:10 PM
#1483
damiantaylor avatar

damiantaylor

Zen Follower

Join Date:
Aug 2009
Posts:
244
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Thanks Andrew,
That lastest fix works perfectly!

You can now allow your customer to enter the number of points they wish to redeem :clap:

7 Jul 2010, 9:21 AM
#1484
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

Now- does anybody else have any outstanding issues???

8 Jul 2010, 12:35 AM
#1485
imagino avatar

imagino

New Zenner

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

Re: Reward Points Module for ZC v13x

imagino:

How to AUTOMATICALLY subtract reward points when customer cancelled his order?

Thank you.

Hem, am I missing some option, or it is not possible right now?

Thank you.

8 Jul 2010, 8:17 AM
#1486
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

imagino:

Hem, am I missing some option, or it is not possible right now?

Thank you.

The points will be removed if they are still pending. If you have moved the points to earned then you will need to manually remove them.

8 Jul 2010, 8:48 AM
#1487
saplanet avatar

saplanet

New Zenner

Join Date:
Jun 2008
Location:
Singapore, Australia, America
Posts:
97
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Thank you Hem!

10 Jul 2010, 1:10 PM
#1488
damiantaylor avatar

damiantaylor

Zen Follower

Join Date:
Aug 2009
Posts:
244
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I've found a bug in the version 1.33a that allows the customer to enter more points than they have earned.
I don't know how I managed to miss that one in my earlier tests :unsure:

To fix the bug, change function get_points_redeeming in includes/modules/order_total/ot_reward_points.php to:

function get_points_redeeming()
{
	if(MODULE_ORDER_TOTAL_REWARD_POINTS_TYPE=="Automatic")
	 $points_redeeming=GetCustomersRewardPoints($_SESSION['customer_id']);
	else
	 if(isset($_POST['redeem_points']))
	  $points_redeeming=$_POST['redeem_points'];
	 else
	  $points_redeeming=$_SESSION['redeem_points'];
	 
	$order_total=$this->get_order_total();
	$redeem_maximum=GetRewardPointsRedeemMaximum($order_total);
	$points_earned=GetCustomersRewardPoints($_SESSION['customer_id']);
	if($points_redeeming>$points_earned)
	 $points_redeeming=$points_earned;
	if($points_redeeming>$redeem_maximum)
	 $points_redeeming=$redeem_maximum;
	 
	return $points_redeeming;
}

The section in red is the new code

11 Jul 2010, 3:26 PM
#1489
imagino avatar

imagino

New Zenner

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

Re: Reward Points Module for ZC v13x

How can I make a link to some EZ-page in heading of RP box? I searched whole site and database for string "rewardpointsHeading", but nothing found, although the site really uses id="rewardpointsHeading" statement.

12 Jul 2010, 9:22 PM
#1490
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

damiantaylor:

I've found a bug in the version 1.33a that allows the customer to enter more points than they have earned.
I don't know how I managed to miss that one in my earlier tests :unsure:

To fix the bug, change function get_points_redeeming in includes/modules/order_total/ot_reward_points.php to:

function get_points_redeeming()
{
if(MODULE_ORDER_TOTAL_REWARD_POINTS_TYPE=="Automatic")
$points_redeeming=GetCustomersRewardPoints($_SESSION['customer_id']);
else
if(isset($_POST['redeem_points']))
$points_redeeming=$_POST['redeem_points'];
else
$points_redeeming=$_SESSION['redeem_points'];

$order_total=$this->get_order_total();
$redeem_maximum=GetRewardPointsRedeemMaximum($order_total);
$points_earned=GetCustomersRewardPoints($_SESSION['customer_id']);
if($points_redeeming>$points_earned)
 $points_redeeming=$points_earned;
if($points_redeeming>$redeem_maximum)
 $points_redeeming=$redeem_maximum;
 
return $points_redeeming;

}

> 
> The section in red is the new code

Nice one- I'll add it to the current code- Might tweak it up a little.
12 Jul 2010, 9:26 PM
#1491
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

imagino:

How can I make a link to some EZ-page in heading of RP box? I searched whole site and database for string "rewardpointsHeading", but nothing found, although the site really uses id="rewardpointsHeading" statement.

What you need to change is in includes\modules\sideboxes\custom\reward_points.php

14 Jul 2010, 3:12 PM
#1492
huntmine avatar

huntmine

New Zenner

Join Date:
Jul 2010
Posts:
2
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

It works on mine too,perfect.:smartalec:

15 Jul 2010, 6:39 AM
#1493
silkhouse avatar

silkhouse

New Zenner

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

Re: Reward Points Module for ZC v13x

"The official status of this issue is: The mod works with PayPal- just not with PayPal IPN. Hopefully this will change when ZenCart 2.0 is released.

but the PayPal IPN mod does this without calling any of the ZenCart notifiers. And as the RP award mod is attached to one of these notifiers, PayPal IPN does not let the RP mod know that there are points which need to be stored. Hence the problem. Contrast to this Google Checkout which runs the same way as PayPal IPN under ZenCart- It makes the correct calls and points are stored."

Hi,Andrew, is this issue fixed?

15 Jul 2010, 6:41 AM
#1494
silkhouse avatar

silkhouse

New Zenner

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

Re: Reward Points Module for ZC v13x

Hi,Andrew, is this issue fixed?

if the above issue is not fixed, does it mean that when a customer check out with paypal, he will not get store credit automatically?

15 Jul 2010, 7:03 AM
#1495
saplanet avatar

saplanet

New Zenner

Join Date:
Jun 2008
Location:
Singapore, Australia, America
Posts:
97
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

silkhouse:

Hi,Andrew, is this issue fixed?

if the above issue is not fixed, does it mean that when a customer check out with paypal, he will not get store credit automatically?

I switched to Express Checkout instead. I believe it was mentioned earlier that Paypal IPN 'messes' with the customer data, so it's not captured in the RP when returned to the cart. With EC, it works perfectly fine.

I have removed EC button from the shopping cart and login page, so that it works like regular paypal IPN. I don't want customers to skip the registration.

15 Jul 2010, 7:18 AM
#1496
silkhouse avatar

silkhouse

New Zenner

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

Re: Reward Points Module for ZC v13x

we do not use Express Checkout . We only use PayPal IPN, which is most stores using.

15 Jul 2010, 7:55 AM
#1497
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Location:
Johannesburg
Posts:
408
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

saplanet:

I have removed EC button from the shopping cart and login page, so that it works like regular paypal IPN. I don't want customers to skip the registration.

Are you aware that you can setup the Paypal Express Checkout process to auto-register your customer. This way you offer them the express function but still have the customers as registered users on your shopping cart. All updates can then still be done using Zencart rather than having to use the Paypal interface.

Sorry for going off-topic but I just wanted to point this out. :smartalec:

15 Jul 2010, 8:01 AM
#1498
saplanet avatar

saplanet

New Zenner

Join Date:
Jun 2008
Location:
Singapore, Australia, America
Posts:
97
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Louis:

Are you aware that you can setup the Paypal Express Checkout process to auto-register your customer. This way you offer them the express function but still have the customers as registered users on your shopping cart. All updates can then still be done using Zencart rather than having to use the Paypal interface.

Sorry for going off-topic but I just wanted to point this out. :smartalec:

Thank you for the information. Yes, I am aware of that function, but I require certain information such as birthday (because I give out bonuses for birthdays) and I also installed other mod 'referral' which will not be filled in with EC standard information. Some customers do not log in again to update the information. I had a couple of customers who did that and I had to send out separate emails to advise them to update so that they could enjoy the benefits of birthday bonus etc.

15 Jul 2010, 8:49 AM
#1499
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

silkhouse:

Hi,Andrew, is this issue fixed?

if the above issue is not fixed, does it mean that when a customer check out with paypal, he will not get store credit automatically?

The status of this issue is closed. I'm afraid that if the latest changes that I made do not make Paypal IPN work then the only way for IPN to work is for it (the Paypal IPN mod) to be fixed so it calls the ZC notifiers correctly.

16 Jul 2010, 6:02 AM
#1500
silkhouse avatar

silkhouse

New Zenner

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

Re: Reward Points Module for ZC v13x

Thank you, Andrew. My question is : After the lates update, Does anyone has ever make this module work with paypal IPN ?