Hi!
I am building a very customized Order Export and there is the table phocacart_order_users I see that in that table the order_id are not unique and in one Line the user data is stored an in another line not.
Can you explain what the table exactly collects and why the order_ids are not unique?
thanks
Elisa
Questions for Table phocacart_order_users
-
elisa
- Phoca Newbie

- Posts: 2
- Joined: 21 Feb 2025, 18:56
- Jan
- Phoca Hero

- Posts: 49125
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Questions for Table phocacart_order_users
Hi,
the id is auto increment id for this table
the id_order is reference to order table
When you see two items with the same id_order, this means that the:
- one row is for storing user billing address
- and the second row is for storing user shipping address
Internally, type = 0 ... is for storing billing address, type = 1 is for storing shipping address


Jan
the id is auto increment id for this table
the id_order is reference to order table
When you see two items with the same id_order, this means that the:
- one row is for storing user billing address
- and the second row is for storing user shipping address
Internally, type = 0 ... is for storing billing address, type = 1 is for storing shipping address


Jan
If you find Phoca extensions useful, please support the project
-
elisa
- Phoca Newbie

- Posts: 2
- Joined: 21 Feb 2025, 18:56
Re: Questions for Table phocacart_order_users
Perfect Thank you Jan! Explains a lot of my issues :) Now I can build the export better.
- Jan
- Phoca Hero

- Posts: 49125
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Questions for Table phocacart_order_users
OK
If you find Phoca extensions useful, please support the project