I'm new to Craft and I'm trying to achieve the following with a Craft Plugin
A user visits my site and can input a zip code to receive the corresponding contact person's name, phonenumber and image. I want to develop a plugin which allows the admin to create the contact person entries in the backend and which handles the ajax request by getting the right contact person form the database.
So for example, the user sends the zip code 54343, an ajax request with that data is sent, the plugin queries the database, converts the result into a json-string and sends the ajax response back.
I'm afraid I have no idea how to start.
How do I create the table and import the data? (There is a CSV document) Where do I send the ajax request to? What structures of a Craft plugin do I need?
I'd really appreciate your help.