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 181 to 200 of 364
20 Jul 2016, 4:14 AM
#181
wonged avatar

wonged

New Zenner

Join Date:
Feb 2011
Posts:
33
Plugin Contributions:
0

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

jeking:

Yes, div#rewardpoints. You will need to follow the lead of the other sideboxes for your template when it comes to the responsive display as this box is not part of the default installation.

Thanks to jeking for pointing me in the right direction, I think I got it figured-out.

For right or wrong, to get these two custom sideboxes to display correctly for all three modes (default, tablet, and mobile), here is what I did.
In responsive_default.css, I added these two lines in two places (to handle the two sets of media widths):
div#rewardpoints {display:none;visibility:hidden;}
div#shoppingcartwithrewards {display:none;visibility:hidden;}

In tablet.css, I added these two lines in two places (to handle the two orientations):
For orientation portrait,
div#rewardpoints {display:none;visibility:hidden;}
div#shoppingcartwithrewards {display:none;visibility:hidden;}
For orientation landscape,
div#rewardpoints {}
div#shoppingcartwithrewards {}

But here was the tricky one to figure out, for mobile, I had to add to jscript_responsive_framework.php:
For if ( $detect->isMobile() && !$detect->isTablet() || $_SESSION['layoutType'] == 'mobile' ),
$('#rewardpoints').css({ 'display': 'none', 'visibility': 'hidden' });
$('#shoppingcartwithrewards').css({ 'display': 'none', 'visibility': 'hidden' });
And for completeness, for else if ( $detect->isTablet() || $_SESSION['layoutType'] == 'tablet' ),
$('#rewardpoints').css({ });
$('#shoppingcartwithrewards').css({ });

Things seems to work the way I expect them to now :D
I hope someone else finds this helpful ?

20 Jul 2016, 11:02 AM
#182
miru avatar

miru

New Zenner

Join Date:
Oct 2015
Posts:
30
Plugin Contributions:
0

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

Is it possible to set points so that they will expire after some time?

25 Jul 2016, 7:43 PM
#183
wonged avatar

wonged

New Zenner

Join Date:
Feb 2011
Posts:
33
Plugin Contributions:
0

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

It looks like this plug-in does not support ZC version 1.5.5a ? During my testing, when I checkout as a customer who has enough reward points to earn a discount, I am shown my available discount, which I checked-off to apply to my order. But on the Final checkout screen, no discount is applied to the order. Assuming I am correct, is there going to be an update to this plug-in for 1.5.5a soon ? Otherwise, I don't know what to tell customers who have reward points earned when the store was 1.5.1 :huh:

26 Jul 2016, 3:42 AM
#184
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

Having a similar problem after upgrading to ZC 1.5.5a. Customers are earning their points, but doesn't look like they can redeem any of it. How many people are also having this problem? Im getting the feeling that there really hasn't been that many people who have migrated to ZC 1.5.5a since the release 2 months ago.

wonged:

It looks like this plug-in does not support ZC version 1.5.5a ? During my testing, when I checkout as a customer who has enough reward points to earn a discount, I am shown my available discount, which I checked-off to apply to my order. But on the Final checkout screen, no discount is applied to the order. Assuming I am correct, is there going to be an update to this plug-in for 1.5.5a soon ? Otherwise, I don't know what to tell customers who have reward points earned when the store was 1.5.1 :huh:

29 Jul 2016, 7:14 PM
#185
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

For me, they suite is broken where customer checks out after upgrading to ZC 1.55a. Customers cant redeem their points.
Are you able to figure out any sort of work around seeing your issue appears to be the same.

mesnitu:

Cool !
I end up changing the code also to transfer the points added on new account on the first purchase...since it was not processing this stuff....
Haven't check the sunrise period, but anyway I'm not using that either.
So on rewards admin extra functions I've changed this function... not sure if it's the best way, the smarter way, or if the script does this, but I can't find that piece of code anywere:

This is not entirely tested, got to go and watch the game against Croatia, but perhaps someone has a better idea...or something.

About the javascript in zc155, there are places where nothing works, others were it's ok.

