Forums / All Other Contributions/Addons / Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

Views: 72,389

Results 341 to 360 of 364
23 Dec 2020, 7:41 PM
#341
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

lat9:

Noting that, as of zc156, there's now a function (zen_in_guest_checkout()) that returns a (bool)true/false to indicate whether/not the checkout is being performed by a guest. The reward_points' order-totals could use that as a clue to 'not enable' if (bool)true is returned.

That's a very good suggestion, Cindy. Now I just need Twitchtoo to let me know where to put that function in his module so that it can be used to disable the rewards from being assigned during the checkout process. I'm sure it's just a matter of finding where he updates the database to insert the points during checkout......but I don't have the time to dig through and figure out where that might be.

  • Jeff
8 Jan 2021, 8:59 PM
#342
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

Jeff_Mash:

That's a very good suggestion, Cindy. Now I just need Twitchtoo to let me know where to put that function in his module so that it can be used to disable the rewards from being assigned during the checkout process. I'm sure it's just a matter of finding where he updates the database to insert the points during checkout......but I don't have the time to dig through and figure out where that might be.

Just for documentation purposes, here is what I did.

I edited the tpl_modules_opc_credit_selections.php file, and added the following code after Line 47:

if(zen_in_guest_checkout() && !strcmp($ot_class,"Reward_points"))
				continue;

What this does is it removes the Reward Points block from being displayed on a Guest account. Again, the reason why this was necessary is because the guest account was accumulating Reward Points.........so a new guest customer could potentially checkout and use free earned credit that they didn't pay for.

So hopefully, this little custom modification will resolve the issue for us, because it won't display the Reward Points box to any "guest" to apply any points. Might not be the best workaround but I think it might accomplish what we need.

  • Jeff
9 Jan 2021, 3:43 PM
#343
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

Jeff_Mash:

Just for documentation purposes, here is what I did.

I edited the tpl_modules_opc_credit_selections.php file, and added the following code after Line 47:

if(zen_in_guest_checkout() && !strcmp($ot_class,"Reward_points"))
continue;

> 
> What this does is it removes the Reward Points block from being displayed on a Guest account.   Again, the reason why this was necessary is because the guest account was accumulating Reward Points.........so a new guest customer could potentially checkout and use free earned credit that they didn't pay for.
> 
> So hopefully, this little custom modification will resolve the issue for us, because it won't display the Reward Points box to any "guest" to apply any points.   Might not be the best workaround but I think it might accomplish what we need.

These changes will be considered or included in the new version when it is released publicly.  Thanks!

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

15 Jan 2021, 3:56 PM
#344
lindasdd avatar

lindasdd

Zen Follower

Join Date:
Jun 2007
Posts:
474
Plugin Contributions:
0

Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

Jeff_Mash:

Just for documentation purposes, here is what I did.

I edited the tpl_modules_opc_credit_selections.php file, and added the following code after Line 47:

if(zen_in_guest_checkout() && !strcmp($ot_class,"Reward_points"))
continue;

> 
> What this does is it removes the Reward Points block from being displayed on a Guest account.   Again, the reason why this was necessary is because the guest account was accumulating Reward Points.........so a new guest customer could potentially checkout and use free earned credit that they didn't pay for.
> 
> So hopefully, this little custom modification will resolve the issue for us, because it won't display the Reward Points box to any "guest" to apply any points.   Might not be the best workaround but I think it might accomplish what we need.

If OPC is working correctly, you should be able to do this with a change to the admin menu and not need to change any coding. The OPC Config menu has a section called 
#### Guest Checkout: Disallowed *Credit Class* Order-Totals
In that spot put: ot_gv,ot_reward_points
25 Mar 2021, 11:49 PM
#345
paul3648 avatar

paul3648

Zen Follower

Join Date:
Mar 2007
Location:
Taiwan
Posts:
239
Plugin Contributions:
0

Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

I've just updated my site to 157c and reward points is working nicely. There is just one little minor snag that is not affecting the operation of the site:

