Trouble getting AltaUserPoints payment to work

  • Posts: 195
  • Thank you received: 5
  • Hikashop Business
7 years 11 months ago #257928

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.5
-- PHP version -- : 7.0.13
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : n/a

I've tried to get AltaUserPoints payment working per instructions here:
www.hikashop.com/support/support/documen...57-using-points.html

However, that page doesn't explain several of the options.

Specifically - the "Use virtual coupons' - it really doesn't explain what YES or NO does.

In setting this to YES there appears to be no way to pay with points during checkout. No payment option and no discount taken.

When this is set to NO an options appears to allow you to purchase with Points.

When you click on the Pay with Points button (to select that as your payment option) and then click the finish button, the page refreshes, but nothing seems to happen. If I again click FINISH the order goes through and is marked confirmed.

IF there is not enough points to cover the entire purchase, it shows how many points. If I select the points button and click Finish a coupon code is added to the order, but nothing else (and the points option is still listed and still says I have the same amount of points available.
If I click the finish button again, it adds another coupon. And if I click it one more time it confirms the order.

This is VERY confusing to users (or there is a bug/configuration issue somewhere.
However, because that document page is not complete and not clear it's hard to tell which it is.

I did set the "Minimum (percent)" to 100 and that prevented the display/availability when not enough points were available to pay the entire order; however, the need to double-click is still there for orders where there are 100% points available.

Also, points are never deducted from the total points for the user in AltaUserPoints

At this point we've had to disable the points payment system because it just doesn't seem to work.

Are there more configurations required to make this work properly?

Do we need to have a user_points field if we are using AltaUserPoints? The documentation is not clear about that (I've tried it with and without and neither seems to work).

Help please!

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 11 months ago #257950

Hi,

Please read all documentation related to "user points".
The tutorial is just the first step, an introduction for the points system.
www.hikashop.com/support/documentation/2...-payment-method.html

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 195
  • Thank you received: 5
  • Hikashop Business
7 years 11 months ago #257966

I have read that also.

And I've tried both settings for 'Use virtual coupons'.
Neither of these settings seem to allow the system to work.

When set to NO the coupon is added but the payment options never change/update.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 11 months ago #258022

Hi,

Use virtual coupons: When that option is activated, instead of using an auto generated coupon during the checkout in order to use the points, the points will be added as an additional line before the final total. That means that users can use at the same time points and a coupon.

Like the documentation explain, the "no virtual coupon" will create an HikaShop coupon and assign it to the order.
I personally do not recommend to use that mode ; the usage of the virtual coupon is much better.
But if you have plugins which also use the "cart additional" feature (like the eco-tax plugin) ; it is possible that it generate a conflict.
So you first need to be sure to have the very latest HikaShop 2.6.4 package and if the problem persist ; you'll need to provide details about your plugin configuration (in the HikaShop > Plugins part and also in the Joomla > Plugins section)

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 7 years 11 months ago by Jerome. Reason: fix quote

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

  • Posts: 195
  • Thank you received: 5
  • Hikashop Business
7 years 11 months ago #258029

If we set it to the virtual mode, then it appears that there is no way to allow a user to decide IF they want to use their points or not to discount the cost of the item.

In our case, there may be times when a person might want to checkout and NOT use any of their points.

Is there a way to do that with the virtual option on?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 11 months ago #258030

Hi,

CF : www.hikashop.com/support/support/documen...57-using-points.html

More configuration

If you want to go further with the user points, we will recommend you to access to configuration of the "HikaShop user points" plugin in the Joomla plugin manager.
Thanks to it, you will be able to activate some specific features like a new "checkout workflow step" which can display to the customer the number of points he got and allow him to use or not his points to create a discount.


Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 195
  • Thank you received: 5
  • Hikashop Business
7 years 11 months ago #258088

If you look back to my original post you will see that that is exactly what I was trying to get working - and it doesn't.

Using the Payment plugin doesn't properly function as a payment tool - you click to proceed but the cart never 'processes' the payment, unless you click finish about 2-3 times. And then the points are never deducted from the points amount.

Also, there is no "checkout workflow step" added to the configuration screens related to points.

So ... the problem appears to be this plugin is not working properly.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 years 11 months ago #258136

Hi,

It's working for us. So there must be a problem with how you setup the plugin.
Please provide a screenshot of the settings of that plugin, of the settings of the user points payment method and a screenshot of the Checkout tab of the hikaShop configuration.

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

  • Posts: 195
  • Thank you received: 5
  • Hikashop Business
7 years 11 months ago #258153

Here are shots of those items, also a front-end shot. It all looks good, it just doesn't DO anything (other than marking the order as 'confirmed' IF you click the FINISH button several times. However, it never deducts any points from the user's AUP account. And I also just noticed that it doesn't send an email to the user when they use the points payment options (but it DOES send email when they pay with the other options).

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 11 months ago #258155

Hi,

You're not using the "virtual coupon" mode.
So the process you're describing is normal (no bug, everything good) and is also in the direction where we are telling you to not go.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 195
  • Thank you received: 5
  • Hikashop Business
7 years 11 months ago #258180

OK ... I enabled that (virtual); however, it is still not deducting the points from the users point totals in AUP, and not sending the sales email.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 11 months ago #258251

Hi,

1 - Your module in the checkout workflow is configure to use "Alta User Points".
2 - Your "user points" payment instance is configure to use "Alpha User Points".
3 - Your cart is not display in the same step than the "user points" block in your workflow.
4 - The configuration of the payment plugin is asking for the entire cover of the order by the points with a strange organisation (partial authorized but min is 100% and max is 100%).

You should configure your elements to use the same point component.
And you should check your configuration and your restrictions.

The block you display your the number of points and propose you to use or not the points for the order.
If you accept, the cart will include an extra line (under the shipping) for the discount ; the cart additional :

But if you have plugins which also use the "cart additional" feature (like the eco-tax plugin) ; it is possible that it generate a conflict.
So you first need to be sure to have the very latest HikaShop 2.6.4 package and if the problem persist ; you'll need to provide details about your plugin configuration (in the HikaShop > Plugins part and also in the Joomla > Plugins section)


Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 195
  • Thank you received: 5
  • Hikashop Business
7 years 10 months ago #258372

1 - Your module in the checkout workflow is configure to use "Alta User Points".

I'm guessing you mean the setting within the "Hikashop UserPoints Plugin".
That is because I'm using Alta User Points, Alpha User Points is not an option (probably because it is not installed).

2 - Your "user points" payment instance is configure to use "Alpha User Points".

The only 2 options available are "ALPHA_USER_POINTS" and "HIKASHOP_USER_POINTS".
There is no ALTA user points option.
Also, why are these strings not being properly translated?
What is the proper solution here?

3 - Your cart is not display in the same step than the "user points" block in your workflow.

Does this matter?
Logically, the points should be displayed at the time of payment, not at the time the cart is displayed.

4 - The configuration of the payment plugin is asking for the entire cover of the order by the points with a strange organisation (partial authorized but min is 100% and max is 100%).

I do not remember changing either of these amounts

I have moved the points to the cart step in the process (item 3)
I've cleared the values in min/max fields (item 4)

And the checkout process appears to work fine (from the user's perspective).

HOWEVER ...

The points are still not subtracted from the user's AltaUserPoints account (possibly due to the lack of an AltaUserPoints integration option in item 2).
AND
The payment (on HS order listing) shows no payment method at all).

IF we have these all set-up like this, do we really need a payment plugin for points. It now appears that the points are handled at the point of cart processing not the point of payment processing.

I must say this whole configuration process is rather confusing (documentation doesn't have a clear explanation of how to configure each of these pieces).

Can you please let me know what to do related to issue #2 - I'm guessing that might solve our last problem.

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

  • Posts: 195
  • Thank you received: 5
  • Hikashop Business
7 years 10 months ago #258373

Forget the question about the need for the payment plugin. After additional testing I see that if that plugin is not enabled, no point action happens (other than displaying the available points).

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

  • Posts: 195
  • Thank you received: 5
  • Hikashop Business
7 years 10 months ago #258711

We are still unable to get this working.

I've taken a look at the files in the /plugins/hikashoppayment/userpoints area.

I see in userpoints.php that there is a function to GET the AUP points. And that function seems to be working properly.

However, I can't find anywhere that the system actually will DEDUCT the points used from AUP.

Am I missing something or is this functionality only 1/2 coded?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 years 10 months ago #258743

Hi,

1. You don't see the correct text because your translation file is not up to date.
If you look at the current translation file for english available on our website ( www.hikashop.com/download/languages.html ), you'll see that text on the line 2840:
ALPHA_USER_POINTS="AltaUserPoints"
So actually, when you select the "ALPHA_USER_POINTS" choice, it is AltaUserPoints that is selected.
So that is fine.

2. If you use the virtual coupon mode (with the "user points" view and not the payment method selection interface to select if you want to pay with points or not), cart view will display the points used and the new amount on the cart view. If you place the cart view before that, then you won't know the total of your order after selecting to use the points.

3. The function is not half coded. The user points will be deducted based on how you configured the different plugins.
The code to handle that is located either in the onBeforeOrderCreate or the onAfterOrderCreate function of the user points payment plugin, or in the function giveAndGiveBack of the user points plugin.
If the points are not deducted, it's because the system considered that they shouldn't based on how you configured the plugins.
For example, if you turned off the partial payment setting and that you don't have enough points to cover the total amount, or if the user points payment method is not selected in the payment methods selector, or if you didn't select yes to use the points in the user points view of the checkout, etc.
It could be a lot of things, as the plugins allow you to configure the points system in several different ways in order to cover all the different cases you might need.

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

  • Posts: 195
  • Thank you received: 5
  • Hikashop Business
7 years 10 months ago #258762

1. Language file
I have regularly updated HS, so I would hope that the language file gets automatically updated (I've never manually changed it).
I did update (Using the system->configuration->languages, and update from the site) and the the text didn't change.
I also manually uploaded the file, still no change (no change in the file itself on server).
I CHMOD the file to 777 and then uploaded and then the file finally changed (then CHMOD back to 644).
However, the userpoints plugin is still showing ALPHA_USER_POINTS. (even after clearing all cache).
Although this might not be a functional problem, it does concern me that there are problems updating the language file (maybe other files aren't updated?).
Any ideas?

2. Virtual Coupon Mode
Yes, I have it set-up that way now. It is displaying as you indicate.

3. Points deducted
The system appears to be functioning properly. The user is allowed to checkout using points. The order is marked confirmed. However, the points are never deducted in AUP.
However, in reviewing the contents of the user points plugin files, compared to the latest release, the files didn't match. The existing/live version on the site was about 100 lines shorter than the latest version.
I've manually updated (CHMOD like in the language file) and tested again.
(I've also manually updated the files in the userpoints plugin as well).
Still same results - checkout works fine, but no points are ever deducted from the AUP user.

AUP is working fine with all other systems (CB Subs, Matukio, etc.).

I realize that this might be a problem with configuration but I've followed the instructions as close as possible and everything seems to be working exactly as it should - just no points deducted. And I would think that none of the configuration options should allow that an order could allow the person to use points to set the order total to 0, thus not requiring them to pay any $$, but then to not deduct those points from the user's points.

I am really at a loss to figure out what is going on here. We've been trying to get this to work for several weeks without any resolution.

Can you help with any other possible issues? Or provide a succinct set-up configuration that should work (with screen shots)?

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

  • Posts: 195
  • Thank you received: 5
  • Hikashop Business
7 years 10 months ago #259471

Is there any possibility of getting help with this issue?

We're at a total stand-still right now because the AUP integration doesn't completely work properly.

Can you either take a look at it OR provide a complete, step-by-step guide including screen shots on how to get AUP to work properly with HS in this way?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 10 months ago #259483

Hi,

See : www.hikashop.com/support/support/documen...57-using-points.html
There is a section talking about the order statuses :

Note : You have to configured your Invoice order status, more precisely an order is seen as finished when the Invoice step is reached. And so, if you order don't reach it, no point will be gain by customer. You can reach this option in Components => HikaShop => Configuration, then in Main tab and Order part.

It is also possible to override that setting in the Joomla part of the HikaShop User point plugin configuration.

In order to know when the points can be deducted (and gain for the earning part), the plugin need to know how determine if an order is paid or not.
To do so, it is using the "invoice status" setting of HikaShop ; setting which also allow HikaShop to generate the invoice number.

If you want to check the points details ; you will see some serialize data in the column "order_payment_params" of the hikashop_order table ; it will allow you to check how many points the user spent and how many it can earn.

Please also note that both "user points" plugin (the hikashop one and the hikashoppayment one) must be published in order to let the full system work properly.
The payment plugin just manage the payment part, but the HikaShop plugin is the one which include the main algorithm and perform the calls with the different point systems (as it is the plugin which receive the order modification events).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 195
  • Thank you received: 5
  • Hikashop Business
7 years 10 months ago #259519

OK ... maybe we're getting closer.
But it is still not deducting points.

First, it is very hard to follow any of the instructions on
www.hikashop.com/support/support/documen...57-using-points.html
Mainly because the english is not written well and hard to read.

Second it appears outdated (the screen shot is VERY old) and not accurate (the phrase "Under the menu "HikaShop > plugins" is not accurate, there is no main menu option of that sort. you have to go into HikaShop then select SYSTEM > plugins, etc.)

Third, we are not 'earning' any points (we are only paying with points), so I did not follow any of the instructions in the 'Earning' section. Yet you are now telling me that I should. I'm just very confused with all these instructions (and I'm 10-year Joomla! user with programming experience).

Fourth, You say that I need to configure the Invoice Order Status; however, you don't indicate what status I need to add here to make it work. I've tried CONFIRMED and CREATED, but neither seem to have any effect (points are still not deducted).

I have the user_points custom field created and published, I have the userpoints plugin enabled, and the userpoints payment enabled.

As I've said, it does EVERYTHING (showing the points available, applying the points to the cart, creating invoice, setting the invoice to completed, etc.) but just never deducts the points within AUP.

While I'm guessing it is still a configuration issue, I still can't identify where the problems are. Can you either provide (up-to-date) screen shots of a properly configured system to make this work, or give step-by-step, field-by-field settings.
Without this type of accurate documentation I don't know how we will ever get this working.

This is a huge 'potential' feature for HikaShop ... but without proper documentation it isn't usable at present.

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

Time to create page: 0.090 seconds
Powered by Kunena Forum