Jump to content

Must products be in the PS inventory to be added via web service API


Webmestre avivia

Recommended Posts

I have tried the webservice to create an order via the API from outside PS, and it works.

But so far, it seems that I can only create orders with products that are already in Prestashop.

I’m wondering how it would be possible to create an order using the webservice, but with products that are in another system.

One solution would probably to define all these products in Prestashop then synch them somehow with the products in the other store.

Maybe the other store could pull the products list from the PS shop and use these products to create its order. The downside to this is that I’ll need to define thousands of products in my PS shop, that will only be available for this external system, and will fill my store products with products not sold in that shop.

Another possibility would be to create the products as the invoice is created, like we create users on the fly if they don’t exist in PS. That will also fill my PS shop with extra products, but much less so, and only with products that have been bought.

Another possibility would be that the Webservice API can somehow add products in an order, even though they aren’t defined in the PS shop, maybe there’s a “Use only Prestashop products in orders creation” option I need to set to Off instead in there somewhere?

What would be the best way to go? I’m open to all suggestions at this point.

 

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