We require a Magento plugin which will parse an XML which contains our daily shipped items and create shipments on Magento for those products. Shipment must contain tracking information which is included in the XML and send a transactional email with a clickable link directly to the couriers website. Multiple couriers are used and we must be able to set these in admin options. The plugin must include error reporting which will be transmitted back to us via email to an address set in admin options.
Parse XML from Zynk using POST
-For each <Row>
--Load <order> (contains Magento order number)
--*If <order> is not found, write contents of <Row> to orderfail XML
---Convert <courier> to actual "Courier Name"
---Add <consignment> and "Courier Name" to order in "Shipping Information"
---*If <consignment> or <courier> is not loaded, write contents to shipmentfail XML and continue to process <item>
---For each <item>
----Ship <qty> for each <reference>
----*If <reference> is NULL, skip <item> and write contents to itemfail XML
----*<qty> is the quantity shipped and may not be full quantity ordered
----*<reference> is the unique Magento Item_id for the product
----*Check if <sku> matches loaded product, else skip <item> and write information to itemfail XML
---Send shipment transactional email to customer and convert <consignment> to clickable tracking URL
-Ability to set details for 10 couriers
-Settings will include:
--Courier ID (<courier>)
--Courier shipping content (what is displayed when shipping variable is displayed on transactional email). Include wildcard for <consignment> tracking URL
-Which transactional email is used
--Transactional email should have a variable for shipping block
-Specifiy email adderss to use for error reporting