Example #1
0
 public function renderExport(Varien_Object $_item)
 {
     $res = '';
     $prefix = ',';
     $separator = ':';
     $res .= Mage::helper('mageworx_customerplus')->__('Ordered') . $separator . $_item->getQtyOrdered() * 1;
     if ((double) $_item->getQtyInvoiced()) {
         $res .= $prefix . Mage::helper('mageworx_customerplus')->__('Invoiced') . $separator . $_item->getQtyInvoiced() * 1;
     }
     if ((double) $_item->getQtyShipped()) {
         $res .= $prefix . Mage::helper('mageworx_customerplus')->__('Shipped') . $separator . $_item->getQtyShipped() * 1;
     }
     if ((double) $_item->getQtyRefunded()) {
         $res .= $prefix . Mage::helper('mageworx_customerplus')->__('Refunded') . $separator . $_item->getQtyRefunded() * 1;
     }
     if ((double) $_item->getQtyCanceled()) {
         $res .= $prefix . Mage::helper('mageworx_customerplus')->__('Canceled') . $separator . $_item->getQtyCanceled() * 1;
     }
     return $res;
 }