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,390

Results 261 to 280 of 364
18 Jan 2018, 7:29 PM
#261
mesnitu avatar

mesnitu

Totally Zenned

Join Date:
Aug 2014
Location:
Lisbon
Posts:
597
Plugin Contributions:
0

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

Great!
That's for sure, this module needs to be updated.
I do remember having issues on module upgrade, I had to completely remove and then install.
But I have this working on the latest zc version with PHP 7.1.... or at least I think I have this working.
Tomorrow I'll test some more.

“Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

18 Jan 2018, 7:54 PM
#262
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

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

I am going to test this today. So far changed the MYSQL statements and those class functions to __construct.

18 Jan 2018, 8:14 PM
#263
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

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

A bug?

You cant enable both ot_reward_points and ot_reward_points_discount.

18 Jan 2018, 8:15 PM
#264
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

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

this line in ot_reward_points module:

$ot_module=DIR_FS_CATALOG_MODULES.'order_total/'."ot_reward_points_discount.php";
        if(file_exists($ot_module))
		{
			include($ot_module);
			$module=new ot_reward_points_discount;
			$module->remove();

I think is wrong as it should be ot_reward_points correct?

19 Jan 2018, 9:55 PM
#265
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

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

Anyone have fix for One Page Checkout for this? Can someone explain why this code is needed? Since you can't enable both it seems on 1.5.5

$ot_module=DIR_FS_CATALOG_MODULES.'order_total/'."ot_reward_points_discount.php";
        if(file_exists($ot_module))
		{
			include($ot_module);
			$module=new ot_reward_points_discount;
			$module->remove();
		}
    }
20 Jan 2018, 6:00 AM
#266
mesnitu avatar

mesnitu

Totally Zenned

Join Date:
Aug 2014
Location:
Lisbon
Posts:
597
Plugin Contributions:
0

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

have you try this:
#post1313855

I do remember that something is mentioned on the One page checkout support thread

“Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

20 Jan 2018, 11:40 PM
#267
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

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

No I didn't try that but here is what I was told but don't know what to do with it:

hanks I see that now; quick question it says to add this code in ot_reward_points.php after function collect_posts

PHP Code:

PHP Code:

if (isset($_SESSION['redeem_flag']) && $_SESSION['redeem_flag']) 
            $_POST['redeem_flag'] = $_SESSION['redeem_flag'];  

Here is the code in that function. Do I need to replace this code with one above? instead of request it's supposed to be session?

PHP Code:

function collect_posts()  
    { 
        if($_REQUEST['redeem_checkout_flag']) 
         if((isset($_REQUEST['redeem_flag']) && $_REQUEST['redeem_flag']) || (isset($_REQUEST['redeem_points']) && $_REQUEST['redeem_points']>0)) 
         { 
            $_SESSION['redeem_points']=$this->get_points_redeeming(); 
            $_SESSION['redeem_value']=$_SESSION['redeem_points']*GetRedeemRatio($_SESSION['customer_id']); 
         } 
         else 
          $this->clear_posts(); 
    }
26 Jan 2018, 6:28 PM
#268
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

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

tmccaff what version of php are you testing this on? Should work on 7 as 1.5.5f is designed for 7 and PCI certified only on php7

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

27 Jan 2018, 1:34 AM
#269
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

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

@delia thanks for responding. PHP 7.1 to my understanding you need to change some of the code to work with one page but not sure how or where to change this.

Also I think there is a bug if you enable rewards_points or rewards_points_discounts not both can be enabled just one. Not sure if that's a bug or what.

27 Jan 2018, 2:48 PM
#270
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

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

so you are not on php 7. Rats. Other than that bug, you have it working in zc 1.5.5?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

28 Jan 2018, 1:14 AM
#271
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

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

I am going through the code piece by piece I hope to tnt.

7 Feb 2018, 7:15 AM
#272
chibipaw avatar

chibipaw

Zen Follower

Join Date:
Jul 2011
Posts:
167
Plugin Contributions:
0

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

tmccaff:

I am going to upload a new version for this.

I never got around to update the package since the fix from Sep 2016 page #202 for making it work on 1.5.5e
If you haven't already done so, Im going to load that minor updated package so people dont have to hack it to work.
I've named it 2.5f so perhaps your might be 2.5g to avoid confusion? I assume yours is with that the fix along with other updates I've notice you've been talking about. I haven't implemented any of that yet, as I do not use single page checkouts.

Also, I've tested my version of the Rewards Points 2.5f over PHP 5.6, PHP 7.1, MySQL 5.7.17, MariaDB 20.1.16, MariaDB 10.2.11. I've pretty much
migrated everything over to MariaDB since its like the party of OpenOffice to LibreOffice.

