Hikashop user points

  • Posts: 1119
  • Thank you received: 114
5 years 8 months ago #296017

-- HikaShop version -- : 1807241124

Hi,

There is another issue with hikashop user points.

If you have one page checkout. After login or registration user points view do not show. You need to refresh page...

Please advise?

Thanks

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

  • Posts: 81428
  • Thank you received: 13058
  • MODERATOR
5 years 8 months ago #296035

Hi,

Please provide screenshots of the settings of your user point plugins, a link to the cwebsite and instructions to reproduce so that we can look at the issue.

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

  • Posts: 1119
  • Thank you received: 114
5 years 8 months ago #296042

Hi,

There is nothing special with user points plugin configuration.



You can try it here:
This message contains confidential information


Checkout use default protostar template.

Now to reproduce the issue:

1. Add any product to cart and checkout
2.Login using credentials bellow or create new account, it doesn't matter...

This message contains confidential information


3. After successful login or registration you should see user points bellow payment method but user points view is not showing.
4. Refresh page and user points are showing bellow payment method.

Checkout config:



Thanks

Attachments:

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

  • Posts: 81428
  • Thank you received: 13058
  • MODERATOR
5 years 8 months ago #296058

Hi,

Can you also provide a screenshot of the settings if the user points payment method and the user points plugin via the menus System>Plugins and System>Payment methods (if any) ?
These are where the main settings are for the user points system.

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

  • Posts: 1119
  • Thank you received: 114
5 years 8 months ago #296080

Hi,

Sure, here is the system -> plugins screenshot:

Only one plugin here, type of userpoints



And another one of system-> payment method plugin



Hope this helps

Thank you

Attachments:

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

  • Posts: 1119
  • Thank you received: 114
5 years 8 months ago #296081

Also both plugins have restriction set to "Registered"

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

  • Posts: 81428
  • Thank you received: 13058
  • MODERATOR
5 years 8 months ago #296116

Hi,

You need to remove the access level on these plugins. Otherwise, the plugins won't be loaded by Joomla and they won't work properly.
For example, when a payment notification arrives after the payment, the current user is the paypal server, which is not registered. So when the order status is changed, the points won't be affected as Joomla won't load the plugins.
So I would first recommend to do a simple test without any access level.

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

  • Posts: 1119
  • Thank you received: 114
5 years 8 months ago #296122

Hi,

It didn't help. After login or registration you still need to refresh page in order to see user points block. As i understand it's because login and registration is done via ajax and user points block isn't refreshed after...

Also if i remove access levels then you can't choose to use points or not. It's just shows "You can earn 36 points with this order
". There is no radio buttons switcher

I also have made quick video. Which you can see it here:

This message contains confidential information


I hope you see the issue.

Thanks

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

  • Posts: 81428
  • Thank you received: 13058
  • MODERATOR
5 years 8 months ago #296168

Hi,

Ok, I think I know what is the issue.
Change the line:
window.Oby.registerAjax('checkout.cart.updated', function(params){
to:

window.Oby.registerAjax(['checkout.user.updated','checkout.cart.updated'], function(params){
in the file plugins/hikashop/userpoints/userpoints_checkout.php and that should help with the refresh of the user points view when the user logs in on a one page checkout.

Last edit: 5 years 8 months ago by Jerome. Reason: [code] tag is nice

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

  • Posts: 1119
  • Thank you received: 114
5 years 8 months ago #296175

Hi,

Unfortunately it didn't help.

Shouldn't some kinda function to be added in show_block_login view which will add/update user points?

Any other solutions please?

Kind Regards

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

  • Posts: 1119
  • Thank you received: 114
5 years 8 months ago #296260

Any news regarding this?

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

  • Posts: 25997
  • Thank you received: 4004
  • MODERATOR
5 years 8 months ago #296275

Hello,

No, the patch that gave you Nicolas should work ; the fact that there was no the "code" tag might have affect the display of brackets.
And there is nothing to change in any other view that the one mentioned ; the view "show_block_login" is just for the login and nothing else.

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: 1119
  • Thank you received: 114
5 years 8 months ago #296278

Hi,

Well it should work but it doesn't not. The issue is same as per my video. You are welcome to try it by your self locally or in my test site. I can give you credentials again if need it.



Thank you

Attachments:

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

  • Posts: 81428
  • Thank you received: 13058
  • MODERATOR
5 years 8 months ago #296324

Hi,

We were able to reproduce the problem on our end and add a patch for it.
As the patch is quite complex to add, we've included in a new build of the 3.5.1.

So you can just download the install package on our website and install it on yours and you'll get the patch.

The following user(s) said Thank You: kyratn

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

  • Posts: 1119
  • Thank you received: 114
5 years 8 months ago #296328

Hi,

Thank you, It works fine now. However there is still small issue.

After login or registration the hikashop_checkout_userpoints div is dublicated as per my screenshot bellow:



So i had to apply some css in order to fix that and i am fine with this....


Thank you very much for great support.

Have a great day

Attachments:

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

  • Posts: 81428
  • Thank you received: 13058
  • MODERATOR
5 years 8 months ago #296332

Hi,

Thanks. We've added another patch for that.

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

Time to create page: 0.078 seconds
Powered by Kunena Forum