Skip to main content

Alphauserpoints

More
15 years 2 weeks ago #25263 by nicolas
Replied by nicolas on topic Re: Alphauserpoints
For the discount issue, could you try to change the line:
$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.

More
15 years 2 weeks ago #25296 by SLLLC
Replied by SLLLC on topic Re: Alphauserpoints
For my Prob #2

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.

More
15 years 2 weeks ago #25300 by nicolas
Replied by nicolas on topic Re: Alphauserpoints
The change needs to be done BEFORE confirming the order as the points are given at that point. If you change the code after confirming the order, nothing will happen as you experienced.

Please Log in or Create an account to join the conversation.

More
15 years 1 week ago #25490 by Snickerskie
Replied by Snickerskie on topic Re: Alphauserpoints
How does Alphauserpoints affect it very well?

Please Log in or Create an account to join the conversation.

More
14 years 11 months ago #26591 by SLLLC
Replied by SLLLC on topic Re: Alphauserpoints
I am still having the prob with points being credited in AUP after purchase order status is changed to confirmed from PayPal.
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.

More
14 years 11 months ago #26608 by nicolas
Replied by nicolas on topic Re: Alphauserpoints
Could you try to add the code:
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.

More
14 years 11 months ago #26971 by SLLLC
Replied by SLLLC on topic Re: Alphauserpoints
I have made the requested change so that lines 571-579 of AUP.php now reads as follows:

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.

More
14 years 11 months ago #26974 by nicolas
Replied by nicolas on topic Re: Alphauserpoints
You forgot the closing bracket when adding the code. That's why it's not working.

Please Log in or Create an account to join the conversation.

More
14 years 11 months ago #27235 by SLLLC
Replied by SLLLC on topic Re: Alphauserpoints
darn little code Squiggle
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.

More
14 years 11 months ago #27242 by nicolas
Replied by nicolas on topic Re: Alphauserpoints
Could you try to install that new version of the plugin which we just posted there:
www.hikashop.com/en/support/forum/3-bug-...unt-limit.html#27238

Please Log in or Create an account to join the conversation.

More
14 years 11 months ago #27623 by juliogar63
Replied by juliogar63 on topic Re: Alphauserpoints
I can have one main currency AUP as I do not want to sell anything, just want to have the store as a reward for my users?

Julio Cesar García
Voxturismo.com

Please Log in or Create an account to join the conversation.

More
14 years 11 months ago #27626 by nicolas
Replied by nicolas on topic Re: Alphauserpoints
Yes, you can create a new "point" currency and use that for the prices of your products and then use the AUP payment plugin so that your users can pay for your products with the points they have accumulated in AUP.

Please Log in or Create an account to join the conversation.

More
14 years 11 months ago #27628 by juliogar63
Replied by juliogar63 on topic Re: Alphauserpoints
Ok, thanks

Julio Cesar García
Voxturismo.com

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #35788 by SLLLC
Replied by SLLLC on topic Re: Alphauserpoints
update on performance of AUP plugin

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.

More
14 years 8 months ago #35840 by nicolas
Replied by nicolas on topic Re: Alphauserpoints
Hi,

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.

More
14 years 8 months ago #36513 by SLLLC
Replied by SLLLC on topic Re: Alphauserpoints
have installed the latest version from your prior post and no change in update on performance of AUP post behavior

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #36577 by nicolas
Replied by nicolas on topic Re: Alphauserpoints
We cannot reproduce that problem on our end. It works fine for us.

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.

More
14 years 8 months ago #36676 by SLLLC
Replied by SLLLC on topic Re: Alphauserpoints
screenshot of AUP plugin

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #36897 by nicolas
Replied by nicolas on topic Re: Alphauserpoints
Hi,

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.

More
14 years 7 months ago #37545 by nicolas
Replied by nicolas on topic Re: Alphauserpoints
Hi,

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.

Time to create page: 0.263 seconds
Powered by Kunena Forum