function TransferCustomerPointsFromPending($order_id)
{
global $messageStack, $db;

if(($record=GetLastRewardPointHistoryRecord($order_id)) && $record->fields['status']==STATUS_PENDING)
{
     
    $customer_id=$record->fields['customers_id'];
    $reward_points=$record->fields['reward_points'];
    $pending_points=-$reward_points;
    
    UpdateCustomerRewardPoints($customer_id,$reward_points,$pending_points);
    UpdateRewardPointHistoryRecord($customer_id,$order_id,$reward_points,STATUS_PROCESSED);
    
    $customer_pending_points = GetCustomersPendingPoints($customer_id);

    if ( ($customer_pending_points) == abs(REWARD_POINTS_NEW_ACCOUNT_REWARD) ) {
    
      $sql=$db->Execute("SELECT * FROM ".TABLE_REWARD_STATUS_TRACK." WHERE customers_id=".(int)$customer_id." and status =1");
      if ($sql->RecordCount() >= 1 ) {
          $updpoints = $reward_points + $customer_pending_points;
          $sql=$db->Execute("UPDATE ".TABLE_REWARD_CUSTOMER_POINTS." SET pending_points=0 ,reward_points=".$updpoints." WHERE customers_id=".(int)$customer_id." ");
         
      }
    }     
}
else
 if(!$record)
  $messageStack->add_session(WARNING_MISSING_RECORD.' '.$order_id, 'warning');

}

29 Jul 2016, 9:13 PM
#186
wonged avatar

wonged

New Zenner

Join Date:
Feb 2011
Posts:
33
Plugin Contributions:
0

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

chibipaw:

For me, they suite is broken where customer checks out after upgrading to ZC 1.55a. Customers cant redeem their points.
Are you able to figure out any sort of work around seeing your issue appears to be the same.
Nope, today, I actually spent a couple of hours looking to try to understand and to find some difference in how the code is structured in 1.5.5a that would not make it use the data processed in ot_reward_points_discount.php but had no luck. Everything seems fine to me.

