Jump to content

Integrate Prestashop Registration with External System


Bewat

Recommended Posts

I need to integrate Prestashop registration with an external Feedback System (phpBack), so when a user register into Prestashop he is automatically registered (insert sql values) into the Feedback system.

Prestashop (v1.7) and Feedback system are both in the same server. Prestashop database is called: shopdatabase and Feedback database is called: feedbackdatabase 

Basically I need to make Prestashop run this SQL query in Feedback database with correct user values (taken from Prestashop database or registration query) once the user register:

USE feedbackdatabase
GO

INSERT INTO `users` (`id`, `name`, `email`, `pass`, `votes`, `isadmin`, `banned`) VALUES
(1, 'testuser', '[email protected]', '$2a$08$QIdsfasdfUMh_testhash', 20, 0, 0);

So `id`, `name`, `email`, `pass` should be taken from Prestashop database or registration query

`votes`, `isadmin`, `banned` values are allways the same 20, 0, 0

Thanks in advance

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...