Example #1
0
 public function render(Varien_Object $row)
 {
     $img_valid = '';
     if ((int) $row->getQtyOrdered() === (int) $row->getQtyShipped()) {
         $img_valid = '<img src="' . $this->getSkinUrl('sm/images/barcode_success.gif') . '" width="16px" height="16px" alt="Valid" />';
     }
     return '<div id="qty-valid-' . $row->getProductId() . '" style="text-align:center;">' . $img_valid . '</div>';
 }
Example #2
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;
 }
Example #3
0
 public function render(Varien_Object $row)
 {
     return '<div id="qty-shipped-' . $row->getProductId() . '" style="text-align:center;">' . (int) $row->getQtyShipped() . '</div>';
 }