- Posts: 86231
- Thank you received: 14224
Alphauserpoints
$calculatedPrice=$order->cart->total->prices[0]->price_value_with_tax;
to:
$calculatedPrice=$order->cart->total->prices[0]->price_value_with_tax-@$order->cart->coupon->discount_value;
in the file plugins/hikashoppayment/alphauserpoints.php and try again ?
For the other problem, ye,s you should try to overwrite the files with the new ones via FTP. We'll check again the problem on our end tomorrow as it's getting late over here.
Please Log in or Create an account to join the conversation.
I have copied via FTP the AUP plugin files from the folder back/extensions of the package to the folder plugins/hikashoppayment?
p.s. the index.html file size and date did chage
Then went to our site and placed an test order, for $80 less a $10 coupon for a total order of $70. and then in the back-office, Hikashop>Sales set the order status to "confirmed" manually
Looked at the user AUP points rewarded and it still reports as 80 points not 70 points
Next I made the modification $calculatedPrice=$order->cart->total->prices[0]->price_value_with_tax-@$order->cart->coupon->discount_value; to line 263 of the alphauserpoints.php
Re-tried a new test order as above, with no change in the AUP result
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 1
- Thank you received: 0
Please Log in or Create an account to join the conversation.
The AUP points do show up when I manually reset order status to created then confirmed in the backend.
Have copied via FTP the latest AUP plugin files
Please Log in or Create an account to join the conversation.
if(empty($order->customer)){
$userClass = hikashop_get('class.user');
$fullOrder->customer = $userClass->get($fullOrder->order_user_id);
}
after the code:
if(!isset($order->order_status)) return true;
$fullOrder=&hikashop_get('class.order');
$fullOrder=$fullOrder->loadFullOrder($order->order_id, false, false);
in the file plugins/hikashoppayment/alphauserpoints.php and try again ?
Looking at the code, it seems that there is some code missing as the customer information is not loaded when on then front end.
Please Log in or Create an account to join the conversation.
function onAfterOrderUpdate(&$order,&$send_email){
$method=$this->getMethod();
if(!isset($order->order_status)) return true;
$fullOrder=&hikashop_get('class.order');
$fullOrder=$fullOrder->loadFullOrder($order->order_id, false, false);
if(empty($order->customer)){
$userClass = hikashop_get('class.user');
$fullOrder->customer = $userClass->get($fullOrder->order_user_id);
$config=&hikashop_config();
However, when placing an order an clicking on "Checkout" I receve the following message:
Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /home1/plenitud/public_html/site/plugins/hikashoppayment/alphauserpoints.php on line 625
Have reset/FTP AUP.php to org file, so as to use shopping cart.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Made correction, but still having to reset manually to see AUP points credit on confirmed purchase
Please Log in or Create an account to join the conversation.
www.hikashop.com/en/support/forum/3-bug-...unt-limit.html#27238
Please Log in or Create an account to join the conversation.
Julio Cesar García
Voxturismo.com
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I am seeing the following behavior of this plugin
1) when an New order is created in Hikashop there is no "New User" created in AUP
2) When an New order has been Confirmed (from PayPal)in Hikashop, a "New User" is created in AUP. (I have set Rule for AUP New User points to "0", this rule cannot be disabled)
3) I then go back into Hikashop backend and change the New order status to "created" then change back to "confimed" and the AUP points qualified for the order are displayed in the AUP uses's lisiting.
version Hikashop installed 1.5.4
Please Log in or Create an account to join the conversation.
We fixed a lot of things in the AUP plugin recently. Could you install this version and try again to see if that solves your problem too ?
This attachment is hidden for guests.
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Could you do a screenshot of your AUP hikashop payment plugin ? Maybe it comes from your configuration...
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I tried with the exact same settings (and the rule for new users activated in AUP which was already there).
I'm afraid we will have to debug the problem directly on your website. Could you provide a FTP and back end access to your website ?
Please Log in or Create an account to join the conversation.
So I did a test on your website.
I do not see your first point. When you go to the checkout, even before the order is created, when the user registers, his account is added to AUP with 0 points.
Then, when the order is validated (form the backend or from paypal), the points are given to the user.
Please Log in or Create an account to join the conversation.