ChibiPaw

7 Feb 2018, 2:36 PM
#273
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

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

thanks!! Will test as soon as it becomes available.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

7 Mar 2018, 5:25 AM
#274
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

Not certain if it's the install or the particular cart I'm working on but I thought I would share... Zen Cart 1.55f, Reward Point Full Suite 2.5f

After installing the newest rewards module 2.5f, running the SQL for a new install this particular sql update created a mismatch between the configuration menu and the actual configuration_group_id

The menu was posting gID=36 while the actual entry was set for **configuration_group_id = 63 **

This prevented the entire admin -> configuration menu -> Reward Point Configuration from loading. No errors, no sign of what or why until I hovered over the menu link and noticed the ID error.

I sourced it back to this line of the SQL file:
/*
zencart 1.5 mods
*/

INSERT INTO admin_pages (page_key,language_key,main_page,page_params,menu_key,display_on_menu,sort_order) VALUES ('configRewardPoints','BOX_CONFIGURATION_REWARD_POINTS','FILENAME_CONFIGURATION',CONCAT('gID=',@cgi), 'configuration', 'Y', @cgi);

Which also relates to this:
SELECT @groupid:=configuration_group_id FROM configuration_group
WHERE configuration_group_title= 'Reward Points';
DELETE FROM configuration WHERE configuration_group_id = @groupid AND configuration_group_id != 0;
DELETE FROM configuration_group WHERE configuration_group_id = @groupid AND configuration_group_id != 0;

INSERT INTO configuration_group VALUES (NULL , 'Reward Points', 'Reward Point Module Configuration', '50' , '1');
UPDATE configuration_group SET sort_order = last_insert_id() WHERE configuration_group_id = last_insert_id();
SELECT @cgi:=configuration_group_id FROM configuration_group WHERE configuration_group_title = 'Reward Points';

The problem:
It seems @cgi picked up the wrong ID then rolled with it.

The fix:
I changed the db entry in admin_pages -> page_key -> configRewardPoints -> page_params -> **gID=36 **to gID=63

All is well now!

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

7 Mar 2018, 5:49 AM
#275
chibipaw avatar

chibipaw

Zen Follower

Join Date:
Jul 2011
Posts:
167
Plugin Contributions:
0

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

Don't have that issue here. Might be just your installation.

7 Mar 2018, 3:50 PM
#276
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

chibipaw:

Don't have that issue here. Might be just your installation.

I agree. There's a chance an old version was installed or that the SQL updates got interrupted causing the incorrect counter.

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

10 Apr 2018, 7:51 PM
#277
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

Hey everyone - I just noticed something that may be an easy fix, but I can't figure out why.

I thought that reward points were based on the Master Category ID of the product, and it would ignore anything else?

For example, I have a product that is in multiple categories. The Master Category is point eligible (set at 0.005).......but it also linked to a sub category that isn't point eligible. This is somehow overriding things and making it so that the product isn't eligible for points.

I thought the code used the main Master Category to determine the point status. If not, is there anyway around this? Perhaps finding a part of the code to only look at the Master ID and not any sub category?

  • Jeff
10 Apr 2018, 7:54 PM
#278
chibipaw avatar

chibipaw

Zen Follower

Join Date:
Jul 2011
Posts:
167
Plugin Contributions:
0

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

coldfire0078:

i'm use zencart 1.5.1 and installed Reward Points Full Suite v2.5.
When i test to pay with paypal standard (it's go paypal site and return). I can see the reward point in checkout page but after payment, no points pending or earned.
but if i test to pay with Western Union (it's not go the third part site). all works well, i can see points pending, then earned after delivery.
need kindly help! thanks you very much.

Known issue with PayPal. No known fix as far as I know.
But you might want to read the the older post about it on this thread.

10 Apr 2018, 8:30 PM
#279
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:

Hey everyone - I just noticed something that may be an easy fix, but I can't figure out why.

I thought that reward points were based on the Master Category ID of the product, and it would ignore anything else?

For example, I have a product that is in multiple categories. The Master Category is point eligible (set at 0.005).......but it also linked to a sub category that isn't point eligible. This is somehow overriding things and making it so that the product isn't eligible for points.

I thought the code used the main Master Category to determine the point status. If not, is there anyway around this? Perhaps finding a part of the code to only look at the Master ID and not any sub category?

Nevermind this question. I figured it out. :)

  • Jeff
10 Apr 2018, 9:18 PM
#280
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

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

Jeff_Mash:

Nevermind this question. I figured it out. :)

Care to share so others can benefit?

Jim
Wheaton Website Services