Jump to content

[SOLVED] Add a product via webservice [I'm unable to do]


playmono

Recommended Posts

Hi all,

I'm new in Prestashop and I need to add some products via webservice.

I have already added some customers but I'm unable to add products, every time I'm getting this error:

This call to PrestaShop Web Services failed and returned an HTTP status of 400. That means: Bad Request.

That dont explains so much what's happening.

So, can someone post a good example to add a product?

Thanks community.

 

SOLVED:

-In the file that includes "PrestaShopWebservice" class, for example, if you want to know what is wrong doing an "add", you need to do this before self::checkStatusCode():

 

var_dump($request['response']);

Same in every function you want to know the result instead the HTTP ERROR.
Edited by playmono (see edit history)
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...