Reverse shipping addresses

  • Posts: 279
  • Thank you received: 1
11 years 1 week ago #129603

-- HikaShop version -- : 2.2.2 Essentials
-- Joomla version -- : 2.5.14

It must be different in Europe, but, certainly here in the States and also NZ and Australia, the generally accepted standard is you enter a shipping address and then have a checkbox to say "Use the same as the shipping address (for billing)". Now I know I can go through and change all the labels, but that will only work where the addresses are the same. Whenever 2 different addresses are entered the addresses will be in the wrong areas.

Is there an easy way to do this?

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

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
11 years 1 week ago #129629

I didn't know about that. I've always seen the checkbox based on the billing address on ecommerce solutions. And that's normal since you don't always have a shipping address (for virtual goods for example) but you always have a billing address.

Anyway, I think that the simplest will be to change text in the translation files to replace shipping by billing and vice-versa and then, you'll also have to edit your shipping plugins code to use the billing address instead of the shipping address.

For example, in UPS you just change the line:
$cart->loadAddress($null,$order->shipping_address->address_id,'object', 'shipping');
to:
$cart->loadAddress($null,$order->billing_address->address_id,'object', 'shipping');

Other solutions like changing the checkbox system will be much more complex than this.

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

Time to create page: 0.052 seconds
Powered by Kunena Forum