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

#   Additional API functions - feature request

##

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

Less More

- Posts: 250
- Thank you received: 7
- [](http://www.estm.co.uk)
-

10 years 6 months ago [\#240591](#240591) by [iedwards](/forum/user/12400-iedwards "View iedwards's Profile")  *[Additional API functions - feature request](/forum/30-integrations/884607-additional-api-functions-feature-request#240591 "-- url of the page with the problem -- :   www.artistpapers.co.uk  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1  Hi,  The API is great if you want to interact with actions initiated within Hikashop, but I've got a situation where I would like to instigate an action from outside of Hikashop.  In my case I want to create a new user from RSForms, creating the Joomla user is easy but getting the address into Hikashop is tricky, it would be perfect therefore if there was a &quot;Create New User&quot; API function.  Thanks for listening!  Ian")* was created by *[iedwards](/forum/user/12400-iedwards "View iedwards's Profile")*

-- url of the page with the problem -- : [ www.artistpapers.co.uk](https://www.artistpapers.co.uk)
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1

Hi,

The API is great if you want to interact with actions initiated within Hikashop, but I've got a situation where I would like to instigate an action from outside of Hikashop.

In my case I want to create a new user from RSForms, creating the Joomla user is easy but getting the address into Hikashop is tricky, it would be perfect therefore if there was a "Create New User" API function.

Thanks for listening!

Ian

---

[ Ian Edwards Film Sound Recording](https://estm.co.uk)
[ Alveley Mining Heritage](https://alveleyminingheritage.org)
[ Mary Edwards-Porter - Author](https://www.mary-edwards-porter.co.uk)

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

10 years 6 months ago [\#240606](#240606) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Additional API functions - feature request](/forum/30-integrations/884607-additional-api-functions-feature-request#240606 "-- url of the page with the problem -- :   www.artistpapers.co.uk  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1  Hi,  The API is great if you want to interact with actions initiated within Hikashop, but I've got a situation where I would like to instigate an action from outside of Hikashop.  In my case I want to create a new user from RSForms, creating the Joomla user is easy but getting the address into Hikashop is tricky, it would be perfect therefore if there was a &quot;Create New User&quot; API function.  Thanks for listening!  Ian")*

Hi,

Well, there kind of is. But there is no documentation about it.
You can load the HikaShop main helper, then initiliaze the address model, populate an object, and save it: Code:

if(!defined('DS')) define('DS',DIRECTORY_SEPARATOR); if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return true; $addressClass = hikashop_get('class.address'); $address = new stdClass(); $address-&gt;address_user_id = hikashop_loadUser(); $address-&gt;addres_firstname = $my_firstname; $address-&gt;addres_lastname = $my_lastname; $address-&gt;addres_city = $my_city; ..... $addressClass-&gt;save($address);

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

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

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

Less More

- Posts: 250
- Thank you received: 7
- [](http://www.estm.co.uk)
-

10 years 6 months ago [\#240664](#240664) by [iedwards](/forum/user/12400-iedwards "View iedwards's Profile")  Replied by *[iedwards](/forum/user/12400-iedwards "View iedwards's Profile")* on topic *[Additional API functions - feature request](/forum/30-integrations/884607-additional-api-functions-feature-request#240664 "-- url of the page with the problem -- :   www.artistpapers.co.uk  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1  Hi,  The API is great if you want to interact with actions initiated within Hikashop, but I've got a situation where I would like to instigate an action from outside of Hikashop.  In my case I want to create a new user from RSForms, creating the Joomla user is easy but getting the address into Hikashop is tricky, it would be perfect therefore if there was a &quot;Create New User&quot; API function.  Thanks for listening!  Ian")*

Thank you Nicolas, that's perfect, I will use that this morning.

Regards,

Ian

---

[ Ian Edwards Film Sound Recording](https://estm.co.uk)
[ Alveley Mining Heritage](https://alveleyminingheritage.org)
[ Mary Edwards-Porter - Author](https://www.mary-edwards-porter.co.uk)

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

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