M
M
Mikhail Shatilov2014-08-10 20:07:32
PHP
Mikhail Shatilov, 2014-08-10 20:07:32

What table with users to use?

OpenCart has 2 tables for users: customer & user. Which one should be used when a user registers and why?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Pavlov, 2014-08-10
@iproger

customer - a client, the one who will buy from you on the site.
user - the user of the site in terms of administration, that is, the one who has access to the admin panel, a person from your team.
When registering, customers must be created in the customer table.
But what does it mean "Which one should be used when a user registers and why?" - Aren't they created there themselves?

D
Dmitry Khaperets, 2014-08-10
@Khaperets

lexxpavlov, I can bet. When registering, clients must be added to the users table. And at the order - in the table customers.
Why is that? - One person can register, and orders can be issued for different people. That is, when ordering, I can order some goods for my sister or mother - the data about the buyer should be in the customers table.

S
Sanes, 2014-11-08
@Sanes

The engine has the ability to buy without registration. Therefore, the buyer is not always the user.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question