Billing/Shipping Address changes issue

  • Posts: 35
  • Thank you received: 1
11 years 8 months ago #59889

Hi Nicolas,

I had this issue many many versions ago and I thought it was fixed by now but it doesn't seem to be... so maybe it's a bug..
[as I can't imagine it would be a feature].

If, from the Administrator backend, you go into an order in Hikashop, and look at editing the Shipping Address and say change it to:
1 Hikashop Place.

and then press OK, the Shipping Address changes AS EXPECTED but [and here's my issue] so does the Billing Address.... ?!?!

Why doesn't it respect my change and only change the Shipping Address?

Can't wait for that to be fixed!
Cheers,

Emmanuel Lemor

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

  • Posts: 81591
  • Thank you received: 13079
  • MODERATOR
11 years 8 months ago #59973

Hi,

It has always been like that. You're the first one reporting that problem I think.

Try to change the code:
$filter .= ' AND (order_id!='.$order_id.' OR order_'.$type.'_address_id='.(int)$address_id.')';

to:
if($type=='shipping'){
$filter .= ' AND (order_id!='.$order_id.' OR order_billing_address_id='.(int)$address_id.')';
}else{
$filter .= ' AND (order_id!='.$order_id.' OR order_shipping_address_id='.(int)$address_id.')';
}

in the file administrator/components/com_hikashop/classes/address.php and that should solve the problem.

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

  • Posts: 35
  • Thank you received: 1
11 years 8 months ago #60000

Hi Nicolas,

Thanks for the fix/update but I'm using v1.5.8 and I couldn't find a match in the file:

/administrator/components/com_hikashop/classes/address.php


but I found it under
/administrator/components/com_hikashop/classes/order.php

Hopefully that's the right file? [since I updated it ;) ]

Will this be incorporated into the next version .

Cheers,

Emmanuel.

Last edit: 11 years 8 months ago by tedstrauss.

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

  • Posts: 81591
  • Thank you received: 13079
  • MODERATOR
11 years 8 months ago #60088

Ah yes, that's the order class not the address class :)

It will be in next version yes.

The following user(s) said Thank You: tedstrauss

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

  • Posts: 20
  • Thank you received: 0
11 years 5 months ago #76796

I am still having this issue. I am able to add another address but it is still updating the billing address. You can test it out by creating an account by putting one of these products in the cart on this page

I am running the latest version of hikashop 2.0.0

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

  • Posts: 20
  • Thank you received: 0
11 years 5 months ago #76798

Sorry ... It is fixed now. Not sure what happened.

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

Time to create page: 0.082 seconds
Powered by Kunena Forum