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

#   \[SOLVED\] ADDRESS Step is Skipped After Login

##

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

Less More

- Posts: 301
- Thank you received: 11
-
-

13 years 2 months ago -  13 years 2 months ago [\#123341](#123341) by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")  *[\[SOLVED\] ADDRESS Step is Skipped After Login](/forum/27-checkout/861948-solved-address-step-is-skipped-after-login#123341 "-- url of the page with the problem -- :   www.stacecosmetics.com/  -- HikaShop version -- : HikaShop Business: 2.2.1 -- Joomla version -- : Joomla! 2.5.14 -- PHP version -- : 5.3.26 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : n/a  When a returning customer goes to checkout, after they login they are then redirected to the SHIPPING step. This is skipping the ADDRESS step which would allow them to select which address they want. (see screenshot of our checkout steps)  Sometimes clicking on the ADDRESS step in the checkout bar will result in the LOGIN box being displayed instead of the addresses.")* was created by *[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")*

-- url of the page with the problem -- : [ www.stacecosmetics.com/](http://www.stacecosmetics.com/)
-- HikaShop version -- : HikaShop Business: 2.2.1
-- Joomla version -- : Joomla! 2.5.14
-- PHP version -- : 5.3.26
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : n/a

When a returning customer goes to checkout, after they login they are then redirected to the SHIPPING step.
This is skipping the ADDRESS step which would allow them to select which address they want.
(see screenshot of our checkout steps)

Sometimes clicking on the ADDRESS step in the checkout bar will result in the LOGIN box being displayed instead of the addresses.

- [ ![h6c6c38b.png](/forum/attachment/12243) ](/forum/attachment/12243 "h6c6c38b.png") [ ](/forum/attachment/12243?download=1 "h6c6c38b.png")

Last edit: 13 years 2 months ago by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile").

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

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

Less More

- Posts: 301
- Thank you received: 11
-
-

13 years 2 months ago [\#123346](#123346) by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")  Replied by *[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")* on topic *[On Checkout: ADDRESS Step is Skipped After Login](/forum/27-checkout/861948-solved-address-step-is-skipped-after-login#123346 "-- url of the page with the problem -- :   www.stacecosmetics.com/  -- HikaShop version -- : HikaShop Business: 2.2.1 -- Joomla version -- : Joomla! 2.5.14 -- PHP version -- : 5.3.26 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : n/a  When a returning customer goes to checkout, after they login they are then redirected to the SHIPPING step. This is skipping the ADDRESS step which would allow them to select which address they want. (see screenshot of our checkout steps)  Sometimes clicking on the ADDRESS step in the checkout bar will result in the LOGIN box being displayed instead of the addresses.")*

Additional Info:

The customer we are having problems with has TWO shipping addresses listed in their account.

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 2 months ago [\#123360](#123360) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[On Checkout: ADDRESS Step is Skipped After Login](/forum/27-checkout/861948-solved-address-step-is-skipped-after-login#123360 "-- url of the page with the problem -- :   www.stacecosmetics.com/  -- HikaShop version -- : HikaShop Business: 2.2.1 -- Joomla version -- : Joomla! 2.5.14 -- PHP version -- : 5.3.26 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : n/a  When a returning customer goes to checkout, after they login they are then redirected to the SHIPPING step. This is skipping the ADDRESS step which would allow them to select which address they want. (see screenshot of our checkout steps)  Sometimes clicking on the ADDRESS step in the checkout bar will result in the LOGIN box being displayed instead of the addresses.")*

Hi,
firstly can you show me some screenshots of how did you configured your checkout configuration page ("*HIkashop-&gt;System-&gt;Configuration-&gt;'Checkout'*") ?

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

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

Less More

- Posts: 301
- Thank you received: 11
-
-

13 years 2 months ago -  13 years 2 months ago [\#123371](#123371) by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")  Replied by *[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")* on topic *[On Checkout: ADDRESS Step is Skipped After Login](/forum/27-checkout/861948-solved-address-step-is-skipped-after-login#123371 "-- url of the page with the problem -- :   www.stacecosmetics.com/  -- HikaShop version -- : HikaShop Business: 2.2.1 -- Joomla version -- : Joomla! 2.5.14 -- PHP version -- : 5.3.26 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : n/a  When a returning customer goes to checkout, after they login they are then redirected to the SHIPPING step. This is skipping the ADDRESS step which would allow them to select which address they want. (see screenshot of our checkout steps)  Sometimes clicking on the ADDRESS step in the checkout bar will result in the LOGIN box being displayed instead of the addresses.")*

Screenshot attached.

The customer deleted the 2nd address and now everything is working as should be.

- [ ![h4b9c6ba.png](/forum/attachment/12244) ](/forum/attachment/12244 "h4b9c6ba.png") [ ](/forum/attachment/12244?download=1 "h4b9c6ba.png")

Last edit: 13 years 2 months ago by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile").

The following user(s) said Thank You: [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")

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

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

Less More

- Posts: 301
- Thank you received: 11
-
-

13 years 2 months ago [\#123512](#123512) by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")  Replied by *[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")* on topic *[On Checkout: ADDRESS Step is Skipped After Login](/forum/27-checkout/861948-solved-address-step-is-skipped-after-login#123512 "-- url of the page with the problem -- :   www.stacecosmetics.com/  -- HikaShop version -- : HikaShop Business: 2.2.1 -- Joomla version -- : Joomla! 2.5.14 -- PHP version -- : 5.3.26 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : n/a  When a returning customer goes to checkout, after they login they are then redirected to the SHIPPING step. This is skipping the ADDRESS step which would allow them to select which address they want. (see screenshot of our checkout steps)  Sometimes clicking on the ADDRESS step in the checkout bar will result in the LOGIN box being displayed instead of the addresses.")*

I just did another test with my own account.

The ADDRESS step is being skipped each time after login.

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 2 months ago [\#123530](#123530) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[On Checkout: ADDRESS Step is Skipped After Login](/forum/27-checkout/861948-solved-address-step-is-skipped-after-login#123530 "-- url of the page with the problem -- :   www.stacecosmetics.com/  -- HikaShop version -- : HikaShop Business: 2.2.1 -- Joomla version -- : Joomla! 2.5.14 -- PHP version -- : 5.3.26 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : n/a  When a returning customer goes to checkout, after they login they are then redirected to the SHIPPING step. This is skipping the ADDRESS step which would allow them to select which address they want. (see screenshot of our checkout steps)  Sometimes clicking on the ADDRESS step in the checkout bar will result in the LOGIN box being displayed instead of the addresses.")*

Hi,

Please edit the controller checkout "components/com_hikashop/controllers/checkout.php" and replace the "before_login" function using this one: Code:

function before_login(){ if(count($this-&gt;controllers) == 1) { $user = JFactory::getUser(); $app = JFactory::getApplication(); $user_id = $app-&gt;getUserState( HIKASHOP_COMPONENT.'.user_id' ); if(!$user-&gt;guest &#124;&#124; $user_id){ $controllersCheck = trim($this-&gt;steps[$this-&gt;previous]); $controllersCheck = explode('_', $controllersCheck); $current = $this-&gt;current + 1; if(count($controllersCheck) == 1 &amp;&amp; $controllersCheck[0] == 'login') $current = $this-&gt;previous + 1; JRequest::setVar('step', $current); JRequest::setVar('previous', 0); $this-&gt;step(); } } return true; }

It will solve the problem.

Regards,

---

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

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

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

Less More

- Posts: 301
- Thank you received: 11
-
-

13 years 2 months ago [\#123610](#123610) by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")  Replied by *[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")* on topic *[On Checkout: ADDRESS Step is Skipped After Login](/forum/27-checkout/861948-solved-address-step-is-skipped-after-login#123610 "-- url of the page with the problem -- :   www.stacecosmetics.com/  -- HikaShop version -- : HikaShop Business: 2.2.1 -- Joomla version -- : Joomla! 2.5.14 -- PHP version -- : 5.3.26 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : n/a  When a returning customer goes to checkout, after they login they are then redirected to the SHIPPING step. This is skipping the ADDRESS step which would allow them to select which address they want. (see screenshot of our checkout steps)  Sometimes clicking on the ADDRESS step in the checkout bar will result in the LOGIN box being displayed instead of the addresses.")*

Yes. Perfect.

Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MTk0OC1zb2x2ZWQtYWRkcmVzcy1zdGVwLWlzLXNraXBwZWQtYWZ0ZXItbG9naW4/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.075 seconds

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