VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: ronniestamps on April 10, 2013, 08:21:02 AM

Title: Create an order from an external data source
Post by: ronniestamps on April 10, 2013, 08:21:02 AM
What would be the best way to create an order from an external data source? The external data source is a CRM on a different domain. Is this available in the api? Should I use _createOrder($_cart, $_usr, $_prices) contained in administrator/components/com_virtuemart/models/orders.php?


VM 2.0.20b
Joomla 2.5.9

Any advice is much appreciated.
Thank you in advance,

Ronnie
Title: Re: Create an order from an external data source
Post by: ronniestamps on April 10, 2013, 08:34:41 AM
I think I may have answered my own question or at least closer to the answer...

Could I create a $cart object on the CRM on domain X and pass it to createOrderFromCart($cart) on domain Y using JSON?