Add feature to bulk print on orders.. Help

Hello all fellows…



I would like to add a bulk print option to cs-cart3

to this page see attached image…



I have all my php scripts done that creates shipment labels…



So how would you suggest me to proceed modify this in cs-carts system files or add the feature by add-on “is it even possible to do that” ?



Please can someone point me in the right direction…



//Peter

Dear Peter,



I can't see any picture attached !?



Please try to reupload it.

Nevermind the image…



I have now come so far the I have addon.xml done hook inlace and function working but I

cant get the export to save to the xml to server folder… so I don't know if it loops trough selected orders correctly.



First where do I find the absolute path to root from an add-on point of view??



//Peter

I would like this code to loop trough the selected orders…

and here is were my head is not following anymore…



can someone please explain how do i loop trough and pull out the data i need

see image so you know were i am in cs-cart and messing around :)

I would like this code to loop trough the selected orders…

and here is were my head is not following anymore…



can someone please explain how do i loop trough and pull out the data i need

see image so you know were i am in cs-cart and messing around :)



*?php



if ( !defined(‘AREA’) ) { die(‘Access denied’); }



if ($_SERVER[‘REQUEST_METHOD’] == ‘POST’) {



if ($mode == ‘export_to_xml’) {





// Here how do I loop through selected orders and pull say shipment name and address??





exit;

}

}

*?

Screen Shot 2012-08-10 at 4.37.50 PM.png