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

Reward Points Module for ZC v13x

Locked

Views: 472,365

Results 81 to 100 of 2,476
This thread is locked. New replies are disabled.
21 Apr 2008, 9:33 AM
#81
mike_dean avatar

mike_dean

Totally Zenned

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

Reward Points Module for ZC v13x

hem:

Mike, that's because both mods make changes to the tpl_product_info_display.php file. I've attached a version that combines both mods- extract it to includes\templates\YOUR CUSTOM FOLDER\templates\

Tnaks Andrew,

Nice try but it did not work, I ended up with a blank page on the product info.

I had a look at the file and saw reference to tabbed_products_pro. I'm using Tabbed Products Lite.

Would that casue a difference ?

I did change the first line to look for tabbed_products_lite.php.

It put the product info back on the page, but still without tabs..

Norts And Ones
Norts And Ones

21 Apr 2008, 10:04 AM
#82
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:

Tnaks Andrew,

Nice try but it did not work, I ended up with a blank page on the product info.

I had a look at the file and saw reference to tabbed_products_pro. I'm using Tabbed Products Lite.

Would that casue a difference ?

I did change the first line to look for tabbed_products_lite.php.

It put the product info back on the page, but still without tabs..

Mike, according to the Contribution page for Tabbed Products Lite, it says that it's been superseded by Tabbed Products Pro- so you might want to look into upgrading...

