suceda Posted November 14, 2016 Share Posted November 14, 2016 Hello, I have a prestashop (1.6.1.5) with multistore enabled. Then I have one shop group (with id 1), and 4 shops in, being one of that shops the default one. So I'm trying to use the webservices API to create new orders. But my issue is that all orders are created under the default shop. The xml payload looks like this:POST /api/orders <?xml version="1.0"?> <prestashop> <order> <id_shop>3</id_shop> <id_shop_group>1</id_shop_group> <id_customer>59</id_customer> <id_address_delivery>97</id_address_delivery> <id_address_invoice>97</id_address_invoice> <id_currency>1</id_currency> <id_cart>200</id_cart> <id_lang>1</id_lang> <id_carrier>5</id_carrier> <current_state>12</current_state> <valid>0</valid> <payment>Payment by check</payment> <module>cheque</module> <total_paid>22.22</total_paid> <total_paid_real>22.22</total_paid_real> <total_paid_tax_excl>22.22</total_paid_tax_excl> <total_paid_tax_incl>22.22</total_paid_tax_incl> <total_products>22.22</total_products> <total_products_wt>22.22</total_products_wt> <conversion_rate>1</conversion_rate> </order> </prestashop> It works, but it creates all the orders under id_shop = 1, but that is wrong, as I'm setting id_shop = 3. Many thanks!Sergi Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now