[Skip to main content](#vessel-content)

#   Billing and shipping address id

##

- **[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")**
- [![mojweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5128-mojweb "View mojweb's Profile") Topic Author
- [ Offline](/forum/user/5128-mojweb)

Less More

- Posts: 431
- Thank you received: 22
-

3 years 11 months ago [\#346865](#346865) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  *[Billing and shipping address id](/forum/44-mass-actions/905414-billing-and-shipping-address-id#346865 "-- HikaShop version -- : 4.4.5  We use massaction csv export for orders. In massaction export I get billing&#95;address&#95;user&#95;id and shipping&#95;address&#95;user&#95;id. Those should be diferent if customer enters diferent shipping address. But they are the same ids.")* was created by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")*

-- HikaShop version -- : 4.4.5

We use massaction csv export for orders. In massaction export I get billing_address_user_id and shipping_address_user_id. Those should be diferent if customer enters diferent shipping address. But they are the same ids.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy85MDU0MTQtYmlsbGluZy1hbmQtc2hpcHBpbmctYWRkcmVzcy1pZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

3 years 11 months ago [\#346869](#346869) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Billing and shipping address id](/forum/44-mass-actions/905414-billing-and-shipping-address-id#346869 "-- HikaShop version -- : 4.4.5  We use massaction csv export for orders. In massaction export I get billing&#95;address&#95;user&#95;id and shipping&#95;address&#95;user&#95;id. Those should be diferent if customer enters diferent shipping address. But they are the same ids.")*

Hi,

No. These are the user_id attached to each address. And thus, it's normal they are always the same for one order since an order is linked to one user only.
If you want the id of the shipping / billing address, they are in billing_address_id and shipping_address_id, but you also have them in order_shipping_address_id and order_billing_address_id.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy85MDU0MTQtYmlsbGluZy1hbmQtc2hpcHBpbmctYWRkcmVzcy1pZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")**
- [![mojweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5128-mojweb "View mojweb's Profile") Topic Author
- [ Offline](/forum/user/5128-mojweb)

Less More

- Posts: 431
- Thank you received: 22
-

3 years 11 months ago [\#346907](#346907) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  Replied by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")* on topic *[Billing and shipping address id](/forum/44-mass-actions/905414-billing-and-shipping-address-id#346907 "-- HikaShop version -- : 4.4.5  We use massaction csv export for orders. In massaction export I get billing&#95;address&#95;user&#95;id and shipping&#95;address&#95;user&#95;id. Those should be diferent if customer enters diferent shipping address. But they are the same ids.")*

OK, but billing_address_id and shipping_address_id are always diferent. I understand, its ID, but how we can know when billing address is diferent from shipping address?
We use csv file to import in accounting app.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy85MDU0MTQtYmlsbGluZy1hbmQtc2hpcHBpbmctYWRkcmVzcy1pZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

3 years 11 months ago [\#346910](#346910) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Billing and shipping address id](/forum/44-mass-actions/905414-billing-and-shipping-address-id#346910 "-- HikaShop version -- : 4.4.5  We use massaction csv export for orders. In massaction export I get billing&#95;address&#95;user&#95;id and shipping&#95;address&#95;user&#95;id. Those should be diferent if customer enters diferent shipping address. But they are the same ids.")*

It's normal they are different.
In HikaShop a user has two sets of addresses. One set with the type "billing" and one set with the type "shipping".
When the user check the checkbox "use the billing address as shipping address", the system will create a copy of the billing address with the type "shipping".
So you should actually never have a billing address and a shipping address with the same id.
In short, you can't base yourself on the id to know if they are the same or not. You'll have to compare each field of both address to see if they are the same or not.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy85MDU0MTQtYmlsbGluZy1hbmQtc2hpcHBpbmctYWRkcmVzcy1pZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")**
- [![mojweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5128-mojweb "View mojweb's Profile") Topic Author
- [ Offline](/forum/user/5128-mojweb)

Less More

- Posts: 431
- Thank you received: 22
-

3 years 10 months ago [\#346974](#346974) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  Replied by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")* on topic *[Billing and shipping address id](/forum/44-mass-actions/905414-billing-and-shipping-address-id#346974 "-- HikaShop version -- : 4.4.5  We use massaction csv export for orders. In massaction export I get billing&#95;address&#95;user&#95;id and shipping&#95;address&#95;user&#95;id. Those should be diferent if customer enters diferent shipping address. But they are the same ids.")*

With your logic, our app cant check if adreess is the same or diferent, by ID? So we must compare every customer adress by ALL data to verify if it is diferent or the same?
And if there is returning customer, the problem is multiplying.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy85MDU0MTQtYmlsbGluZy1hbmQtc2hpcHBpbmctYWRkcmVzcy1pZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

3 years 10 months ago [\#346977](#346977) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Billing and shipping address id](/forum/44-mass-actions/905414-billing-and-shipping-address-id#346977 "-- HikaShop version -- : 4.4.5  We use massaction csv export for orders. In massaction export I get billing&#95;address&#95;user&#95;id and shipping&#95;address&#95;user&#95;id. Those should be diferent if customer enters diferent shipping address. But they are the same ids.")*

Well, you can check if the billing address is the same as the old billing address.
But even then, it would be possible the customer just create a new address with the same values.
If you really whant to check if an address is the same than another, I don't see another way than checking each field individually.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy85MDU0MTQtYmlsbGluZy1hbmQtc2hpcHBpbmctYWRkcmVzcy1pZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")**
- [![mojweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5128-mojweb "View mojweb's Profile") Topic Author
- [ Offline](/forum/user/5128-mojweb)

Less More

- Posts: 431
- Thank you received: 22
-

3 years 10 months ago [\#347083](#347083) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  Replied by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")* on topic *[Billing and shipping address id](/forum/44-mass-actions/905414-billing-and-shipping-address-id#347083 "-- HikaShop version -- : 4.4.5  We use massaction csv export for orders. In massaction export I get billing&#95;address&#95;user&#95;id and shipping&#95;address&#95;user&#95;id. Those should be diferent if customer enters diferent shipping address. But they are the same ids.")*

Just for info. If using registration at checkout, is logic the same?
So returning users/customers have endless "diferent" addresses?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy85MDU0MTQtYmlsbGluZy1hbmQtc2hpcHBpbmctYWRkcmVzcy1pZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

3 years 10 months ago [\#347086](#347086) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Billing and shipping address id](/forum/44-mass-actions/905414-billing-and-shipping-address-id#347086 "-- HikaShop version -- : 4.4.5  We use massaction csv export for orders. In massaction export I get billing&#95;address&#95;user&#95;id and shipping&#95;address&#95;user&#95;id. Those should be diferent if customer enters diferent shipping address. But they are the same ids.")*

Hi,

If you register the billing address you enter will have one id, and its copy as shipping address will have another id. It will be the same ids in the order.
If you come back later on, and login and proceed to a payment without changing your billing/shipping addresses, they will have the same ids too.
However, if you modify an address, then the system will automatically unpublish the original address (so that it can still be attached to the old order you made in the past), and the modified address will have a new id.

If you do a guest checkout, then even if you use a the same addresses each time (you will have to re-enter them each time), the addresses will have different ids each time.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy85MDU0MTQtYmlsbGluZy1hbmQtc2hpcHBpbmctYWRkcmVzcy1pZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.213 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