Anyway, if you want to continue using the lite version you can do what I did to merge the files by using WinMerge (it's free and easy).

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

21 Apr 2008, 10:06 AM
#83
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:

Mike, according to the Contribution page for Tabbed Products Lite, it says that it's been superseded by Tabbed Products Pro- so you might want to look into upgrading...

Anyway, if you want to continue using the lite version you can do what I did to merge the files by using WinMerge (it's free and easy).

Thanks Andrew, I have WinMerge so I'll give that a go first.

Thanks Again...

Norts And Ones
Norts And Ones

21 Apr 2008, 11:11 AM
#84
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

Mike_Dean:

Thanks Andrew, I have WinMerge so I'll give that a go first.

Thanks Again...

Ok.. I got the tabs back and RP running together. Yeah..! :smile::smile:
Another road block.. the Add to Cart button that used to reside above the tabs has dissappeared.. It's there pre RP, but with RP in, its gone.

Norts And Ones
Norts And Ones

21 Apr 2008, 11:39 AM
#85
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hello,

Mike, it is better that you upgrade to Tabbed Products Pro. Once you have, use tpl_product_info_display.php from this contrib rather than using the one from Reward Points mod as it is a lot easier this way.

Then on the same file from the Reward Points mod, find the code

<!--bof Product Reward Points block --> <h2 id="productRewardPoints" class="productRewardPoints"> <?php /** * display the product reward points */ include($template->get_template_dir('/tpl_product_reward_points.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_product_reward_points.php'); ?> </h2> <!--eof Product Reward Points block -->

Copy and paste this on the same file anywhere you want the reward points to appear but this time from the Tabbed Products contrib.

That's the way I have done mine and everything is working.

All the best

21 Apr 2008, 4:19 PM
#86
gransazer avatar

gransazer

New Zenner

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

Re: Reward Points Module for ZC v13x

hem:

Thanks for the heads up- I'll check it out in the morning.

Hi Andrew,

Have you check out my problem, i try solve myself but still cannot found the solution.

tq

21 Apr 2008, 7:58 PM
#87
rasyr avatar

rasyr

Zen Follower

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

Re: Reward Points Module for ZC v13x

hem:

I will have to set up a PayPal IPN Payment mod onto my test rig and then work out how to setup the sandbox so I can test it.

And of course, this morning somebody had to go and use Paypal, and it award him points.... (so 1 out 4, IIRC got their RP when checking out with Paypal).

Perhaps it has something to do with whether or not they return to the site afterwards (though I would think that most do, since we sell PDFs, and they have to return to download them).

Another issue --

We gave everybody on the store 1,000 Reward Points (i.e. $10.00). One fellow went and purchased $10 worth of products, and it still wanted him to select a Payment option (even with a zero balance), and Paypal won't process anything with a zero balance....

Tons of fun... hehe :D

21 Apr 2008, 10:11 PM
#88
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

gransazer:

Hi Andrew,

Have you check out my problem, i try solve myself but still cannot found the solution.

tq

yep- already coded, now just testing.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

21 Apr 2008, 10:13 PM
#89
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

Rasyr:

And of course, this morning somebody had to go and use Paypal, and it award him points.... (so 1 out 4, IIRC got their RP when checking out with Paypal).

Perhaps it has something to do with whether or not they return to the site afterwards (though I would think that most do, since we sell PDFs, and they have to return to download them).

Another issue --

We gave everybody on the store 1,000 Reward Points (i.e. $10.00). One fellow went and purchased $10 worth of products, and it still wanted him to select a Payment option (even with a zero balance), and Paypal won't process anything with a zero balance....

Tons of fun... hehe :D

But did they use PayPal IPN???

And I'm looking into the zero balance/select payment thing- I came across it during testing.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

21 Apr 2008, 10:41 PM
#90
rasyr avatar

rasyr

Zen Follower

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

Re: Reward Points Module for ZC v13x

hem:

But did they use PayPal IPN???

And I'm looking into the zero balance/select payment thing- I came across it during testing.

yeah, 1 person out of like 4 that used Paypal ended up with point in the Pending category (still, they never moved to earned automatically though).

And to make it interesting, the day before, somebody else order the exact same thing (specific book with a bundled PDF) and he didn't get any points.

And a guy who just ordered and paid through paypal didn't get his points put into Pending (or Earned)

Aha! A pattern emerges!!! All of the Paypal purchasers who did NOT receive their points in Pending (we can worry about them being automatically moved to Earned later) had a "Trans. type" of "unique". The guy who's purchase gave him his RP in Pending had a "Trans. Type" of "web_accept".

That has to be significant somehow....

22 Apr 2008, 2:43 AM
#91
gransazer avatar

gransazer

New Zenner

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

Re: Reward Points Module for ZC v13x

hem:

yep- already coded, now just testing.

thank you soo much...

22 Apr 2008, 7:47 AM
#92
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

Rasyr:

yeah, 1 person out of like 4 that used Paypal ended up with point in the Pending category (still, they never moved to earned automatically though).

And to make it interesting, the day before, somebody else order the exact same thing (specific book with a bundled PDF) and he didn't get any points.

And a guy who just ordered and paid through paypal didn't get his points put into Pending (or Earned)

Aha! A pattern emerges!!! All of the Paypal purchasers who did NOT receive their points in Pending (we can worry about them being automatically moved to Earned later) had a "Trans. type" of "unique". The guy who's purchase gave him his RP in Pending had a "Trans. Type" of "web_accept".

That has to be significant somehow....

Rasyr- I will look into the transaction type and see what relevance it has.

Regarding your earlier comment about paying with PayPal but not returning to your site- As the PayPal return is to checkout_process.php, then there will be no reward of points unless this is run. Unfortunately the points cannot be rewarded before PayPal is called otherwise the customer could end up with RP even if they cancel the PayPal transaction

Question- If I remember rightly, you use phpmysql- Could you check the reward_status_track table and see if any of the "non appearing" transactions are there (but with zero points in pending or earned)- Might add another piece to the jigsaw.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

22 Apr 2008, 10:01 AM
#93
fiji avatar

fiji

New Zenner

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

Re: Reward Points Module for ZC v13x

hem:

Rasyr- I will look into the transaction type and see what relevance it has.

Regarding your earlier comment about paying with PayPal but not returning to your site- As the PayPal return is to checkout_process.php, then there will be no reward of points unless this is run. Unfortunately the points cannot be rewarded before PayPal is called otherwise the customer could end up with RP even if they cancel the PayPal transaction

Question- If I remember rightly, you use phpmysql- Could you check the reward_status_track table and see if any of the "non appearing" transactions are there (but with zero points in pending or earned)- Might add another piece to the jigsaw.

Andrew,
I mention before the paypal problem.
I test many times and the paypal returning to my site and create an order sucessful. Everything is working well.
The only problem is no pending point and no earned point.
You can try the paypal via sandbox.

22 Apr 2008, 12:28 PM
#94
rasyr avatar

rasyr

Zen Follower

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

Re: Reward Points Module for ZC v13x

hem:

Rasyr- I will look into the transaction type and see what relevance it has.

Regarding your earlier comment about paying with PayPal but not returning to your site- As the PayPal return is to checkout_process.php, then there will be no reward of points unless this is run. Unfortunately the points cannot be rewarded before PayPal is called otherwise the customer could end up with RP even if they cancel the PayPal transaction

Question- If I remember rightly, you use phpmysql- Could you check the reward_status_track table and see if any of the "non appearing" transactions are there (but with zero points in pending or earned)- Might add another piece to the jigsaw.

Actually I use mySQL Front (a stand-alone app).

And in looking, no, the Paypal orders (with the transaction type of "unique) are not in that table.

22 Apr 2008, 12:32 PM
#95
nullmind avatar

nullmind

Zen Follower

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

Re: Reward Points Module for ZC v13x

Andrew

I could have swore it worked before, I know I tested it .. but it was with the beta, wonder fi somthing changed, but when changing order status with Super Orders, it will not redeem the credits (when moving order to status that should redeem)

22 Apr 2008, 1:03 PM
#96
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

fiji:

Andrew,
I mention before the paypal problem.
I test many times and the paypal returning to my site and create an order sucessful. Everything is working well.
The only problem is no pending point and no earned point.
You can try the paypal via sandbox.

Fiji- according to the ZenCart Wiki on PayPal IPN I cannot test it with the sandbox and I have to use it in a live environment.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

22 Apr 2008, 10:09 PM
#97
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:

Andrew

I could have swore it worked before, I know I tested it .. but it was with the beta, wonder fi somthing changed, but when changing order status with Super Orders, it will not redeem the credits (when moving order to status that should redeem)

It should work- As long as Super Orders changes the order status (which I track on) the sync should change the point redeem also.

I think I might have to stick version tracking into the code headers- Might help with all the old versions/new versions to make sure we're all singing off the same hymn sheet.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

23 Apr 2008, 12:34 PM
#98
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

pinetreecandles:

I see what you mean now. I never noticed that before. All my testing I never had the amount to redeem exceed the subtotal. Good catch.

I'm not a coder so I'm not sure what the side effects will be on changing the code from: $order_total = $order->info['total']; to ```
$order_total = $order->info['subtotal'];

> 
>  I guess that's what test sites are for :smile:

Hi PTC..

Did the mod on this code work ?  I dont want people to be able to redeem points against shipping fees, only against the goods.

So I'm curious if this worked, if so, which file was it that you changed ? 

Thanks,
Mike

Norts And Ones
Norts And Ones

23 Apr 2008, 12:35 PM
#99
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

Hi,

Is there a way to set the minimum order value that must be reached before Reward Points can be used ?

Eg, Can I set a minimum say $100 order value before a customer can use points ?

Cheers,
Mike

Norts And Ones
Norts And Ones

23 Apr 2008, 1:56 PM
#100
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,

Is there a way to set the minimum order value that must be reached before Reward Points can be used ?

Eg, Can I set a minimum say $100 order value before a customer can use points ?

Cheers,
Mike

Yes- it's in the Reward Point configuration and is called 'Reward Point Redeem Minimum'.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com