News:

Support the VirtueMart project and become a member

Main Menu

How I get the shipment name in the orders.php?

Started by razol, April 10, 2012, 13:46:21 PM

Previous topic - Next topic

razol

Hy All!

I want to do a little modify in orders.php i use to the shipment name to select what the order number started, sorry for my bad english so i paste the example:

if(empty($_orderData->order_number)){
         $dates=getdate();
         if(  [ Shipmentname ] == 'Drop Shipping'  ){
            $_orderData->order_number = 'DS/' . $dates[year] . '/' . $dates[mon] . '/' . $dates[mday] . '/' . $_usr->get('id');                     

         }else{
                               $_orderData->order_number = 'NV/' . $dates[year] . '/' . $dates[mon] . '/' . $dates[mday] . '/' .$_orderData->order_shipment;
         }


OR what is the best way to do selected shipment -> custom order_number?!

Thanks for help!