Create address

  • Posts: 217
  • Thank you received: 1
13 years 3 weeks ago #28845

If I have the users address details already in joomla (in the user_profiles table) how can I set that address to be the billing or shipping address in the checkout?

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 3 weeks ago #28875

That's something which is only available since joomla 1.7 (or maybe 1.6 ?) and HikaShop does not support that. It's not easy to support it as you can create the address in whatever format you want where the format of addresses in HikaShop follows what you set in the custom address fields.
That's means that there is no easy solution to do that.
The best is to only use HikaShop's addresses and use the hikashop regsitration form instead of the joomla registration form so that the address is directly in HikaShop when the user registers.

Please Log in or Create an account to join the conversation.

  • Posts: 217
  • Thank you received: 1
13 years 3 weeks ago #28922

I was thinking to use javascript to load the user_profile fields into your registration form.

I was also thinking that if I could work out the cart_id I could create the user myself and load their details into hika shop directly and then just use hika shop to display this information.

This is the reason for my other question on the forum here:

www.hikashop.com/en/support/forum/4-how-...-customer.html#28921

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 3 weeks ago #28940

Well, as I see it, the best would be to create a user plugin which would implement the onUserAfterSave function and set directly the data from the $_POST in the hikashop_address table. That sounds like the simplest way to do it as a customization if you really want to use the joomla registration form.

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum