Questions for Table phocacart_order_users

Phoca Cart - complex e-commerce extension
elisa
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 21 Feb 2025, 18:56

Questions for Table phocacart_order_users

Post by elisa »

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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49125
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Questions for Table phocacart_order_users

Post by Jan »

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

Image

Image

Jan
If you find Phoca extensions useful, please support the project
elisa
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 21 Feb 2025, 18:56

Re: Questions for Table phocacart_order_users

Post by elisa »

Perfect Thank you Jan! Explains a lot of my issues :) Now I can build the export better.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49125
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Questions for Table phocacart_order_users

Post by Jan »

OK
If you find Phoca extensions useful, please support the project
Post Reply