Jump to content

Save not logged user's data


Dave!

Recommended Posts

Hello

I'm writing a custom module and in my module, not logged custommer can enter some data

After that I want to save this data to show personalized info during navigation

How and where I can store this data? (For logged users I'm storing in DB)

 

Prestashop version 1.7.2

 

Edited by Dave! (see edit history)
Link to comment
Share on other sites

To save info in the database you have to first create a table. I assume you did (if not, you can use normal sql commands in the install function).

To run a query, you can use Db::getInstance()->execute('your query...');

Same for insertion

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...