VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: razol on April 10, 2012, 13:46:21 PM

Title: How I get the shipment name in the orders.php?
Post by: razol on April 10, 2012, 13:46:21 PM
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!
Title: Re: How I get the shipment name in the orders.php?
Post by: razol on April 24, 2012, 15:08:43 PM
anybody?? :(