In the admin customers orders section, when viewing order details, the final summary of charges and credits appears twice. The first time reward point earned shows as 0 dollars, and the second time it shows with the correct number of reward points earned for that order.

I haven't definitely narrowed this down to the Reward Points module, but it seems a likely guess.

Attachment 19486

6 Apr 2021, 10:49 AM
#346
giancalr avatar

giancalr

Zen Follower

Join Date:
Jul 2010
Location:
L'Aquila
Posts:
113
Plugin Contributions:
1

Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

Hello everyone once the plugin is installed, on the checkout payment page, the amounts relating to the loyalty points are not calculated. What can affect? Thanks
Attachment 19502

Erboristeria La Spiga e Il Girasole Herbal Shop - https://www.erboristeriabio.com
Golden Eagle Herbal - https://www.erboristeriabio.it
Giraspiga - https://www.giraspiga.com

13 May 2021, 7:45 PM
#347
osulywan avatar

osulywan

New Zenner

Join Date:
May 2012
Location:
Dallas, Texas
Posts:
11
Plugin Contributions:
0

Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

Where can I find the Reward Points plugin for ZC 1.5.7? If there is a version for ZC 1.5.6c, that could work, too

27 Jul 2021, 12:52 AM
#348
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

Although the new Reward Points for 1.56c/1.57c module has not been funded there is an important correction to make here:

includes/modules/order_total/ot_reward_points_display.php

old:
$this->output[] = array('title' => $this->title . ':',
'text' => $reward_points,
'value' => 0);

new:
$this->output[] = array('title' => $this->title . ':',
'text' => $reward_points,
'value' => $reward_points);

This will allow Edit Orders 4.xx to 4.6.0 to see the Reward Points value as it will be recorded in the correct field in the database.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

21 Jan 2022, 8:34 AM
#349
marcopm avatar

marcopm

New Zenner

Join Date:
Jun 2021
Posts:
42
Plugin Contributions:
1

Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

Reward Point Mode -> 1 (Reward Points are calculated on the Order Total or Subtotal)
Allow Redeem of Reward Points on Order Total or Subtotal -> set on Order Total

Let's say that 1 point = 1 $. I have 10 available reward points, that I decide to redeem at checkout. E.g.:

Sub-total: $50
Value of Redeemed Reward Points: -$10
Total: $40

Reward points earned:* $reward_points=GetRewardPoints($order->products)* --> 40 (the earned points are calculated against the order total, which already includes the redeemed points discount)

However, later on in the code:

if(isset($_SESSION['redeem_value']))
{
    $reward_points = $reward_points - ($GlobalRewardPointRatio * $_SESSION['redeem_value']);
}

In this case, $_SESSION['redeem_value'] = $10 (the value of the points that I redeemed), therefore $reward_points is now 40 - 10 = 30. Basically I'm earning 30 points instead of 40, because the redeem value is being subtracted twice.
The second part should not be necessary in this case, because the order total already includes the redeemed points discount. Am I missing something?

5 Jul 2022, 3:18 PM
#350
mito0930 avatar

mito0930

New Zenner

Join Date:
Sep 2019
Location:
United States
Posts:
28
Plugin Contributions:
0

Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

I've fully installed this plugin to my shop with no problems on the storefront or the backend. However I ran into the problem of opening the Catalog > Reward Points page. I'm wondering if my installation has gone wrong somewhere. I currently have zc157b.

3 Mar 2023, 3:42 AM
#351
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

Can anyone confirm this module is working with ZC 1.5.7 and OPC?

Any changes required?

thank you

28 Apr 2023, 6:10 PM
#352
mito0930 avatar

mito0930

New Zenner

Join Date:
Sep 2019
Location:
United States
Posts:
28
Plugin Contributions:
0

Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

Hi, I've run into a 500 fatal error on my site. I got this in my error log

PHP Fatal error:  Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /website/url/admin/includes/functions/extra_functions/reward_points_functions.php on line 387

I found this code around line 387

