- Posts: 35
- Thank you received: 1
Billing/Shipping Address changes issue
- tedstrauss
-
Topic Author
- Offline
Less
More
14 years 1 month ago #59889
by tedstrauss
Billing/Shipping Address changes issue was created by tedstrauss
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
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.
14 years 1 month ago #59973
by nicolas
Replied by nicolas on topic Re: Billing/Shipping Address changes issue
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.
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.
- tedstrauss
-
Topic Author
- Offline
Less
More
- Posts: 35
- Thank you received: 1
14 years 1 month ago - 14 years 1 month ago #60000
by tedstrauss
Replied by tedstrauss on topic Re: Billing/Shipping Address changes issue
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
[I searched via a find feature and visually]
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 [I am trying to avoid making any changes to files that will get overwritten later].
Cheers,
Emmanuel.
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
[I searched via a find feature and visually]
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 [I am trying to avoid making any changes to files that will get overwritten later].
Cheers,
Emmanuel.
Last edit: 14 years 1 month ago by tedstrauss.
Please Log in or Create an account to join the conversation.
14 years 1 month ago #60088
by nicolas
Replied by nicolas on topic Re: Billing/Shipping Address changes issue
Ah yes, that's the order class not the address class 
It will be in next version yes.
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.
13 years 10 months ago #76796
by further
Replied by further on topic Billing/Shipping Address changes issue
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
I am running the latest version of hikashop 2.0.0
Please Log in or Create an account to join the conversation.
13 years 10 months ago #76798
by further
Replied by further on topic Billing/Shipping Address changes issue
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.211 seconds