If I decide to keep reward points program for this version of store, I am going to have to put a notice in Checkout Screen 2 where the reward points box appears telling customer how much of a discount he has, that they need to email me and I will send them a Gift Certificate for that amount. Later, they can then apply that to the order they were going to place. Problem is the customer may decide not to place the order while waiting for this turn-around period :(

29 Jul 2016, 9:44 PM
#187
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

That's pretty much what Im doing too. I've disabled to rewards points redemption module for now. If the customer wants to redeem it, it will have to be done manually via GV just like what you're doing. But I am keeping the rewards points total module running because it looks like customers are still accumulating points.

I sure hope we figure this one out soon, because the rewards points system is really popular. I'm also a bit surprised that there really hasn't been that many people migrating to ZC 155a after it has been out for such a long time. Guess most people are still running ZC 1.54?

wonged:

Nope, today, I actually spent a couple of hours looking to try to understand and to find some difference in how the code is structured in 1.5.5a that would not make it use the data processed in ot_reward_points_discount.php but had no luck. Everything seems fine to me.

If I decide to keep reward points program for this version of store, I am going to have to put a notice in Checkout Screen 2 where the reward points box appears telling customer how much of a discount he has, that they need to email me and I will send them a Gift Certificate for that amount. Later, they can then apply that to the order they were going to place. Problem is the customer may decide not to place the order while waiting for this turn-around period :(

19 Aug 2016, 1:36 PM
#188
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 got the same problem with 1.55a. That's a good idea about the gift voucher as an interim solution.

wonged:

If I decide to keep reward points program for this version of store, I am going to have to put a notice in Checkout Screen 2 where the reward points box appears telling customer how much of a discount he has, that they need to email me and I will send them a Gift Certificate for that amount. Later, they can then apply that to the order they were going to place. Problem is the customer may decide not to place the order while waiting for this turn-around period :(

20 Aug 2016, 4:06 PM
#189
doomm avatar

doomm

New Zenner

Join Date:
Sep 2008
Posts:
54
Plugin Contributions:
0

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

I rather downgraded to 1.5.4 last month after I was not able to get reward points working :-(

Is it possible that one of core (at least I suppose) plugins would not be upgraded for so long? Not sure about it, have to be problem on our side...

20 Aug 2016, 4:16 PM
#190
wonged avatar

wonged

New Zenner

Join Date:
Feb 2011
Posts:
33
Plugin Contributions:
0

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

Doomm:

I rather downgraded to 1.5.4 last month after I was not able to get reward points working :-(

Well, my reason for going to 1.5.5a was to get our store mobile-friendly.
The store owner (my boss) decided to discontinue the Rewards Program for now, until it's working again for 1.5.5.a.

26 Aug 2016, 5:58 PM
#191
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 guess there's been no progress finding this bug for 1.55a. I've looked at all the code for this module and done a diff with 1.54 - nothing obvious pops out. My next task is to compare it with a built-in module like group discounts. If anyone cares to do a similar compare we might yet track this down.

26 Aug 2016, 9:44 PM
#192
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

Are there any programming professionals who want to step up for this task?
At this rate, Im willing to pitch the idea of pooling some community resources to get this fixed, since its affect for existing shops are fairly sever.

paul3648:

I guess there's been no progress finding this bug for 1.55a. I've looked at all the code for this module and done a diff with 1.54 - nothing obvious pops out. My next task is to compare it with a built-in module like group discounts. If anyone cares to do a similar compare we might yet track this down.

27 Aug 2016, 6:31 PM
#193
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

chibipaw:

At this rate, Im willing to pitch the idea of pooling some community resources to get this fixed, since its affect for existing shops are fairly sever.

You can count me in. As things are, my only solution is to go back to 1.54

27 Aug 2016, 7:09 PM
#194
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

For me, rolling back is not an option. My shop is production, and there has been already too many 1.5.5 specific changes applied.
Also, going back to 154a not much of a solution since you cant really camp in that version forever.

paul3648:

You can count me in. As things are, my only solution is to go back to 1.54

4 Sep 2016, 8:01 PM
#195
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

Im actually quite surprised that there are no takers after being solicited.
Wonder what happened to Countrycharm?

11 Sep 2016, 7:12 PM
#196
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

Nobody wants to put a bid debugging and repairing module? It's IRL money!

chibipaw:

Im actually quite surprised that there are no takers after being solicited.
Wonder what happened to Countrycharm?

14 Sep 2016, 8:06 AM
#197
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

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

14 Sep 2016, 4:31 PM
#198
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

mesnitu - thanks for pointing that out. I hadn't noticed that before. I will test later today and see how it works.

14 Sep 2016, 9:05 PM
#199
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

Thanks for the point. Sometimes its just really hard to sift through the threads without missing critical pieces.
Looks like your code allowed redemption of the rewards points at check out.
but I have noticed now that a customer can check out, but the points are not actually subtracted from the customer's account. Are you having that problem too, or is there another patch for that?

mesnitu:

Have you try this. I think it might be the same issue I was facing.

https://www.zen-cart.com/showthread.php?215188-Reward-Points-Full-Suite-v2-5-%28for-ZC-v1-5x%29-Support-Thread&p=1313855#post1313855

19 Sep 2016, 8:35 AM
#200
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

chibipaw:

Thanks for the point. Sometimes its just really hard to sift through the threads without missing critical pieces.
Looks like your code allowed redemption of the rewards points at check out.
but I have noticed now that a customer can check out, but the points are not actually subtracted from the customer's account. Are you having that problem too, or is there another patch for that?

Yep, you're right! None of this is working....... I thought I had this working, I mean, I had this working since I even put it online, but thanks for point that out.

For me now, is doing nothing. No calculations in the checkout and checkout / confirmations page, customer account page, etc...
It simply adds more points to earned

Well.....no fun.

I know that when I was looking for a solution, I found a reward points commercial module, and by the screenshots, it looks like this one.
Probably they ditch this free one for that one, or maybe didnd't had time to update this one for 155

I'll try to find a solution for myself, since we need this stuff, if I find anything I'll post it here.

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