Hi,
There is no ready made tool for this.
However, it should be fairly easy to configure a mass action (menu System>Mass actions) to do that:
www.hikashop.com/support/documentation/167-massaction-form.html
You'll want to :
- use the "order" data
- use a filter on "order_billing_address_id" being equal to 0
- use an action "run MySQL query" with the query:
UPDATE #__hikashop_order AS o LEFT JOIN #__hikashop_address AS a ON a.user_id = o.order_user_id AND a.address_type='billing' SET o.order_billing_address_id = a.address_id WHERE o.order_id = {order_id};
When you run that mass action, it will process all the orders (the first 500 if you leave the "limitation" value to 500. You can potentially increase that value to a few thousands, but more than that and the PHP process will likely crash in the middle. However, you can just process the mass action several times until all the orders are processed) and set the billing address of these orders to be one of the billing addresses of the user.
Then, rinse and repeat for "shipping" instead of "billing" if you also want to set the shipping address.