Jump to content

Impossible to create new Object in API Webservice Prestashop 1.6


Kathleen86
 Share

Recommended Posts

Hello everybody !

I have search for infos on the web in order to add new object to the api webservice in prestashop 1.6 (it works ok with the hook in Prestashop 1.7 but I need to have the module in version 1.6 also)

I created a module  with database creation. I created a new hook to install the content of the database but it doesn't fill in.. (File apicalls.php at the root of the module).

Then I add the info in the webservice in classes/override/webservice/Webrequest.php and finally I add the class that extends objectModel in classes/Sample.php

Could somebody tell me what is wrong with what I am doing ?

Thanks a lot !

 

Edited by Kathleen86 (see edit history)

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More