Hi! I need to get order data, after it's confirmed, and send it to third party ERP software through FTP. Which is the best plugin type and plugin trigger to achieve this?
Thanks a lot!
Easy Feeder - we use for connection with Helios, Microsoft or mobile app :)
Created XML file or CSV file (or another type) with all information about order.
Thanks but I want to develop it myself. Can you answear the post question?
Thanks!
Of Course, go on.
If you developer, then very easy you can find which trigger is used for order confirm.
And you have to created system plugin.
function plgVmConfirmedOrder ($cart, $order)
QuoteI need to get order data
Really do you need question which plugin trigger is for take order data == confirm order == if you have eshop with your custom created payment plugin?
It's very funny :)
pinochio
No need for that!
It was a simple question - simple answer
AH:
thanks
Quote from: GJC Web Design on April 22, 2020, 23:45:51 PM
function plgVmConfirmedOrder ($cart, $order)
Great! thanks!
Candidates are plgVmOnUpdateOrderPayment and plgVmOnCancelPayment because order can be updated from backend.
I thought that VM managed this with another plugin type, but I see that it delegates all order status logic to the payment plugin. Is that correct?
Thanks a lot!
as payment is the last step yes - these are the last calls to consider the order complete
there is also function plgVmOnUpdateSingleItem ($data, $order) if order is edited and line items changed
Cool! thanks!