Ajax checkout log in and Login module

  • Posts: 200
  • Thank you received: 75
7 years 4 months ago #273539

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.2

Hi,

we've come across a small issue when using the new Ajax checkout.
If a user logs in on the checkout his addresses will be loaded through Ajax without the page refreshing, which works fine.

However, at the top of every page we also have a menu with a standard Joomla login module where users can log in, and because the page doesn't refresh when logging in on the checkout, this module will still show "log in" even though the user just did and is logged in, which can be a bit confusing.

We could force a page reload, but would like to ask if there is any way when a user logs in in the checkout to also let the rest of the page know he is logged in without requiring a page reload? Thanks for any help!

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
7 years 4 months ago #273582

Hi,

That's already in place. When something happens in the checkout HikaShop fires different javascript events and the whole page can register to these events in order to be notified. That's how the cart module will refresh for example.
The problem with the login module of Joomla is that it doesn't have any ajax refresh capability. So there is no way to refresh it like the HikaShop modules and checkout blocks.
So the only solution will be to force a page reload in your case.

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

  • Posts: 329
  • Thank you received: 94
7 years 4 months ago #273625

Or you could switch to a third party AJAX Joomla login module and modify it slightly to respond to the HikaShop login event. We've used this one on a few client sites: offlajn.com/improved-ajax-login.html

Heck, if you write them, they might even make the change to support it in their product if you are lucky. :)


~ Deb Cinkus, CEO

Polished Geek: more with monday․com
eCommerce Business Process Automation Experts
The following user(s) said Thank You: GW

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

Time to create page: 0.070 seconds
Powered by Kunena Forum