Hikashop user points
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.
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.
There is nothing special with user points plugin configuration.
You can try it here:
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...
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
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
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.
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:
I hope you see the issue.
Thanks
Please Log in or Create an account to join the conversation.
Ok, I think I know what is the issue.
Change the line:
window.Oby.registerAjax('checkout.cart.updated', function(params){
to:
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
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
Please Log in or Create an account to join the conversation.
Thanks. We've added another patch for that.
Please Log in or Create an account to join the conversation.