How create order from web service

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 years ago
Hi
I want to add product by calling webservice method. I can call web method from JS with right data, I can call all Services of NOP in webservice, but i don't undrestand how create order with product in it. Can you help me by link or example of code to create right order, or any advice?
8 years ago
NopCommerce comes with a default example webservice plugin. In earlier versions it's included in the main distribution.
In nopCommerce 3.60 you'll need to download it separetely. (https://www.nopcommerce.com/p/1856/web-services-plugin.aspx)

The plugin is basically a template/framework to build your own webservice. So you probably want to add an "createOrder" method to it.

For an idea on how order creation works I would recommend you to look at the Checkout controller in the Nop.Web project.
8 years ago
thank you very much. i will try it
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.