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.
PHP Code:
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');
}
“Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison
I must be the first one to use this Reward Points Full Suite v2.5 with ZC 1.5.5.a ? I don't find in any forums where anyone else is having this problem. When I change the screen to mobile mode, the Reward Points box which is normally set to be displayed in left-hand column stretches across the top of the entire screen, rather than disappearing as the other sideboxes do. I think I understand the problem ... the responsive_default.css controls displaying the sideboxes:
/* side-boxes */
/* ADD { display:none;visibility:hidden; } to Hide Side-Box */
/* LEAVE BLANK { } to Show Side-Box */
div#documentcategories {display:none;visibility:hidden;}
div#categories {display:none;visibility:hidden;}
div#whatsnew {display:none;visibility:hidden;}
div#manufacturers {display:none;visibility:hidden;}
div#reviews {display:none;visibility:hidden;}
div#featured {display:none;visibility:hidden;}
div#information {display:none;visibility:hidden;}
div#moreinformation {display:none;visibility:hidden;}
Since reward points box is a plug-in, the standard css file doesn't handle it. So I figured all I had to do was add the equivalent statement for the Reward Points box. But here is where I am puzzled ... I did a search for moreinformation in the entire structure of my installation and no where do I find the term moreinformation. So I don't understand how this works, and of course I don't know what term to add to the css file for the Reward Points box. Can someone help me ? Thanks.
Here is the link for the test site I am working on.
http://www.gottahaveitnwi.com/shop_155/
When there, if you click the link to view in Mobile mode, or just shrink the width of the browser window, you will see the Reward Points box spread across the upper part of the window.
Under Tools>Layout Box Controller
what do you have for Single Column Status for the rewards points box?
My guess is ON. Try setting it to OFF.
Sorry to disappoint but that was too obvious
Here is how the Reward Points box is set:
Box Details:
Box Name: reward_points.php
Left/Right Column Status: ON
Location: (Single Column ignores this setting) LEFT
Left/Right Column Sort Order: 75
Single Column Sort Order: 0
Single Column Status: OFF
I always start with the most obvious things. But had I read your first post closer, I would known the answer right way.
add:
div#rewardpointsHeading {display:none;visibility:hidden;}
right below
div#moreinformation {display:none;visibility:hidden;}
in your responsive_default.css mentioned above.
Well, that didn't change anything, but since the other sideboxes didn't have Heading after them, I tried
div#rewardpoints {display:none;visibility:hidden;}
and that worked for when I shrink the browser window, but still see it when I click for mobile mode.
Also if I log-in, my shopping cart with reward points shows-up in the center now. Looks like I have to play more with the three responsive_xxx.css files. Seems like the trick is knowing what term to use for those two "custom" boxes![]()
Bookmarks