[Skip to main content](#vessel-content)

#   refresh page after login

##

- **[jean-loup](/forum/user/40284-jean-loup "View jean-loup's Profile")**
- [![jean-loup's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40284-jean-loup "View jean-loup's Profile") Topic Author
- [ Offline](/forum/user/40284-jean-loup)

Less More

- Posts: 176
- Thank you received: 8
-
-

4 years 2 months ago [\#344413](#344413) by [jean-loup](/forum/user/40284-jean-loup "View jean-loup's Profile")  *[refresh page after login](/forum/27-checkout/904962-refresh-page-after-login#344413 "Good morning,  Is there any possibility to refresh automatically a page after a customer login (during checkout process)?  Since I have 2 modules on the same page where one is displayed only for guest users (so before login) and another only for registered users (so should be after login).  Of course if I manually refresh the page it's working perfectly.  Thank you for your help  Jean-Loup")* was created by *[jean-loup](/forum/user/40284-jean-loup "View jean-loup's Profile")*

Good morning,

Is there any possibility to refresh automatically a page after a customer login (during checkout process)?

Since I have 2 modules on the same page where one is displayed only for guest users (so before login) and another only for registered users (so should be after login).

Of course if I manually refresh the page it's working perfectly.

Thank you for your help

Jean-Loup

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNDk2Mi1yZWZyZXNoLXBhZ2UtYWZ0ZXItbG9naW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14327
-
-

4 years 2 months ago [\#344417](#344417) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[refresh page after login](/forum/27-checkout/904962-refresh-page-after-login#344417 "Good morning,  Is there any possibility to refresh automatically a page after a customer login (during checkout process)?  Since I have 2 modules on the same page where one is displayed only for guest users (so before login) and another only for registered users (so should be after login).  Of course if I manually refresh the page it's working perfectly.  Thank you for your help  Jean-Loup")*

Hi,

There are two solutions:
- if you change your checkout workflow to have the "login" block on its own step, once the user registers/logs in the checkout will automatically move to the next step and that will require a full page change.
- Supposing you have the address and login blocks on the same step, when you register/login, the login block refreshs itself to be empty, and the empty address block refreshes itself to display the address block interface. This last part is done by the code: Code:

window.Oby.registerAjax(['checkout.user.updated','checkout.address.updated'], function(params){ window.checkout.refreshAddress(&lt;?php echo (int)$this-&gt;step; ?&gt;, &lt;?php echo (int)$this-&gt;module_position; ?&gt;); });

in the file show_block_address that you can edit via the menu Display&gt;Views.
So you can change that code to: Code:

window.Oby.registerAjax(['checkout.user.updated','checkout.address.updated'], function(params){ window.location.reload(true); });

It will force the page to reload after the login.

The following user(s) said Thank You: [jean-loup](/forum/user/40284-jean-loup "View jean-loup's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNDk2Mi1yZWZyZXNoLXBhZ2UtYWZ0ZXItbG9naW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jean-loup](/forum/user/40284-jean-loup "View jean-loup's Profile")**
- [![jean-loup's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40284-jean-loup "View jean-loup's Profile") Topic Author
- [ Offline](/forum/user/40284-jean-loup)

Less More

- Posts: 176
- Thank you received: 8
-
-

4 years 2 months ago [\#344430](#344430) by [jean-loup](/forum/user/40284-jean-loup "View jean-loup's Profile")  Replied by *[jean-loup](/forum/user/40284-jean-loup "View jean-loup's Profile")* on topic *[refresh page after login](/forum/27-checkout/904962-refresh-page-after-login#344430 "Good morning,  Is there any possibility to refresh automatically a page after a customer login (during checkout process)?  Since I have 2 modules on the same page where one is displayed only for guest users (so before login) and another only for registered users (so should be after login).  Of course if I manually refresh the page it's working perfectly.  Thank you for your help  Jean-Loup")*

Works like a charm thank you very much

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNDk2Mi1yZWZyZXNoLXBhZ2UtYWZ0ZXItbG9naW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.053 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
