Jump to content

Registration Field Valitation from MySQL


xferx

Recommended Posts

Hi forum!

 

Im a prestashop site developer and im working on a new site and im stuck on something ill epxlain as detalied as posible.

 

During registration we have all the fields that prestashop requires and I added a new field following this tutorial wich i called "card".

 

My problem is that i need prestashop to verify on an external database (NOT prestashop database) if the value in that field exists in that database by, i assume, a webservice.

 

In this database i have a table CARDS and a field NUMBER with 20.000 card numbers. I need the registration to allow registration and continue IF the card numer they type exists in the external database. If not then send a error.

 

I have no clue how i could achive this and ill really apreciate any help you can provide.

 

The aim is as you may imagine only allow those that actually have this card to buy in the store.

 

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