Answer the question
In order to leave comments, you need to log in
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
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?
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question