Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread
@gigi3, may I suggest that you open a new thread (Reward Points+Edit Orders, or another title to your choosing) so we don't hijack this support thread discussing possibilities?
It will "help" to know your Zen Cart, Edit Orders and Reward Points version in formulating any change-suggestion.
Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread
Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread
My client does not update order status so we needed to find a way to award points when orders are placed. I set the completed order status of each payment module to Completed (renamed from Shipping of orders_status_id=3). The Reward Point Sunrise Period is set to zero.
I expected this would award the points as orders are placed. The order status for orders is showing up as 'Completed' but the their points as still Pending.
What did I misunderstand so I can get the desired result?
Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread
Hi
Is this working on zc155 ?
I've made a new intalation and a upgrade to the database from the reward previous version.
I've already put the site online since I had no log reports about this but:
The points are added and subtratect from the customer account, but on checkout, they have no effect on the total order.
And also, in the Set New Account Reward Points , I have them config to add to pending. But after a customer makes a purchase, they don't go anyware.
In the reward points configuration I have this jscritp error :
configuration.php?gID=41&cID=816&action=edit:415 Uncaught TypeError: Cannot read property 'length' of undefined
And in the advanced rules, sometimes I have e t_total.php (? didn't had this in v151) with a action to add....
There also the ot_shipping that I can't set ... I click update, but nothing.
So I have this options:
HTML Code:
<select rel="dropdown" name="moduleField">
<option value="ot_cod_fee">ot_cod_fee</option>
<option value="ot_coupon">ot_coupon</option>
<option value="ot_group_pricing">ot_group_pricing</option>
<option value="ot_gv">ot_gv</option>
<option value="ot_loworderfee">ot_loworderfee</option>
<option value="ot_shipping">ot_shipping</option>
<option value="ot_tax">ot_tax</option>
</select>
Why that t_total.php cames up....or when, I still didn't get it....
....the ot_total should be here, right ?
Thanks
Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread
About the configuration.php?gID=41&cID=816&action=edit:415 Uncaught TypeError: Cannot read property 'length' of undefined
Forget about this, I got this all over the place, and it's from a js that it's counting the chars in the metatag description, but should only run in there.
Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread
Checking the GetRewardPointAdvancedCalculateTable and the SetRewardPointAdvancedCalculateTableFunction , something is wrong here
If I choose the ot_shipping I guess it's related to the ot_total (?) , since when I click update ( with subtract) , it add the ot_total (but with the action add ) ....
But as you can see in the SetRewardPointAdvancedCalculateTableFunction it's setting a t_total.php .... maybe this is the issue ?
But related to what ? jscript ?
Still didn't find out
GetRewardPointAdvancedCalculateTable
Array
(
[0] => ot_total.php
)
SetRewardPointAdvancedCalculateTableFunction
Array
(
[0] => Array
(
[module] => t_total.php
[action] => Add
)
)
Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread
Well, after some digging I reach no were.
I've already uninstall the sql, and install it again, since I've done a upgrade...nothing.
The t_total -> Probably the list explode is not wright, but the ot_total is on the ignore list...so not sure why is here.
Changing the redem_points from manual to automatic, makes no difference, it simple doesn't do nothing to the total or sub_total amounts.
I'm not sure if this [redeem_checkout_flag] => should be set to 1 after the checkout_payment , but on checkout_confirmation it's empty
Array
(
[securityToken] => 3906a7a995203c0f60ddcbe065940b6c
[action] => submit
[dc_redeem_code] =>
[redeem_points] => 365
[redeem_checkout_flag] =>
[payment] => eustandardtransfer
[comments] =>
)
But I can find no errors here :
PHP Code:
if(MODULE_ORDER_TOTAL_REWARD_POINTS_TYPE=="Automatic")
$prompt=zen_draw_checkbox_field('redeem_flag',true,isset($_SESSION['redeem_value']),'').' '.zen_draw_hidden_field('redeem_checkout_flag',true);
else
$prompt =zen_draw_input_field('redeem_points',$_SESSION['redeem_points']).' '.zen_draw_hidden_field('redeem_checkout_flag',true);
The customer loses his points and earns new ones on checkout... but it doesn't reflect on the total ....
Must disable this until I find something, or I get into troubles.
Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread
A last clue :
in a zc151 :
($_REQUEST)
Array (
[main_page] => checkout_confirmation
[securityToken] => 332bc18f56cb21482a0c5bb28243620f
[action] => submit
[dc_redeem_code] =>
[redeem_points] => 100
[redeem_checkout_flag] => 1
[payment] => eustandardtransfer
[comments] => )
In zc155 :
Array
(
[main_page] => checkout_confirmation
[securityToken] => 3906a7a995203c0f60ddcbe065940b6c
[action] => submit
[dc_redeem_code] =>
[redeem_points] => 100
[redeem_checkout_flag] =>
[payment] => eustandardtransfer
[comments] =>
)
And in the SESSION values :
zc151:
[REWARD_POINTS_EARNED] => 75
[comments] =>
[redeem_points] => 100
[redeem_value] => 1
zc155:
[REWARD_POINTS_EARNED] => 134
[comments] =>
...so I getting closer.
Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread
In zc155 ( at least I'm the only one complaining until now ( could be a karma thing) )
I can get this to work if I change in modules/order_total/ot_reward_points.php this:
PHP Code:
if(MODULE_ORDER_TOTAL_REWARD_POINTS_TYPE=="Automatic")
$prompt=zen_draw_checkbox_field('redeem_flag',true,isset($_SESSION['redeem_value']),'').' '.zen_draw_hidden_field('redeem_checkout_flag',true);
else
$prompt=zen_draw_input_field('redeem_points',$_SESSION['redeem_points']).' '.zen_draw_hidden_field('redeem_checkout_flag',true);
To this :
PHP Code:
if(MODULE_ORDER_TOTAL_REWARD_POINTS_TYPE=="Automatic")
$prompt=zen_draw_checkbox_field('redeem_flag',true,isset($_SESSION['redeem_value']),'').' '.zen_draw_hidden_field('redeem_checkout_flag',true);
else
$prompt=zen_draw_input_field('redeem_points',isset($_SESSION['redeem_points'])).' '.zen_draw_hidden_field('redeem_checkout_flag',true);
Even so, only setting the zen_draw_hidden_field('redeem_checkout_flag',1) I get the [redeem_checkout_flag] => 1
So, now it's making the calculations, etc..
---------------
About the Advanced Reward Point Calculation Rules, still didn't find a solution...but for this case, or my case, it's not a priority
Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread
Quote:
Originally Posted by
jeking
My client does not update order status so we needed to find a way to award points when orders are placed. I set the completed order status of each payment module to Completed (renamed from Shipping of orders_status_id=3). The Reward Point Sunrise Period is set to zero.
I expected this would award the points as orders are placed. The order status for orders is showing up as 'Completed' but the their points as still Pending.
What did I misunderstand so I can get the desired result?
Well, I don't have this working either but in a different situation: the reward points given to the customer on registration do not pass to earn after the first purchase.
But in your case, have your try to change Reward Point Status Track from simple to advanced, and applied the earning at the pending state ?