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

#   Getting address from Easy Social Profile with php code

##

- **[paurray](/forum/user/46395-paurray "View paurray's Profile")**
- [![paurray's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar46395.png)](/forum/user/46395-paurray "View paurray's Profile") Topic Author
- [ Offline](/forum/user/46395-paurray)

Less More

- Posts: 139
- Thank you received: 10
-
-

8 years 10 months ago -  8 years 10 months ago [\#285605](#285605) by [paurray](/forum/user/46395-paurray "View paurray's Profile")  *[Getting address from Easy Social Profile with php code](/forum/35-orders-management/893399-getting-address-from-easy-social-profile-with-php-code#285605 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : PHP 7.1.7 . -- Browser(s) name and version -- : firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Hi Hika Shop Team I am reading documentation for Hika Shops email system.    www.hikashop.com/support/documentation/5...fig.html#main&#95;emails  Address format:  When I go to this place in my Joomla back end I see the following:  Mini address format:  Address format:  Mark Lee from Stackideas kindly told me that I can pull an address from their component with the following:  Is it possible to get this to work = Hika Shop pulls the dress from Stackideas?  I am not a coder so any help would be gratefully appreciated.  thanks  Paul")* was created by *[paurray](/forum/user/46395-paurray "View paurray's Profile")*

-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.3
-- PHP version -- : PHP 7.1.7 .
-- Browser(s) name and version -- : firefox
-- Error-message(debug-mod must be tuned on) -- : n/a

Hi Hika Shop Team
I am reading documentation for Hika Shops email system.

[ www.hikashop.com/support/documentation/5...fig.html#main\_emails](https://www.hikashop.com/support/documentation/54-hikashop-config.html#main_emails)

Address format:

> You can specify here the normal format HikaShop will use to display the addresses on invoices, on the checkout, on emails, etc.
> The tags used here correspond to the column name of the address fields that you can find via the menu Display-&gt;Custom fields.
> It is also possible to add custom PHP code and get the address data with such PHP:

When I go to this place in my Joomla back end I see the following:

Mini address format:
Code:

{address_lastname} {address_firstname} - {address_street}, {address_state} ({address_country})

Address format:
Code:

{address_company} {address_title} {address_firstname} {address_lastname} {address_street} {address_post_code} {address_city} {address_state} {address_country} &lt;?php echo JText::sprintf('TELEPHONE_IN_ADDRESS','{address_telephone}');?&gt;

Mark Lee from Stackideas kindly told me that I can pull an address from their component with the following:
Code:

&lt;?php include_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/easysocial.php'); // Assuming that $id is the id of the user. $user = ES::user($id); $address = $user-&gt;getFieldValue('ADDRESS'); echo $address-&gt;address;

Is it possible to get this to work = Hika Shop pulls the dress from Stackideas?

I am not a coder so any help would be gratefully appreciated.

thanks

Paul

Last edit: 8 years 10 months ago by [paurray](/forum/user/46395-paurray "View paurray's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50Lzg5MzM5OS1nZXR0aW5nLWFkZHJlc3MtZnJvbS1lYXN5LXNvY2lhbC1wcm9maWxlLXdpdGgtcGhwLWNvZGU/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86567
- Thank you received: 14314
-
-

8 years 10 months ago [\#285609](#285609) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Getting address from Easy Social Profile with php code](/forum/35-orders-management/893399-getting-address-from-easy-social-profile-with-php-code#285609 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : PHP 7.1.7 . -- Browser(s) name and version -- : firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Hi Hika Shop Team I am reading documentation for Hika Shops email system.    www.hikashop.com/support/documentation/5...fig.html#main&#95;emails  Address format:  When I go to this place in my Joomla back end I see the following:  Mini address format:  Address format:  Mark Lee from Stackideas kindly told me that I can pull an address from their component with the following:  Is it possible to get this to work = Hika Shop pulls the dress from Stackideas?  I am not a coder so any help would be gratefully appreciated.  thanks  Paul")*

Hi,

Supposing that you remove the capability for the customers to edit/create/delete/select addresses on the checkout, you could add such code in the emails/invoice/order details views and replace $id by the id of the customer in the order.
It will be in either $data-&gt;cart-&gt;customer-&gt;user_cms_id, or $this-&gt;order-&gt;customer-&gt;user_cms_id etc based on where you do the change.
But for HikaShop to be able to pull the data of the address of EasySocial in HikaShop so that the addresses of EasySocial can be selected/modified/deleted, etc in HikaShop will require some heavy development for a synchronization system.

However, if you don't know coding at all, even the easy solution won't be possible. I would recommend to ask for help from a PHP developer to help you with that.

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

- **[paurray](/forum/user/46395-paurray "View paurray's Profile")**
- [![paurray's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar46395.png)](/forum/user/46395-paurray "View paurray's Profile") Topic Author
- [ Offline](/forum/user/46395-paurray)

Less More

- Posts: 139
- Thank you received: 10
-
-

8 years 10 months ago -  8 years 10 months ago [\#285656](#285656) by [paurray](/forum/user/46395-paurray "View paurray's Profile")  Replied by *[paurray](/forum/user/46395-paurray "View paurray's Profile")* on topic *[Getting address from Easy Social Profile with php code](/forum/35-orders-management/893399-getting-address-from-easy-social-profile-with-php-code#285656 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : PHP 7.1.7 . -- Browser(s) name and version -- : firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Hi Hika Shop Team I am reading documentation for Hika Shops email system.    www.hikashop.com/support/documentation/5...fig.html#main&#95;emails  Address format:  When I go to this place in my Joomla back end I see the following:  Mini address format:  Address format:  Mark Lee from Stackideas kindly told me that I can pull an address from their component with the following:  Is it possible to get this to work = Hika Shop pulls the dress from Stackideas?  I am not a coder so any help would be gratefully appreciated.  thanks  Paul")*

Hi Nicolas

> Supposing that you remove the capability for the customers to edit/create/delete/select addresses on the checkout, you could add such code in the emails/invoice/order details views and replace $id by the id of the customer in the order.

I have already done so.

As I am selling digital products the address is not such a big deal.

I just thought that it would be a "nice to have"

I guess that the really quick and dirty solution would be...

to remove the Mini address format:
Code:

{address_lastname} {address_firstname} - {address_street}, {address_state} ({address_country})

and remove Address format:
Code:

{address_company} {address_title} {address_firstname} {address_lastname} {address_street} {address_post_code} {address_city} {address_state} {address_country} &lt;?php echo JText::sprintf('TELEPHONE_IN_ADDRESS','{address_telephone}');?&gt;

And then the address just does not display. Right?

In all fairness Easy Social has amazing profiles etc and any profile integration will go in the other direction.

> But for HikaShop to be able to pull the data of the address of EasySocial in HikaShop so that the addresses of EasySocial can be selected/modified/deleted, etc in HikaShop will require some heavy development for a synchronization system.

Kind of lossing you here but I will be looking at the mails at some point &amp; yes will probably need to get a developer to look at this... :whistle:

> It will be in either $data-&gt;cart-&gt;customer-&gt;user\_cms\_id, or $this-&gt;order-&gt;customer-&gt;user\_cms\_id etc based on where you do the change.

FYI I have made good progress with he help of a developer getting the following working:

- Register/Login from Hika Shop Page is redirected to Easy Social.

Some one who purchases a Hika Shop product gets put in an Easy Social Group
-

.

thanks

Paul

Last edit: 8 years 10 months ago by [paurray](/forum/user/46395-paurray "View paurray's Profile").

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

- **[paurray](/forum/user/46395-paurray "View paurray's Profile")**
- [![paurray's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar46395.png)](/forum/user/46395-paurray "View paurray's Profile") Topic Author
- [ Offline](/forum/user/46395-paurray)

Less More

- Posts: 139
- Thank you received: 10
-
-

8 years 10 months ago -  8 years 10 months ago [\#285679](#285679) by [paurray](/forum/user/46395-paurray "View paurray's Profile")  Replied by *[paurray](/forum/user/46395-paurray "View paurray's Profile")* on topic *[Getting address from Easy Social Profile with php code](/forum/35-orders-management/893399-getting-address-from-easy-social-profile-with-php-code#285679 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : PHP 7.1.7 . -- Browser(s) name and version -- : firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Hi Hika Shop Team I am reading documentation for Hika Shops email system.    www.hikashop.com/support/documentation/5...fig.html#main&#95;emails  Address format:  When I go to this place in my Joomla back end I see the following:  Mini address format:  Address format:  Mark Lee from Stackideas kindly told me that I can pull an address from their component with the following:  Is it possible to get this to work = Hika Shop pulls the dress from Stackideas?  I am not a coder so any help would be gratefully appreciated.  thanks  Paul")*

I tried the code Stackideas suggested and it stripped out the address.

They have not given up on me. :silly:

And I will post a solution if/and when they figure this out.

- [ ![111-ShippingAndPaymentHere.png](/forum/attachment/42092) ](/forum/attachment/42092 "...aymentHere.png") [ ](/forum/attachment/42092?download=1 "...aymentHere.png")
- [ ![222-BeforeAddingCodeFromMark.png](/forum/attachment/42093) ](/forum/attachment/42093 "...deFromMark.png") [ ](/forum/attachment/42093?download=1 "...deFromMark.png")
- [ ![333-AfterAddingCodeFromMark.png](/forum/attachment/42094) ](/forum/attachment/42094 "...deFromMark.png") [ ](/forum/attachment/42094?download=1 "...deFromMark.png")
- [ ![444-AddressHikaShop-EDITING.png](/forum/attachment/42095) ](/forum/attachment/42095 "...op-EDITING.png") [ ](/forum/attachment/42095?download=1 "...op-EDITING.png")
- [ ![555-Address-EasySocial.png](/forum/attachment/42096) ](/forum/attachment/42096 "...EasySocial.png") [ ](/forum/attachment/42096?download=1 "...EasySocial.png")

Last edit: 8 years 10 months ago by [paurray](/forum/user/46395-paurray "View paurray's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50Lzg5MzM5OS1nZXR0aW5nLWFkZHJlc3MtZnJvbS1lYXN5LXNvY2lhbC1wcm9maWxlLXdpdGgtcGhwLWNvZGU/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86567
- Thank you received: 14314
-
-

8 years 10 months ago -  8 years 10 months ago [\#285657](#285657) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Getting address from Easy Social Profile with php code](/forum/35-orders-management/893399-getting-address-from-easy-social-profile-with-php-code#285657 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : PHP 7.1.7 . -- Browser(s) name and version -- : firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Hi Hika Shop Team I am reading documentation for Hika Shops email system.    www.hikashop.com/support/documentation/5...fig.html#main&#95;emails  Address format:  When I go to this place in my Joomla back end I see the following:  Mini address format:  Address format:  Mark Lee from Stackideas kindly told me that I can pull an address from their component with the following:  Is it possible to get this to work = Hika Shop pulls the dress from Stackideas?  I am not a coder so any help would be gratefully appreciated.  thanks  Paul")*

You can empty the "address format" yet.
Then, you want to edit the "show_block_address" or "address" files of the "checkout" view and add such code at the top: Code:

&lt;?php include_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/easysocial.php'); // Assuming that $id is the id of the user. $user = JFactory::getUser(); $user = ES::user($user-&gt;id); $address = $user-&gt;getFieldValue('ADDRESS'); echo $address-&gt;address; return; ?&gt;

That way, on the checkout you'll have the address from easysocial displayed.
And you won't have any address on the other views that the customer can access. Then, as I said, you can add that code, changing the $id variable in the emails, etc.
If you're savvy, you might be able to do it without a developer, but a developer will be able to do that easily for you so it should be quite cheap.

Last edit: 8 years 10 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: [code] tag

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

- **[paurray](/forum/user/46395-paurray "View paurray's Profile")**
- [![paurray's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar46395.png)](/forum/user/46395-paurray "View paurray's Profile") Topic Author
- [ Offline](/forum/user/46395-paurray)

Less More

- Posts: 139
- Thank you received: 10
-
-

8 years 10 months ago -  8 years 10 months ago [\#285723](#285723) by [paurray](/forum/user/46395-paurray "View paurray's Profile")  Replied by *[paurray](/forum/user/46395-paurray "View paurray's Profile")* on topic *[Getting address from Easy Social Profile with php code](/forum/35-orders-management/893399-getting-address-from-easy-social-profile-with-php-code#285723 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : PHP 7.1.7 . -- Browser(s) name and version -- : firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Hi Hika Shop Team I am reading documentation for Hika Shops email system.    www.hikashop.com/support/documentation/5...fig.html#main&#95;emails  Address format:  When I go to this place in my Joomla back end I see the following:  Mini address format:  Address format:  Mark Lee from Stackideas kindly told me that I can pull an address from their component with the following:  Is it possible to get this to work = Hika Shop pulls the dress from Stackideas?  I am not a coder so any help would be gratefully appreciated.  thanks  Paul")*

Ok Stackideas take support to the next levlel again. :woohoo:

Inserting this here takes care of the address being pulled from Easy Social:
Code:

&lt;?php include_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/easysocial.php'); // Assuming that $id is the id of the user. $user = ES::user($data-&gt;cart-&gt;customer-&gt;user_cms_id); $address = $user-&gt;getFieldValue('ADDRESS'); echo $address-&gt;value-&gt;address;

And inserting this in the same place:

Code:

$hikaredirect = JFactory::getApplication(); $hikaredirect-&gt;redirect(FRoute::profile(), false);

Takes care of the address thing.

So for example clicking:

[ www.finalbug.net/store/address](https://www.finalbug.net/store/address)

When logged in as exampleone

takes me here:

[ www.finalbug.net/exampleone](https://www.finalbug.net/exampleone)

And

clicking:

[ www.finalbug.net/store/address](https://www.finalbug.net/store/address)

When logged in as exampletwo

takes me here:

[ www.finalbug.net/exampletwo](https://www.finalbug.net/exampletwo)

etc

I just thought that i would share this.
Maybe it is useful for some one else.

best

Paul

- [ ![02AddressOnBillEgONE.png](/forum/attachment/42102) ](/forum/attachment/42102 "...nBillEgONE.png") [ ](/forum/attachment/42102?download=1 "...nBillEgONE.png")
- [ ![03AddressOnBillEgTWO.png](/forum/attachment/42103) ](/forum/attachment/42103 "...nBillEgTWO.png") [ ](/forum/attachment/42103?download=1 "...nBillEgTWO.png")
- [ ![555-Address-EasySocial&#95;2018-01-11.png](/forum/attachment/42104) ](/forum/attachment/42104 "...2018-01-11.png") [ ](/forum/attachment/42104?download=1 "...2018-01-11.png")

Last edit: 8 years 10 months ago by [paurray](/forum/user/46395-paurray "View paurray's Profile").

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

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

- **[paurray](/forum/user/46395-paurray "View paurray's Profile")**
- [![paurray's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar46395.png)](/forum/user/46395-paurray "View paurray's Profile") Topic Author
- [ Offline](/forum/user/46395-paurray)

Less More

- Posts: 139
- Thank you received: 10
-
-

8 years 10 months ago [\#285800](#285800) by [paurray](/forum/user/46395-paurray "View paurray's Profile")  Replied by *[paurray](/forum/user/46395-paurray "View paurray's Profile")* on topic *[Getting address from Easy Social Profile with php code](/forum/35-orders-management/893399-getting-address-from-easy-social-profile-with-php-code#285800 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : PHP 7.1.7 . -- Browser(s) name and version -- : firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Hi Hika Shop Team I am reading documentation for Hika Shops email system.    www.hikashop.com/support/documentation/5...fig.html#main&#95;emails  Address format:  When I go to this place in my Joomla back end I see the following:  Mini address format:  Address format:  Mark Lee from Stackideas kindly told me that I can pull an address from their component with the following:  Is it possible to get this to work = Hika Shop pulls the dress from Stackideas?  I am not a coder so any help would be gratefully appreciated.  thanks  Paul")*

Ok the last piece of code the redirect code causes more problems than it is worth.

a) Empty Hika Shop Addresses do not get redirected to Easy Social Profiles.
b) Pressing "Finish" in the cart process takes me to my Easy Social Profile.

If any one has any tips I am all ears.

If not I will talk with a developer at some point in the future.

best

Paul

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50Lzg5MzM5OS1nZXR0aW5nLWFkZHJlc3MtZnJvbS1lYXN5LXNvY2lhbC1wcm9maWxlLXdpdGgtcGhwLWNvZGU/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86567
- Thank you received: 14314
-
-

8 years 10 months ago [\#285806](#285806) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Getting address from Easy Social Profile with php code](/forum/35-orders-management/893399-getting-address-from-easy-social-profile-with-php-code#285806 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : PHP 7.1.7 . -- Browser(s) name and version -- : firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Hi Hika Shop Team I am reading documentation for Hika Shops email system.    www.hikashop.com/support/documentation/5...fig.html#main&#95;emails  Address format:  When I go to this place in my Joomla back end I see the following:  Mini address format:  Address format:  Mark Lee from Stackideas kindly told me that I can pull an address from their component with the following:  Is it possible to get this to work = Hika Shop pulls the dress from Stackideas?  I am not a coder so any help would be gratefully appreciated.  thanks  Paul")*

Hi,

You should try something like that: Code:

if(empty($address-&gt;value-&gt;address)){ $hikaredirect = JFactory::getApplication(); $hikaredirect-&gt;redirect(FRoute::profile(), false); }

That way, it won't redirect if there is an address but will redirect if there is none.

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

- **[paurray](/forum/user/46395-paurray "View paurray's Profile")**
- [![paurray's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar46395.png)](/forum/user/46395-paurray "View paurray's Profile") Topic Author
- [ Offline](/forum/user/46395-paurray)

Less More

- Posts: 139
- Thank you received: 10
-
-

8 years 10 months ago [\#285844](#285844) by [paurray](/forum/user/46395-paurray "View paurray's Profile")  Replied by *[paurray](/forum/user/46395-paurray "View paurray's Profile")* on topic *[Getting address from Easy Social Profile with php code](/forum/35-orders-management/893399-getting-address-from-easy-social-profile-with-php-code#285844 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : PHP 7.1.7 . -- Browser(s) name and version -- : firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Hi Hika Shop Team I am reading documentation for Hika Shops email system.    www.hikashop.com/support/documentation/5...fig.html#main&#95;emails  Address format:  When I go to this place in my Joomla back end I see the following:  Mini address format:  Address format:  Mark Lee from Stackideas kindly told me that I can pull an address from their component with the following:  Is it possible to get this to work = Hika Shop pulls the dress from Stackideas?  I am not a coder so any help would be gratefully appreciated.  thanks  Paul")*

Hi Nicolas

Thanks for going the extra mile ![:cheer:](/media/kunena/emoticons/2.png ":cheer:")

b) Pressing "Finish" in the cart process takes me to my Easy Social Profile.

This problem is now solved.

The thing is that every user created on the site has:

Country*Germany
State*Baden-Württemberg

I just double checked this with a brand new user account.

Is this normal?

My guess is that I set this somewhere at some point but have no idea!?!

FYI. I can use Easy Social to force the entry of an address on registration.

This will also help make the workflow flow.

thanks

Paul

- [ ![Hika-ES-Address01.png](/forum/attachment/42147) ](/forum/attachment/42147 "...-Address01.png") [ ](/forum/attachment/42147?download=1 "...-Address01.png")
- [ ![Hika-ES-Address02.png](/forum/attachment/42148) ](/forum/attachment/42148 "...-Address02.png") [ ](/forum/attachment/42148?download=1 "...-Address02.png")
- [ ![Hika-ES-Address03.png](/forum/attachment/42149) ](/forum/attachment/42149 "...-Address03.png") [ ](/forum/attachment/42149?download=1 "...-Address03.png")

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

- **[paurray](/forum/user/46395-paurray "View paurray's Profile")**
- [![paurray's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar46395.png)](/forum/user/46395-paurray "View paurray's Profile") Topic Author
- [ Offline](/forum/user/46395-paurray)

Less More

- Posts: 139
- Thank you received: 10
-
-

8 years 10 months ago [\#285851](#285851) by [paurray](/forum/user/46395-paurray "View paurray's Profile")  Replied by *[paurray](/forum/user/46395-paurray "View paurray's Profile")* on topic *[Getting address from Easy Social Profile with php code](/forum/35-orders-management/893399-getting-address-from-easy-social-profile-with-php-code#285851 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : PHP 7.1.7 . -- Browser(s) name and version -- : firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Hi Hika Shop Team I am reading documentation for Hika Shops email system.    www.hikashop.com/support/documentation/5...fig.html#main&#95;emails  Address format:  When I go to this place in my Joomla back end I see the following:  Mini address format:  Address format:  Mark Lee from Stackideas kindly told me that I can pull an address from their component with the following:  Is it possible to get this to work = Hika Shop pulls the dress from Stackideas?  I am not a coder so any help would be gratefully appreciated.  thanks  Paul")*

Can not help wondering if maybe it is a happy coincidence that their is an address in there in HikaShop!?!

Maybe if the code could the redirect when there is an address:

Country*Germany
State*Baden-Württemberg

And does not mess up the “Finish” part in the shop&#96;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50Lzg5MzM5OS1nZXR0aW5nLWFkZHJlc3MtZnJvbS1lYXN5LXNvY2lhbC1wcm9maWxlLXdpdGgtcGhwLWNvZGU/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86567
- Thank you received: 14314
-
-

8 years 10 months ago [\#285847](#285847) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Getting address from Easy Social Profile with php code](/forum/35-orders-management/893399-getting-address-from-easy-social-profile-with-php-code#285847 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : PHP 7.1.7 . -- Browser(s) name and version -- : firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Hi Hika Shop Team I am reading documentation for Hika Shops email system.    www.hikashop.com/support/documentation/5...fig.html#main&#95;emails  Address format:  When I go to this place in my Joomla back end I see the following:  Mini address format:  Address format:  Mark Lee from Stackideas kindly told me that I can pull an address from their component with the following:  Is it possible to get this to work = Hika Shop pulls the dress from Stackideas?  I am not a coder so any help would be gratefully appreciated.  thanks  Paul")*

Hi,

The default country/state on the registration form of HikaShop are the ones that you configured in the corresponding custom fields in the menu Display&gt;Custom fields.
You can have them more dynamic if you configure the HikaShop geolocation plugin. That way, the country will be the country of the IP of the user.

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

- **[paurray](/forum/user/46395-paurray "View paurray's Profile")**
- [![paurray's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar46395.png)](/forum/user/46395-paurray "View paurray's Profile") Topic Author
- [ Offline](/forum/user/46395-paurray)

Less More

- Posts: 139
- Thank you received: 10
-
-

8 years 10 months ago [\#285875](#285875) by [paurray](/forum/user/46395-paurray "View paurray's Profile")  Replied by *[paurray](/forum/user/46395-paurray "View paurray's Profile")* on topic *[Getting address from Easy Social Profile with php code](/forum/35-orders-management/893399-getting-address-from-easy-social-profile-with-php-code#285875 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : PHP 7.1.7 . -- Browser(s) name and version -- : firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Hi Hika Shop Team I am reading documentation for Hika Shops email system.    www.hikashop.com/support/documentation/5...fig.html#main&#95;emails  Address format:  When I go to this place in my Joomla back end I see the following:  Mini address format:  Address format:  Mark Lee from Stackideas kindly told me that I can pull an address from their component with the following:  Is it possible to get this to work = Hika Shop pulls the dress from Stackideas?  I am not a coder so any help would be gratefully appreciated.  thanks  Paul")*

Hi Nicolas

Ahhhhh. The geolocation plugin :silly:
This somehow makes a lot of sense.
I will look into this and do some testing.
As a nice side effect I can then post local prices in my shop = $ in the states, Yen in Japane etc.

very nice

Paul

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

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