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

#   provide shipping address during registration

##

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

Less More

- Posts: 26
- Thank you received: 0
-
-

10 years 6 months ago [\#239085](#239085) by [issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")  *[provide shipping address during registration](/forum/27-checkout/884319-provide-shipping-address-during-registration#239085 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.4.8  Hi , I would like to simplify guest checkout by dispalying both billing and shipping address(in case the product is shippable of course) initially, I guessed that I should update the view registration&#95;bootstrap to check for shippment requirement and then display the view of shipping address, but how I am going to direct the system to save the address when the user press &quot;register&quot;. this will require - as far as I know- a modification to some controller function, can you please assist me on that ?")* was created by *[issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")*

-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.4.8

Hi , I would like to simplify guest checkout by dispalying both billing and shipping address(in case the product is shippable of course) initially,
I guessed that I should update the view registration_bootstrap to check for shippment requirement and then display the view of shipping address, but how I am going to direct the system to save the address when the user press "register".
this will require - as far as I know- a modification to some controller function,
can you please assist me on that ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NDMxOS1wcm92aWRlLXNoaXBwaW5nLWFkZHJlc3MtZHVyaW5nLXJlZ2lzdHJhdGlvbj90bXBsPW1hcmtkb3du) 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: 14326
-
-

10 years 6 months ago [\#239126](#239126) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[provide shipping address during registration](/forum/27-checkout/884319-provide-shipping-address-during-registration#239126 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.4.8  Hi , I would like to simplify guest checkout by dispalying both billing and shipping address(in case the product is shippable of course) initially, I guessed that I should update the view registration&#95;bootstrap to check for shippment requirement and then display the view of shipping address, but how I am going to direct the system to save the address when the user press &quot;register&quot;. this will require - as far as I know- a modification to some controller function, can you please assist me on that ?")*

Hi,

Yes, the system doesn't support the saving of the extra fields you would add. So you'll have to edit the file components/com_hikashop/controllers/checkout.php in the _doRegister function which handles the registration.
It actually calls the function "register" of administrator/components/com_hikashop/classes/user.php so you'll want to look there as well. While you might not need to modify that second file, that's where the address fields are saved so it will be interesting to you to see how it's done by default.

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

10 years 6 months ago [\#239259](#239259) by [issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")  Replied by *[issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")* on topic *[provide shipping address during registration](/forum/27-checkout/884319-provide-shipping-address-during-registration#239259 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.4.8  Hi , I would like to simplify guest checkout by dispalying both billing and shipping address(in case the product is shippable of course) initially, I guessed that I should update the view registration&#95;bootstrap to check for shippment requirement and then display the view of shipping address, but how I am going to direct the system to save the address when the user press &quot;register&quot;. this will require - as far as I know- a modification to some controller function, can you please assist me on that ?")*

thanks for your guidance, I have managed to store the address , however the next step(address) is displayed yet it contains the previously entered address, how can I make the checkout jumps over the address step,
I thought I can delete the step "address" from the checkout, but that disables displaying it altogether (even during the registration )
can you please assist me ?
I think I need to load checkout/ address view during registration, but I can't load the view from another controller(registration is part of "user" while "address" is part of checkout)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NDMxOS1wcm92aWRlLXNoaXBwaW5nLWFkZHJlc3MtZHVyaW5nLXJlZ2lzdHJhdGlvbj90bXBsPW1hcmtkb3du) 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: 14326
-
-

10 years 6 months ago [\#239271](#239271) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[provide shipping address during registration](/forum/27-checkout/884319-provide-shipping-address-during-registration#239271 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.4.8  Hi , I would like to simplify guest checkout by dispalying both billing and shipping address(in case the product is shippable of course) initially, I guessed that I should update the view registration&#95;bootstrap to check for shippment requirement and then display the view of shipping address, but how I am going to direct the system to save the address when the user press &quot;register&quot;. this will require - as far as I know- a modification to some controller function, can you please assist me on that ?")*

Hi,

To set the billing or shipping address you can do like that: Code:

$app = JFactory::getApplication(); $app-&gt;setUserState(HIKASHOP_COMPONENT.'.shipping_address', $address_id); $app-&gt;setUserState(HIKASHOP_COMPONENT.'.billing_address', $address_id);

It will then be used automatically by the address view.

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

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