{
    if($value==0)
     return TEXT_NO_NEW_ACCOUNT_AWARD;
    else
     if($value>0)
      return abs((int)$value).TEXT_NEW_ACCOUNT_EARNED_AWARD;
     else
      return abs((int)$value).TEXT_NEW_ACCOUNT_PENDING_AWARD;
}
18 Nov 2023, 3:00 AM
#353
southshorepizza avatar

southshorepizza

Zen Follower

Join Date:
Sep 2012
Posts:
253
Plugin Contributions:
0

Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

twitchtoo:

These changes will be considered or included in the new version when it is released publicly. Thanks!
Any plans on updating this to 1.5.8? I'm slowly working through it but php is not my strongest subject. thanks

1 Feb 2024, 4:37 AM
#354
oj_simon avatar

oj_simon

Zen Follower

Join Date:
Nov 2023
Location:
Hounslow
Posts:
129
Plugin Contributions:
0

Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

southshorepizza:

Any plans on updating this to 1.5.8? I'm slowly working through it but php is not my strongest subject. thanks

how much did you get done?

1 Feb 2024, 6:02 AM
#355
oj_simon avatar

oj_simon

Zen Follower

Join Date:
Nov 2023
Location:
Hounslow
Posts:
129
Plugin Contributions:
0

Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

mito0930:

Hi, I've run into a 500 fatal error on my site. I got this in my error log

PHP Fatal error: Unparenthesized a ? b : c ? d : e is not supported. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in /website/url/admin/includes/functions/extra_functions/reward_points_functions.php on line 387

> 
> I found this code around line 387
> ```php
{
    if($value==0)
     return TEXT_NO_NEW_ACCOUNT_AWARD;
    else
     if($value>0)
      return abs((int)$value).TEXT_NEW_ACCOUNT_EARNED_AWARD;
     else
      return abs((int)$value).TEXT_NEW_ACCOUNT_PENDING_AWARD;
}

replace the file /your-admin/includes/functions/extra_functions/reward_points_functions.php
with attached:

that got my admin working but front end has a error but I'll post the fixe when I have one.

1 Feb 2024, 6:15 AM
#356
oj_simon avatar

oj_simon

Zen Follower

Join Date:
Nov 2023
Location:
Hounslow
Posts:
129
Plugin Contributions:
0

Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

replace the file /includes/functions/extra_functions/reward_points_functions.php
with attached: (do not mix the 2 files up)

that got my front-end working

1 Feb 2024, 6:55 AM
#357
oj_simon avatar

oj_simon

Zen Follower

Join Date:
Nov 2023
Location:
Hounslow
Posts:
129
Plugin Contributions:
0

Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

cross fingers, so far other then the 2 files above, it all seems to be work as expected.

Also i did not do the admin order total file as it didn't seem like anything really happening, it was not showing point's so i left it.

ToDo - Need to see if it is showing the points used on a order and on the invoice.

1 Feb 2024, 11:05 AM
#358
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,720
Plugin Contributions:
56

Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

This software has been abandoned for some time.
Unless you have (or are) a developer, you might want to consider migrating to Cindy's solution to this problem, Customer Loyalty Discount.

https://www.zen-cart.com/downloads.php?do=file&id=1917

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

1 Feb 2024, 1:55 PM
#359
oj_simon avatar

oj_simon

Zen Follower

Join Date:
Nov 2023
Location:
Hounslow
Posts:
129
Plugin Contributions:
0

Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

swguy:

This software has been abandoned for some time.
Unless you have (or are) a developer, you might want to consider migrating to Cindy's solution to this problem, Customer Loyalty Discount.

https://www.zen-cart.com/downloads.php?do=file&id=1917

I'll carry on tying to fix this one as customer loyalty discount is not what I'm looking for I need a points system a totally different type of system

1 Feb 2024, 3:00 PM
#360
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,720
Plugin Contributions:
56

Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

OK. If you're skilled enough to take over support, that would be great; please upload your fixes periodically (monthly not daily) to the Plugin Library so others can benefit. Thanks.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.