Billing & Shipping Address

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
13 years 8 months ago #10517

Hi,

When in orders if you make a change to the shipping address this change reflects in the billing address which you may not want. example A customer has emailed me after placing an order and forgot to add the shipping address, when I change the address it also changes the billing address which I do not want to happen?

thanks

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 8 months ago #10548

Hi,

That should indeed not be the case. We have some code to handle such cases so if that doesn't work, there is probably a bug. We are going to look at that problem tomorrow and keep you posted.

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 8 months ago #10615

We found the problem. Could you replace the code:
if($oldData->address_published!=0 && !empty($addressData->address_id) && $orderClass->addressUsed($addressData->address_id,$order_id,$type)){

by:
if(!empty($addressData->address_id) && ($oldData->address_published!=0||$order_id) && $orderClass->addressUsed($addressData->address_id,$order_id,$type)){

in the file amdinistrator/components/com_hikashop/classes/address.php and try again ?

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

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
13 years 8 months ago #10616

Hi, thanks I will try this, funny thing is that is does not affect all orders? some work as it.

Another small change I would like to achieve is, is it possible to move 'billing address' to where 'shipping address is and 'shipping address' to where 'billing address' is?

thanks

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 8 months ago #10638

Yes, it happened only on some cases because of the way we handle addresses.

You can edit the file form of the view order via the menu Display->Views and switch the code:
<td id="hikashop_billing_address">
<?php $this->type = 'billing'; echo $this->loadTemplate('address');?>
</td>
and the code:
<td id="hikashop_shipping_address">
<?php $this->type = 'shipping'; echo $this->loadTemplate('address');?>
</td>

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

  • Posts: 1
  • Thank you received: 0
13 years 6 months ago #16081

Good afternoon,

This suggestion did not help. The billing and shipping addresses both reflect each other when edited/updated.

Please help. Thank you. :-)

Kind regards,

Laney

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 6 months ago #16093

I'm not following you ?
That post is from 2 months ago and the fix we talked about are already implemented in the last few releases of HikaShop. I even just tested it on the back end of our demo website and the edition of addresses in orders works independently without issue.

Are you using the latest version ?

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

  • Posts: 30
  • Thank you received: 0
12 years 3 months ago #60681

Joomla 1.5.26 - I know, I know . . .
Hikashop 1.5.7

Same behavior. When updating ship to, bill to is also changed. Can edit the customer and add a new address, but cannot select/assign it to an existing order.

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
12 years 3 months ago #60691

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

Time to create page: 0.082 seconds
Powered by Kunena Forum