Alphauserpoints

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
13 years 4 months ago #25263

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.

  • Posts: 48
  • Thank you received: 1
13 years 4 months ago #25296

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.

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
13 years 4 months ago #25300

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.

  • Posts: 1
  • Thank you received: 0
13 years 4 months ago #25490

How does Alphauserpoints affect it very well?

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

  • Posts: 48
  • Thank you received: 1
13 years 3 months ago #26591

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.

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
13 years 3 months ago #26608

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.

  • Posts: 48
  • Thank you received: 1
13 years 3 months ago #26971

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.

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
13 years 3 months ago #26974

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.

  • Posts: 48
  • Thank you received: 1
13 years 3 months ago #27235

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.

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
13 years 3 months ago #27242

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.

  • Posts: 19
  • Thank you received: 0
13 years 3 months ago #27623

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.

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
13 years 3 months ago #27626

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.

  • Posts: 19
  • Thank you received: 0
13 years 3 months ago #27628

Ok, thanks


Julio Cesar García
Voxturismo.com

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

  • Posts: 48
  • Thank you received: 1
13 years 3 days ago #35788

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.

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
13 years 2 days ago #35840

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 ?

File Attachment:

File Name: plg_hikash...ints.zip
File Size:9 KB

Attachments:

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

  • Posts: 48
  • Thank you received: 1
12 years 11 months ago #36513

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.

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
12 years 11 months ago #36577

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.

  • Posts: 48
  • Thank you received: 1
12 years 11 months ago #36676

screenshot of AUP plugin

Attachments:

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

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
12 years 11 months ago #36897

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.

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
12 years 11 months ago #37545

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.104 seconds
Powered by Kunena Forum