Exemplo n.º 1
0
 protected function _prepareColumns()
 {
     $this->addColumn('title', array('header' => $this->__('Group'), 'align' => 'left', 'type' => 'text', 'escape' => true, 'index' => 'title', 'filter_index' => 'title'));
     $this->addColumn('categories', array('header' => $this->__('Categories'), 'align' => 'left', 'type' => 'text', 'sortable' => false, 'filter' => false, 'frame_callback' => array($this, 'callbackColumnCategories')));
     $this->addColumn('action', array('header' => $this->__('Actions'), 'align' => 'left', 'type' => 'text', 'sortable' => false, 'filter' => false, 'actions' => array(0 => array('label' => $this->__('Edit Group'), 'value' => 'categoryStepOne'), 1 => array('label' => $this->__('Delete Group'), 'value' => 'categoryDeleteGroup')), 'frame_callback' => array($this, 'callbackColumnActions')));
     return parent::_prepareColumns();
 }
Exemplo n.º 2
0
 protected function _prepareColumns()
 {
     $this->addColumn('message', array('header' => $this->__('Message'), 'align' => 'left', 'width' => '*', 'type' => 'text', 'sortable' => false, 'filter_index' => 'id', 'index' => 'description', 'frame_callback' => array($this, 'callbackColumnDescription')));
     $this->addColumn('type', array('header' => $this->__('Type'), 'align' => 'left', 'width' => '65px', 'index' => 'type', 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnType')));
     $this->addColumn('initiator', array('header' => $this->__('Run Mode'), 'align' => 'left', 'width' => '65px', 'index' => 'initiator', 'sortable' => false, 'type' => 'options', 'options' => array(\Ess\M2ePro\Helper\Data::INITIATOR_UNKNOWN => $this->__('Unknown'), \Ess\M2ePro\Helper\Data::INITIATOR_EXTENSION => $this->__('Automatic'), \Ess\M2ePro\Helper\Data::INITIATOR_USER => $this->__('Manual')), 'frame_callback' => array($this, 'callbackColumnInitiator')));
     $this->addColumn('create_date', array('header' => $this->__('Create Date'), 'align' => 'left', 'width' => '165px', 'type' => 'datetime', 'format' => \IntlDateFormatter::MEDIUM, 'index' => 'create_date'));
     return parent::_prepareColumns();
 }
Exemplo n.º 3
0
 protected function _prepareColumns()
 {
     $this->addColumn('transaction_id', array('header' => $this->__('Transaction #'), 'align' => 'left', 'width' => '*', 'index' => 'transaction_id', 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnTransactionId')));
     $this->addColumn('fee', array('header' => $this->__('Fee'), 'align' => 'left', 'width' => '100px', 'index' => 'fee', 'type' => 'number', 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnFee')));
     $this->addColumn('sum', array('header' => $this->__('Amount'), 'align' => 'left', 'width' => '100px', 'index' => 'sum', 'type' => 'number', 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnSum')));
     $this->addColumn('transaction_date', array('header' => $this->__('Date'), 'align' => 'left', 'width' => '150px', 'index' => 'transaction_date', 'type' => 'datetime', 'format' => \IntlDateFormatter::MEDIUM, 'sortable' => false));
     return parent::_prepareColumns();
 }
Exemplo n.º 4
0
 protected function _prepareColumns()
 {
     $this->addColumn('product_id', array('header' => $this->__('Product ID'), 'align' => 'right', 'width' => '100px', 'type' => 'number', 'index' => 'entity_id', 'filter_index' => 'entity_id', 'frame_callback' => array($this, 'callbackColumnProductId')));
     $this->addColumn('name', array('header' => $this->__('Product Title'), 'align' => 'left', 'width' => '350px', 'type' => 'text', 'index' => 'name', 'filter_index' => 'name', 'frame_callback' => array($this, 'callbackColumnProductTitle')));
     $category = $this->getHelper('Component\\Ebay\\Category')->getCategoryTitle(\Ess\M2ePro\Helper\Component\Ebay\Category::TYPE_EBAY_MAIN);
     $this->addColumn('category', array('header' => $this->__('eBay Categories'), 'align' => 'left', 'width' => '*', 'type' => 'options', 'index' => 'category', 'filter_index' => 'entity_id', 'options' => array(1 => $this->__('%1% Selected', $category), 0 => $this->__('%1% Not Selected', $category)), 'frame_callback' => array($this, 'callbackColumnCategoryCallback'), 'filter_condition_callback' => array($this, 'callbackColumnCategoryFilterCallback')));
     $this->addColumn('actions', array('header' => $this->__('Actions'), 'align' => 'center', 'width' => '100px', 'type' => 'text', 'sortable' => false, 'filter' => false, 'field' => 'listing_product_id', 'renderer' => '\\Ess\\M2ePro\\Block\\Adminhtml\\Magento\\Grid\\Column\\Renderer\\Action', 'group_order' => $this->getGroupOrder(), 'actions' => $this->getColumnActionsItems()));
     return parent::_prepareColumns();
 }
Exemplo n.º 5
0
 protected function _prepareColumns()
 {
     $this->addColumn('account', array('header' => $this->__('Account'), 'align' => 'left', 'type' => 'text', 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnAccount')));
     $this->addColumn('marketplace', array('header' => $this->__('Marketplace'), 'align' => 'left', 'type' => 'text', 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnMarketplace')), 'account');
     $this->addColumn('products_total_count', array('header' => $this->__('Total Items'), 'align' => 'right', 'width' => '100px', 'type' => 'number', 'index' => 'products_total_count', 'filter_index' => 'main_table.products_total_count', 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnTotalProducts')));
     $this->addColumn('products_active_count', array('header' => $this->__('Active Items'), 'align' => 'right', 'width' => '100px', 'type' => 'number', 'index' => 'products_active_count', 'filter_index' => 'main_table.products_active_count', 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnListedProducts')));
     $this->addColumn('products_inactive_count', array('header' => $this->__('Inactive Items'), 'align' => 'right', 'width' => '100px', 'type' => 'number', 'index' => 'products_inactive_count', 'filter_index' => 'main_table.products_inactive_count', 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnInactiveProducts')));
     return parent::_prepareColumns();
 }
Exemplo n.º 6
0
 protected function _prepareColumns()
 {
     $this->addColumn('create_date', array('header' => $this->__('Creation Date'), 'align' => 'left', 'width' => '150px', 'type' => 'datetime', 'format' => \IntlDateFormatter::MEDIUM, 'index' => 'create_date', 'filter_index' => 'main_table.create_date'));
     $this->addColumn('update_date', array('header' => $this->__('Update Date'), 'align' => 'left', 'width' => '150px', 'type' => 'datetime', 'format' => \IntlDateFormatter::MEDIUM, 'index' => 'update_date', 'filter_index' => 'main_table.update_date'));
     $confirm = 'Attention! By Deleting Account you delete all information on it from M2E Pro Server. ';
     $confirm .= 'This will cause inappropriate work of all Accounts\' copies.';
     $confirm = $this->__($confirm);
     $this->addColumn('actions', array('header' => $this->__('Actions'), 'align' => 'left', 'width' => '150px', 'type' => 'action', 'index' => 'actions', 'filter' => false, 'sortable' => false, 'getter' => 'getId', 'actions' => array(array('caption' => $this->__('Delete'), 'class' => 'action-default scalable add primary account-delete-btn', 'url' => array('base' => '*/*/delete'), 'field' => 'id', 'confirm' => $confirm))));
     return parent::_prepareColumns();
 }
Exemplo n.º 7
0
 protected function _prepareColumns()
 {
     $this->addColumn('create_date', array('header' => $this->__('Creation Date'), 'align' => 'left', 'type' => 'datetime', 'index' => 'create_date', 'filter_index' => 'main_table.create_date'));
     $this->addColumn('magento_order_number', array('header' => $this->__('Magento Order #'), 'align' => 'left', 'index' => 'so.increment_id', 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnMagentoOrderNumber')));
     $this->addColumn('channel_order_id', array('header' => $this->__('Order #'), 'align' => 'left', 'sortable' => false, 'index' => 'channel_order_id', 'frame_callback' => array($this, 'callbackColumnChannelOrderId'), 'filter_condition_callback' => array($this, 'callbackFilterChannelOrderId')));
     $this->addColumn('description', array('header' => $this->__('Description'), 'align' => 'left', 'index' => 'description', 'frame_callback' => array($this, 'callbackColumnDescription')));
     $this->addColumn('initiator', array('header' => $this->__('Run Mode'), 'align' => 'left', 'index' => 'initiator', 'sortable' => false, 'type' => 'options', 'options' => array(\Ess\M2ePro\Helper\Data::INITIATOR_UNKNOWN => $this->__('Unknown'), \Ess\M2ePro\Helper\Data::INITIATOR_EXTENSION => $this->__('Automatic'), \Ess\M2ePro\Helper\Data::INITIATOR_USER => $this->__('Manual')), 'frame_callback' => array($this, 'callbackColumnInitiator')));
     $this->addColumn('type', array('header' => $this->__('Type'), 'align' => 'left', 'index' => 'type', 'type' => 'options', 'sortable' => false, 'options' => array(\Ess\M2ePro\Model\Log\AbstractLog::TYPE_NOTICE => $this->__('Notice'), \Ess\M2ePro\Model\Log\AbstractLog::TYPE_SUCCESS => $this->__('Success'), \Ess\M2ePro\Model\Log\AbstractLog::TYPE_WARNING => $this->__('Warning'), \Ess\M2ePro\Model\Log\AbstractLog::TYPE_ERROR => $this->__('Error')), 'frame_callback' => array($this, 'callbackColumnType')));
     return parent::_prepareColumns();
 }
Exemplo n.º 8
0
 protected function _prepareColumns()
 {
     $this->addColumn('product_id', array('header' => $this->__('Product ID'), 'align' => 'right', 'width' => '100px', 'type' => 'number', 'index' => 'entity_id', 'filter_index' => 'entity_id', 'frame_callback' => array($this, 'callbackColumnProductId')));
     $this->addColumn('name', array('header' => $this->__('Product Title / Product SKU'), 'align' => 'left', 'type' => 'text', 'index' => 'name', 'filter_index' => 'name', 'frame_callback' => array($this, 'callbackColumnProductTitle'), 'filter_condition_callback' => array($this, 'callbackFilterTitle')));
     $this->addColumn('general_id', array('header' => $this->__('ASIN / ISBN'), 'align' => 'left', 'width' => '140px', 'type' => 'text', 'index' => 'general_id', 'filter_index' => 'general_id', 'frame_callback' => array($this, 'callbackColumnGeneralId')));
     if ($this->listing->getChildObject()->isGeneralIdAttributeMode() || $this->listing->getChildObject()->isWorldwideIdAttributeMode()) {
         $this->addColumn('settings', array('header' => $this->__('Search Settings Values'), 'align' => 'left', 'width' => '240px', 'filter' => false, 'sortable' => false, 'type' => 'text', 'index' => 'id', 'frame_callback' => array($this, 'callbackColumnSettings')));
     }
     $this->addColumn('status', array('header' => $this->__('Status'), 'width' => '200px', 'index' => 'search_settings_status', 'filter_index' => 'search_settings_status', 'sortable' => false, 'type' => 'options', 'options' => array(self::SEARCH_SETTINGS_STATUS_NONE => $this->__('None'), \Ess\M2ePro\Model\Amazon\Listing\Product::SEARCH_SETTINGS_STATUS_IN_PROGRESS => $this->__('In Progress'), \Ess\M2ePro\Model\Amazon\Listing\Product::SEARCH_SETTINGS_STATUS_NOT_FOUND => $this->__('Not Found'), \Ess\M2ePro\Model\Amazon\Listing\Product::SEARCH_SETTINGS_STATUS_ACTION_REQUIRED => $this->__('Action Required'), self::SEARCH_SETTINGS_STATUS_COMPLETED => $this->__('Completed')), 'frame_callback' => array($this, 'callbackColumnStatus'), 'filter_condition_callback' => array($this, 'callbackFilterStatus')));
     return parent::_prepareColumns();
 }
Exemplo n.º 9
0
 protected function _prepareColumns()
 {
     $this->addColumn('products', array('header' => $this->__('Product'), 'align' => 'left', 'width' => '*', 'index' => 'product_id', 'frame_callback' => array($this, 'callbackColumnProduct')));
     $this->addColumn('stock_availability', array('header' => $this->__('Stock Availability'), 'width' => '100px', 'index' => 'is_in_stock', 'filter_index' => 'cisi.is_in_stock', 'type' => 'options', 'sortable' => false, 'options' => array(1 => $this->__('In Stock'), 0 => $this->__('Out of Stock')), 'frame_callback' => array($this, 'callbackColumnStockAvailability')));
     $this->addColumn('original_price', array('header' => $this->__('Original Price'), 'align' => 'left', 'width' => '80px', 'filter' => false, 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnOriginalPrice')));
     $this->addColumn('price', array('header' => $this->__('Price'), 'align' => 'left', 'width' => '80px', 'index' => 'price', 'frame_callback' => array($this, 'callbackColumnPrice')));
     $this->addColumn('qty_sold', array('header' => $this->__('QTY'), 'align' => 'left', 'width' => '80px', 'index' => 'qty_purchased', 'frame_callback' => array($this, 'callbackColumnQty')));
     $this->addColumn('tax_percent', array('header' => $this->__('Tax Percent'), 'align' => 'left', 'width' => '80px', 'filter' => false, 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnTaxPercent')));
     $this->addColumn('row_total', array('header' => $this->__('Row Total'), 'align' => 'left', 'width' => '80px', 'filter' => false, 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnRowTotal')));
     return parent::_prepareColumns();
 }
Exemplo n.º 10
0
 protected function _prepareColumns()
 {
     $this->addColumn('id', ['header' => $this->__('ID'), 'align' => 'left', 'type' => 'number', 'index' => 'id', 'filter_index' => 'main_table.id']);
     $this->addColumn('title', array('header' => $this->__('Title / Info'), 'align' => 'left', 'type' => 'text', 'index' => 'title', 'filter_index' => 'main_table.title', 'frame_callback' => array($this, 'callbackColumnTitle'), 'filter_condition_callback' => array($this, 'callbackFilterTitle')));
     $this->addColumn('products_total_count', array('header' => $this->__('Total Items'), 'align' => 'right', 'type' => 'number', 'index' => 'products_total_count', 'filter_index' => 'main_table.products_total_count', 'frame_callback' => array($this, 'callbackColumnTotalProducts')));
     $this->addColumn('products_active_count', array('header' => $this->__('Active Items'), 'align' => 'right', 'type' => 'number', 'index' => 'products_active_count', 'filter_index' => 'main_table.products_active_count', 'frame_callback' => array($this, 'callbackColumnListedProducts')));
     $this->addColumn('products_inactive_count', array('header' => $this->__('Inactive Items'), 'align' => 'right', 'width' => 100, 'type' => 'number', 'index' => 'products_inactive_count', 'filter_index' => 'main_table.products_inactive_count', 'frame_callback' => array($this, 'callbackColumnInactiveProducts')));
     $this->setColumns();
     $this->addColumn('actions', array('header' => $this->__('Actions'), 'align' => 'left', 'type' => 'action', 'index' => 'actions', 'filter' => false, 'sortable' => false, 'getter' => 'getId', 'renderer' => '\\Ess\\M2ePro\\Block\\Adminhtml\\Magento\\Grid\\Column\\Renderer\\Action', 'group_order' => $this->getGroupOrder(), 'actions' => $this->getColumnActionsItems()));
     return parent::_prepareColumns();
 }
Exemplo n.º 11
0
 protected function _prepareColumns()
 {
     $this->addColumn('product_id', array('header' => $this->__('Product ID'), 'align' => 'left', 'type' => 'number', 'width' => '80px', 'index' => 'product_id', 'filter_index' => 'main_table.product_id', 'frame_callback' => array($this, 'callbackColumnProductId')));
     $this->addColumn('title', array('header' => $this->__('Title / SKU'), 'align' => 'left', 'type' => 'text', 'index' => 'title', 'filter_index' => 'second_table.title', 'frame_callback' => array($this, 'callbackColumnProductTitle'), 'filter_condition_callback' => array($this, 'callbackFilterTitle')));
     $this->addColumn('item_id', array('header' => $this->__('Item ID'), 'align' => 'left', 'width' => '100px', 'type' => 'text', 'index' => 'item_id', 'filter_index' => 'second_table.item_id', 'frame_callback' => array($this, 'callbackColumnItemId')));
     $this->addColumn('online_qty', array('header' => $this->__('Available QTY'), 'align' => 'right', 'width' => '50px', 'type' => 'number', 'index' => 'online_qty', 'filter_index' => new \Zend_Db_Expr('(second_table.online_qty - second_table.online_qty_sold)'), 'frame_callback' => array($this, 'callbackColumnOnlineAvailableQty')));
     $this->addColumn('online_qty_sold', array('header' => $this->__('Sold QTY'), 'align' => 'right', 'width' => '50px', 'type' => 'number', 'index' => 'online_qty_sold', 'filter_index' => 'second_table.online_qty_sold', 'frame_callback' => array($this, 'callbackColumnOnlineQtySold')));
     $this->addColumn('online_price', array('header' => $this->__('Price'), 'align' => 'right', 'width' => '50px', 'type' => 'number', 'index' => 'online_price', 'filter_index' => 'second_table.online_price', 'frame_callback' => array($this, 'callbackColumnOnlinePrice')));
     $this->addColumn('status', array('header' => $this->__('Status'), 'width' => '100px', 'index' => 'status', 'filter_index' => 'main_table.status', 'type' => 'options', 'sortable' => false, 'options' => array(\Ess\M2ePro\Model\Listing\Product::STATUS_LISTED => $this->__('Listed'), \Ess\M2ePro\Model\Listing\Product::STATUS_HIDDEN => $this->__('Listed (Hidden)'), \Ess\M2ePro\Model\Listing\Product::STATUS_SOLD => $this->__('Sold'), \Ess\M2ePro\Model\Listing\Product::STATUS_STOPPED => $this->__('Stopped'), \Ess\M2ePro\Model\Listing\Product::STATUS_FINISHED => $this->__('Finished'), \Ess\M2ePro\Model\Listing\Product::STATUS_BLOCKED => $this->__('Pending')), 'frame_callback' => array($this, 'callbackColumnStatus')));
     $this->addColumn('end_date', array('header' => $this->__('End Date'), 'align' => 'right', 'width' => '150px', 'type' => 'datetime', 'index' => 'end_date', 'filter_index' => 'second_table.end_date', 'frame_callback' => array($this, 'callbackColumnEndTime')));
     $back = $this->getHelper('Data')->makeBackUrlParam('*/ebay_listing_other/view', array('account' => $this->getRequest()->getParam('account'), 'marketplace' => $this->getRequest()->getParam('marketplace'), 'back' => $this->getRequest()->getParam('back')));
     return parent::_prepareColumns();
 }
Exemplo n.º 12
0
 protected function _prepareColumns()
 {
     $this->addColumn('purchase_create_date', array('header' => $this->__('Sale Date'), 'align' => 'left', 'type' => 'datetime', 'format' => \IntlDateFormatter::MEDIUM, 'index' => 'purchase_create_date', 'width' => '170px', 'frame_callback' => array($this, 'callbackPurchaseCreateDate')));
     $this->addColumn('magento_order_num', array('header' => $this->__('Magento Order #'), 'align' => 'left', 'index' => 'so.increment_id', 'width' => '110px', 'frame_callback' => array($this, 'callbackColumnMagentoOrder')));
     $this->addColumn('amazon_order_id', array('header' => $this->__('Amazon Order #'), 'align' => 'left', 'width' => '110px', 'index' => 'amazon_order_id', 'frame_callback' => array($this, 'callbackColumnAmazonOrderId')));
     $this->addColumn('amazon_order_items', array('header' => $this->__('Items'), 'align' => 'left', 'index' => 'amazon_order_items', 'sortable' => false, 'width' => '*', 'frame_callback' => array($this, 'callbackColumnItems'), 'filter_condition_callback' => array($this, 'callbackFilterItems')));
     $this->addColumn('buyer', array('header' => $this->__('Buyer'), 'align' => 'left', 'index' => 'buyer_name', 'width' => '120px', 'frame_callback' => array($this, 'callbackColumnBuyer'), 'filter_condition_callback' => array($this, 'callbackFilterBuyer')));
     $this->addColumn('paid_amount', array('header' => $this->__('Total Paid'), 'align' => 'left', 'width' => '110px', 'index' => 'paid_amount', 'type' => 'number', 'frame_callback' => array($this, 'callbackColumnTotal')));
     $this->addColumn('is_afn_channel', array('header' => $this->__('Fulfillment'), 'width' => '100px', 'index' => 'is_afn_channel', 'filter_index' => 'second_table.is_afn_channel', 'type' => 'options', 'sortable' => false, 'options' => array(0 => $this->__('Merchant'), 1 => $this->__('Amazon')), 'frame_callback' => array($this, 'callbackColumnAfnChannel')));
     $this->addColumn('reservation_state', array('header' => $this->__('Reservation'), 'align' => 'left', 'width' => '50px', 'index' => 'reservation_state', 'type' => 'options', 'options' => array(\Ess\M2ePro\Model\Order\Reserve::STATE_UNKNOWN => $this->__('Not Reserved'), \Ess\M2ePro\Model\Order\Reserve::STATE_PLACED => $this->__('Reserved'), \Ess\M2ePro\Model\Order\Reserve::STATE_RELEASED => $this->__('Released'), \Ess\M2ePro\Model\Order\Reserve::STATE_CANCELED => $this->__('Canceled'))));
     $this->addColumn('status', array('header' => $this->__('Status'), 'align' => 'left', 'width' => '50px', 'index' => 'status', 'filter_index' => 'second_table.status', 'type' => 'options', 'options' => array(\Ess\M2ePro\Model\Amazon\Order::STATUS_PENDING => $this->__('Pending'), \Ess\M2ePro\Model\Amazon\Order::STATUS_UNSHIPPED => $this->__('Unshipped'), \Ess\M2ePro\Model\Amazon\Order::STATUS_SHIPPED_PARTIALLY => $this->__('Partially Shipped'), \Ess\M2ePro\Model\Amazon\Order::STATUS_SHIPPED => $this->__('Shipped'), \Ess\M2ePro\Model\Amazon\Order::STATUS_INVOICE_UNCONFIRMED => $this->__('Invoice Not Confirmed'), \Ess\M2ePro\Model\Amazon\Order::STATUS_UNFULFILLABLE => $this->__('Unfulfillable'), \Ess\M2ePro\Model\Amazon\Order::STATUS_CANCELED => $this->__('Canceled')), 'frame_callback' => array($this, 'callbackColumnStatus')));
     return parent::_prepareColumns();
 }
Exemplo n.º 13
0
 protected function _prepareColumns()
 {
     $this->addColumn('purchase_create_date', array('header' => $this->__('Sale Date'), 'align' => 'left', 'type' => 'datetime', 'format' => \IntlDateFormatter::MEDIUM, 'index' => 'purchase_create_date', 'width' => '170px', 'frame_callback' => array($this, 'callbackPurchaseCreateDate')));
     $this->addColumn('magento_order_num', array('header' => $this->__('Magento Order #'), 'align' => 'left', 'index' => 'so.increment_id', 'width' => '200px', 'frame_callback' => array($this, 'callbackColumnMagentoOrder')));
     $this->addColumn('ebay_order_id', array('header' => $this->__('eBay Order #'), 'align' => 'left', 'width' => '145px', 'index' => 'ebay_order_id', 'frame_callback' => array($this, 'callbackColumnEbayOrder'), 'filter' => 'Ess\\M2ePro\\Block\\Adminhtml\\Ebay\\Grid\\Column\\Filter\\OrderId', 'filter_condition_callback' => array($this, 'callbackFilterEbayOrderId')));
     $this->addColumn('ebay_order_items', array('header' => $this->__('Items'), 'align' => 'left', 'index' => 'ebay_order_items', 'sortable' => false, 'width' => '*', 'frame_callback' => array($this, 'callbackColumnItems'), 'filter_condition_callback' => array($this, 'callbackFilterItems')));
     $this->addColumn('buyer', array('header' => $this->__('Buyer'), 'align' => 'left', 'index' => 'buyer_user_id', 'frame_callback' => array($this, 'callbackColumnBuyer'), 'filter_condition_callback' => array($this, 'callbackFilterBuyer'), 'width' => '120px'));
     $this->addColumn('paid_amount', array('header' => $this->__('Total Paid'), 'align' => 'left', 'width' => '110px', 'index' => 'paid_amount', 'type' => 'number', 'frame_callback' => array($this, 'callbackColumnTotal')));
     $this->addColumn('reservation_state', array('header' => $this->__('Reservation'), 'align' => 'left', 'width' => '50px', 'index' => 'reservation_state', 'type' => 'options', 'options' => array(\Ess\M2ePro\Model\Order\Reserve::STATE_UNKNOWN => $this->__('Not Reserved'), \Ess\M2ePro\Model\Order\Reserve::STATE_PLACED => $this->__('Reserved'), \Ess\M2ePro\Model\Order\Reserve::STATE_RELEASED => $this->__('Released'), \Ess\M2ePro\Model\Order\Reserve::STATE_CANCELED => $this->__('Canceled'))));
     $this->addColumn('checkout_status', array('header' => $this->__('Checkout'), 'align' => 'left', 'width' => '50px', 'index' => 'checkout_status', 'type' => 'options', 'options' => array(\Ess\M2ePro\Model\Ebay\Order::CHECKOUT_STATUS_INCOMPLETE => $this->__('No'), \Ess\M2ePro\Model\Ebay\Order::CHECKOUT_STATUS_COMPLETED => $this->__('Yes')), 'frame_callback' => array($this, 'callbackColumnCheckoutStatus')));
     $this->addColumn('payment_status', array('header' => $this->__('Paid'), 'align' => 'left', 'width' => '50px', 'index' => 'payment_status', 'type' => 'options', 'options' => array(0 => $this->__('No'), 1 => $this->__('Yes')), 'frame_callback' => array($this, 'callbackColumnPayment'), 'filter_condition_callback' => array($this, 'callbackFilterPaymentCondition')));
     $this->addColumn('shipping_status', array('header' => $this->__('Shipped'), 'align' => 'left', 'width' => '50px', 'index' => 'shipping_status', 'type' => 'options', 'options' => array(0 => $this->__('No'), 1 => $this->__('Yes')), 'frame_callback' => array($this, 'callbackColumnShipping'), 'filter_condition_callback' => array($this, 'callbackFilterShippingCondition')));
     return parent::_prepareColumns();
 }
Exemplo n.º 14
0
 protected function _prepareColumns()
 {
     $this->addColumn('product_id', array('header' => $this->__('Product ID'), 'align' => 'left', 'width' => '80px', 'type' => 'number', 'index' => 'product_id', 'filter_index' => 'product_id', 'frame_callback' => array($this, 'callbackColumnProductId')));
     $this->addColumn('title', array('header' => $this->__('Title / SKU'), 'align' => 'left', 'type' => 'text', 'index' => 'title', 'filter_index' => 'second_table.title', 'frame_callback' => array($this, 'callbackColumnProductTitle'), 'filter_condition_callback' => array($this, 'callbackFilterTitle')));
     $this->addColumn('general_id', array('header' => $this->__('ASIN / ISBN'), 'align' => 'left', 'width' => '100px', 'type' => 'text', 'index' => 'general_id', 'filter_index' => 'general_id', 'frame_callback' => array($this, 'callbackColumnGeneralId')));
     $this->addColumn('online_qty', array('header' => $this->__('QTY'), 'align' => 'right', 'width' => '100px', 'type' => 'number', 'index' => 'online_qty', 'filter_index' => 'online_qty', 'frame_callback' => array($this, 'callbackColumnAvailableQty'), 'filter' => 'Ess\\M2ePro\\Block\\Adminhtml\\Amazon\\Grid\\Column\\Filter\\Qty', 'filter_condition_callback' => array($this, 'callbackFilterQty')));
     $priceColumn = array('header' => $this->__('Price'), 'align' => 'right', 'width' => '110px', 'type' => 'number', 'index' => 'online_price', 'filter_index' => 'online_price', 'frame_callback' => array($this, 'callbackColumnPrice'), 'filter_condition_callback' => array($this, 'callbackFilterPrice'));
     //        if (Mage::helper('M2ePro/Component_Amazon')->isRepricingEnabled()) {
     //            $priceColumn['filter'] = 'M2ePro/adminhtml_common_amazon_grid_column_filter_price';
     //        }
     $this->addColumn('online_price', $priceColumn);
     $this->addColumn('status', array('header' => $this->__('Status'), 'width' => '75px', 'index' => 'status', 'filter_index' => 'main_table.status', 'type' => 'options', 'sortable' => false, 'options' => array(\Ess\M2ePro\Model\Listing\Product::STATUS_UNKNOWN => $this->__('Unknown'), \Ess\M2ePro\Model\Listing\Product::STATUS_LISTED => $this->__('Active'), \Ess\M2ePro\Model\Listing\Product::STATUS_STOPPED => $this->__('Inactive'), \Ess\M2ePro\Model\Listing\Product::STATUS_BLOCKED => $this->__('Inactive (Blocked)')), 'frame_callback' => array($this, 'callbackColumnStatus')));
     $backUrl = $this->getHelper('Data')->makeBackUrlParam('*/amazon_listing_other/view', array('account' => $this->getRequest()->getParam('account'), 'marketplace' => $this->getRequest()->getParam('marketplace'), 'back' => $this->getRequest()->getParam('back', null)));
     return parent::_prepareColumns();
 }
Exemplo n.º 15
0
 protected function _prepareColumns()
 {
     $this->addColumn('variation', array('header' => $this->__('Magento Variation'), 'align' => 'left', 'width' => '210px', 'sortable' => false, 'index' => 'attributes', 'filter_index' => 'attributes', 'frame_callback' => array($this, 'callbackColumnVariations'), 'filter' => 'Ess\\M2ePro\\Block\\Adminhtml\\Magento\\Grid\\Column\\Filter\\AttributesOptions', 'options' => $this->getVariationsAttributes(), 'filter_condition_callback' => array($this, 'callbackFilterVariations')));
     $this->addColumn('online_sku', array('header' => $this->__('SKU'), 'align' => 'left', 'width' => '150px', 'index' => 'online_sku', 'filter_index' => 'online_sku', 'frame_callback' => array($this, 'callbackColumnOnlineSku')));
     $this->addColumn('available_qty', array('header' => $this->__('Available QTY'), 'align' => 'right', 'width' => '40px', 'type' => 'number', 'index' => 'available_qty', 'filter' => false, 'frame_callback' => array($this, 'callbackColumnAvailableQty')));
     $this->addColumn('online_qty_sold', array('header' => $this->__('Sold QTY'), 'align' => 'right', 'width' => '40px', 'type' => 'number', 'index' => 'online_qty_sold', 'frame_callback' => array($this, 'callbackColumnOnlineQtySold')));
     $this->addColumn('price', array('header' => $this->__('Price'), 'align' => 'right', 'width' => '40px', 'type' => 'number', 'index' => 'online_price', 'filter_index' => 'online_price', 'frame_callback' => array($this, 'callbackColumnPrice')));
     $this->addColumn('identifiers', array('header' => $this->__('eBay Catalog Identifiers'), 'align' => 'left', 'width' => '150px', 'sortable' => false, 'index' => 'additional_data', 'filter_index' => 'additional_data', 'filter' => 'Ess\\M2ePro\\Block\\Adminhtml\\Magento\\Grid\\Column\\Filter\\AttributesOptions', 'options' => array('upc' => 'UPC', 'ean' => 'EAN', 'isbn' => 'ISBN', 'mpn' => 'MPN'), 'frame_callback' => array($this, 'callbackColumnIdentifiers'), 'filter_condition_callback' => array($this, 'callbackFilterIdentifiers')));
     $this->addColumn('status', array('header' => $this->__('Status'), 'width' => '60px', 'index' => 'status', 'filter_index' => 'status', 'type' => 'options', 'sortable' => false, 'options' => array(\Ess\M2ePro\Model\Listing\Product::STATUS_NOT_LISTED => $this->__('Not Listed'), \Ess\M2ePro\Model\Listing\Product::STATUS_LISTED => $this->__('Active'), \Ess\M2ePro\Model\Listing\Product::STATUS_HIDDEN => $this->__('Inactive'), \Ess\M2ePro\Model\Listing\Product::STATUS_SOLD => $this->__('Sold'), \Ess\M2ePro\Model\Listing\Product::STATUS_STOPPED => $this->__('Stopped'), \Ess\M2ePro\Model\Listing\Product::STATUS_FINISHED => $this->__('Finished'), \Ess\M2ePro\Model\Listing\Product::STATUS_BLOCKED => $this->__('Pending')), 'frame_callback' => array($this, 'callbackColumnStatus')));
     return parent::_prepareColumns();
 }
Exemplo n.º 16
0
 protected function _prepareColumns()
 {
     $this->addColumn('product_id', array('header' => $this->__('Product ID'), 'align' => 'right', 'width' => '100px', 'type' => 'number', 'index' => 'product_id', 'filter_index' => 'product_id', 'frame_callback' => array($this, 'callbackColumnProductId')));
     $this->addColumn('product_name', array('header' => $this->__('Product Title / Listing / Product SKU'), 'align' => 'left', 'type' => 'text', 'index' => 'product_name', 'filter_index' => 'product_name', 'frame_callback' => array($this, 'callbackColumnProductTitle'), 'filter_condition_callback' => array($this, 'callbackFilterTitle')));
     $this->addColumn('sku', array('header' => $this->__('SKU'), 'align' => 'left', 'width' => '150px', 'type' => 'text', 'index' => 'online_sku', 'filter_index' => 'online_sku', 'frame_callback' => array($this, 'callbackColumnAmazonSku')));
     $this->addColumn('general_id', array('header' => $this->__('ASIN / ISBN'), 'align' => 'left', 'width' => '100px', 'type' => 'text', 'index' => 'general_id', 'filter_index' => 'general_id', 'frame_callback' => array($this, 'callbackColumnGeneralId')));
     $this->addColumn('online_qty', array('header' => $this->__('QTY'), 'align' => 'right', 'width' => '70px', 'type' => 'number', 'index' => 'online_qty', 'filter_index' => 'online_qty', 'frame_callback' => array($this, 'callbackColumnAvailableQty'), 'filter' => 'Ess\\M2ePro\\Block\\Adminhtml\\Amazon\\Grid\\Column\\Filter\\Qty', 'filter_condition_callback' => array($this, 'callbackFilterQty')));
     $dir = $this->getParam($this->getVarNameDir(), $this->_defaultDir);
     if ($dir == 'desc') {
         $priceSortField = 'max_online_price';
     } else {
         $priceSortField = 'min_online_price';
     }
     $priceColumn = array('header' => $this->__('Price'), 'align' => 'right', 'width' => '110px', 'type' => 'number', 'index' => $priceSortField, 'filter_index' => $priceSortField, 'frame_callback' => array($this, 'callbackColumnPrice'), 'filter_condition_callback' => array($this, 'callbackFilterPrice'));
     //        if ($this->getHelper('Component\Amazon')->isRepricingEnabled()) {
     //            $priceColumn['filter'] = 'M2ePro/adminhtml_common_amazon_grid_column_filter_price';
     //        }
     $this->addColumn('online_price', $priceColumn);
     $this->addColumn('status', array('header' => $this->__('Status'), 'width' => '125px', 'index' => 'status', 'filter_index' => 'status', 'type' => 'options', 'sortable' => false, 'options' => array(\Ess\M2ePro\Model\Listing\Product::STATUS_UNKNOWN => $this->__('Unknown'), \Ess\M2ePro\Model\Listing\Product::STATUS_NOT_LISTED => $this->__('Not Listed'), \Ess\M2ePro\Model\Listing\Product::STATUS_LISTED => $this->__('Active'), \Ess\M2ePro\Model\Listing\Product::STATUS_STOPPED => $this->__('Inactive'), \Ess\M2ePro\Model\Listing\Product::STATUS_BLOCKED => $this->__('Inactive (Blocked)')), 'frame_callback' => array($this, 'callbackColumnStatus')));
     $this->addColumn('goto_listing_item', array('header' => $this->__('Manage'), 'align' => 'center', 'width' => '50px', 'type' => 'text', 'filter' => false, 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnActions')));
     return parent::_prepareColumns();
 }
Exemplo n.º 17
0
 protected function _prepareColumns()
 {
     $this->addColumn('title', array('header' => $this->__('Title'), 'align' => 'left', 'type' => 'text', 'index' => 'title', 'escape' => true, 'filter_index' => 'main_table.title'));
     $options = array(self::TEMPLATE_SELLING_FORMAT => $this->__('Selling Format'), self::TEMPLATE_SYNCHRONIZATION => $this->__('Synchronization'));
     $this->addColumn('type', array('header' => $this->__('Type'), 'align' => 'left', 'type' => 'options', 'width' => '120px', 'sortable' => false, 'index' => 'type', 'filter_index' => 'main_table.type', 'options' => $options));
     $this->addColumn('marketplace', array('header' => $this->__('Marketplace'), 'align' => 'left', 'type' => 'options', 'width' => '100px', 'index' => 'marketplace_id', 'filter_index' => 'marketplace_id', 'filter_condition_callback' => array($this, 'callbackFilterMarketplace'), 'frame_callback' => array($this, 'callbackColumnMarketplace'), 'options' => $this->getEnabledMarketplaceTitles()), 'type');
     $this->addColumn('create_date', array('header' => $this->__('Creation Date'), 'align' => 'left', 'width' => '150px', 'type' => 'datetime', 'index' => 'create_date', 'filter_index' => 'main_table.create_date'));
     $this->addColumn('update_date', array('header' => $this->__('Update Date'), 'align' => 'left', 'width' => '150px', 'type' => 'datetime', 'index' => 'update_date', 'filter_index' => 'main_table.update_date'));
     $this->addColumn('actions', array('header' => $this->__('Actions'), 'align' => 'left', 'width' => '100px', 'type' => 'action', 'index' => 'actions', 'filter' => false, 'sortable' => false, 'getter' => 'getTemplateId', 'actions' => array(array('caption' => $this->__('Edit'), 'url' => array('base' => '*/amazon_template/edit', 'params' => array('type' => '$type')), 'field' => 'id'), array('caption' => $this->__('Delete'), 'url' => array('base' => '*/amazon_template/delete', 'params' => array('type' => '$type')), 'field' => 'id', 'confirm' => $this->__('Are you sure?')))));
     parent::_prepareColumns();
     $options = array(self::TEMPLATE_SELLING_FORMAT => $this->__('Selling Format'), self::TEMPLATE_DESCRIPTION => $this->__('Description'), self::TEMPLATE_SYNCHRONIZATION => $this->__('Synchronization'));
     $this->getColumn('type')->setData('options', $options);
     $this->getColumn('title')->setData('header', $this->__('Title / Description Policy Category'));
     $this->getColumn('title')->setData('frame_callback', array($this, 'callbackColumnTitle'));
     $this->getColumn('title')->setData('filter_condition_callback', array($this, 'callbackFilterTitle'));
     return $this;
 }
Exemplo n.º 18
0
 protected function _prepareColumns()
 {
     $this->addColumn('product_id', array('header' => $this->__('Product ID'), 'align' => 'right', 'width' => '100px', 'type' => 'number', 'index' => 'product_id', 'filter_index' => 'main_table.product_id', 'frame_callback' => array($this, 'callbackColumnProductId')));
     $this->addColumn('product_name', array('header' => $this->__('Product Title / Listing / Product SKU'), 'align' => 'left', 'type' => 'text', 'index' => 'product_name', 'filter_index' => 'product_name', 'frame_callback' => array($this, 'callbackColumnProductTitle'), 'filter_condition_callback' => array($this, 'callbackFilterTitle')));
     $this->addColumn('ebay_item_id', array('header' => $this->__('Item ID'), 'align' => 'left', 'width' => '100px', 'type' => 'text', 'index' => 'ebay_item_id', 'filter_index' => 'ebay_item_id', 'frame_callback' => array($this, 'callbackColumnEbayItemId')));
     $this->addColumn('online_qty', array('header' => $this->__('Available QTY'), 'align' => 'right', 'width' => '50px', 'type' => 'number', 'index' => 'online_qty', 'filter_index' => 'online_qty', 'frame_callback' => array($this, 'callbackColumnOnlineAvailableQty')));
     $this->addColumn('online_qty_sold', array('header' => $this->__('Sold QTY'), 'align' => 'right', 'width' => '50px', 'type' => 'number', 'index' => 'online_qty_sold', 'filter_index' => 'online_qty_sold', 'frame_callback' => array($this, 'callbackColumnOnlineQtySold')));
     $dir = $this->getParam($this->getVarNameDir(), $this->_defaultDir);
     if ($dir == 'desc') {
         $priceSortField = 'max_online_price';
     } else {
         $priceSortField = 'min_online_price';
     }
     $this->addColumn('price', array('header' => $this->__('Price'), 'align' => 'right', 'width' => '50px', 'type' => 'number', 'index' => $priceSortField, 'filter_index' => $priceSortField, 'frame_callback' => array($this, 'callbackColumnPrice'), 'filter_condition_callback' => array($this, 'callbackFilterPrice')));
     $this->addColumn('status', array('header' => $this->__('Status'), 'width' => '100px', 'index' => 'status', 'filter_index' => 'status', 'type' => 'options', 'sortable' => false, 'options' => array(\Ess\M2ePro\Model\Listing\Product::STATUS_NOT_LISTED => $this->__('Not Listed'), \Ess\M2ePro\Model\Listing\Product::STATUS_LISTED => $this->__('Listed'), \Ess\M2ePro\Model\Listing\Product::STATUS_HIDDEN => $this->__('Listed (Hidden)'), \Ess\M2ePro\Model\Listing\Product::STATUS_SOLD => $this->__('Sold'), \Ess\M2ePro\Model\Listing\Product::STATUS_STOPPED => $this->__('Stopped'), \Ess\M2ePro\Model\Listing\Product::STATUS_FINISHED => $this->__('Finished'), \Ess\M2ePro\Model\Listing\Product::STATUS_BLOCKED => $this->__('Pending')), 'frame_callback' => array($this, 'callbackColumnStatus')));
     $this->addColumn('goto_listing_item', array('header' => $this->__('Manage'), 'align' => 'center', 'width' => '50px', 'type' => 'text', 'filter' => false, 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnActions')));
     return parent::_prepareColumns();
 }
Exemplo n.º 19
0
 protected function _prepareColumns()
 {
     /** @var \Ess\M2ePro\Model\Amazon\Listing\Product\Variation\Manager\Type\Relation\Parent $parentType */
     $parentType = $this->getListingProduct()->getChildObject()->getVariationManager()->getTypeModel();
     $channelAttributesSets = $parentType->getChannelAttributesSets();
     $productAttributes = $parentType->getProductAttributes();
     if ($parentType->hasMatchedAttributes()) {
         $productAttributes = array_keys($parentType->getMatchedAttributes());
         $channelAttributes = array_values($parentType->getMatchedAttributes());
     } else {
         if (!empty($channelAttributesSets)) {
             $channelAttributes = array_keys($channelAttributesSets);
         } else {
             $channelAttributes = array();
         }
     }
     $this->addColumn('product_options', array('header' => $this->__('Magento Variation'), 'align' => 'left', 'width' => '210px', 'sortable' => false, 'index' => 'additional_data', 'filter_index' => 'additional_data', 'frame_callback' => array($this, 'callbackColumnProductOptions'), 'filter' => 'Ess\\M2ePro\\Block\\Adminhtml\\Magento\\Grid\\Column\\Filter\\AttributesOptions', 'options' => $productAttributes, 'filter_condition_callback' => array($this, 'callbackProductOptions')));
     $this->addColumn('channel_options', array('header' => $this->__('Amazon Variation'), 'align' => 'left', 'width' => '210px', 'sortable' => false, 'index' => 'additional_data', 'filter_index' => 'additional_data', 'frame_callback' => array($this, 'callbackColumnChannelOptions'), 'filter' => 'Ess\\M2ePro\\Block\\Adminhtml\\Magento\\Grid\\Column\\Filter\\AttributesOptions', 'options' => $channelAttributes, 'filter_condition_callback' => array($this, 'callbackChannelOptions')));
     $this->addColumn('sku', array('header' => $this->__('SKU'), 'align' => 'left', 'type' => 'text', 'index' => 'sku', 'filter_index' => 'sku', 'frame_callback' => array($this, 'callbackColumnAmazonSku')));
     $this->addColumn('general_id', array('header' => $this->__('ASIN / ISBN'), 'align' => 'left', 'width' => '100px', 'type' => 'text', 'index' => 'general_id', 'filter_index' => 'general_id', 'frame_callback' => array($this, 'callbackColumnGeneralId')));
     $this->addColumn('online_qty', array('header' => $this->__('QTY'), 'align' => 'right', 'width' => '70px', 'type' => 'number', 'index' => 'online_qty', 'filter_index' => 'online_qty', 'frame_callback' => array($this, 'callbackColumnAvailableQty'), 'filter' => 'Ess\\M2ePro\\Block\\Adminhtml\\Amazon\\Grid\\Column\\Filter\\Qty', 'filter_condition_callback' => array($this, 'callbackFilterQty')));
     $priceColumn = array('header' => $this->__('Price'), 'align' => 'right', 'width' => '70px', 'type' => 'number', 'index' => 'online_price', 'filter_index' => 'online_price', 'frame_callback' => array($this, 'callbackColumnPrice'), 'filter_condition_callback' => array($this, 'callbackFilterPrice'));
     //        TODO
     //        if (Mage::helper('M2ePro/Component_Amazon_Repricing')->isEnabled()) {
     //            $priceColumn['filter'] = 'M2ePro/adminhtml_common_amazon_grid_column_filter_price';
     //        }
     $this->addColumn('online_price', $priceColumn);
     $this->addColumn('status', array('header' => $this->__('Status'), 'width' => '100px', 'index' => 'status', 'filter_index' => 'status', 'type' => 'options', 'sortable' => false, 'options' => array(\Ess\M2ePro\Model\Listing\Product::STATUS_UNKNOWN => $this->__('Unknown'), \Ess\M2ePro\Model\Listing\Product::STATUS_NOT_LISTED => $this->__('Not Listed'), \Ess\M2ePro\Model\Listing\Product::STATUS_LISTED => $this->__('Active'), \Ess\M2ePro\Model\Listing\Product::STATUS_STOPPED => $this->__('Inactive'), \Ess\M2ePro\Model\Listing\Product::STATUS_BLOCKED => $this->__('Inactive (Blocked)')), 'frame_callback' => array($this, 'callbackColumnStatus')));
     return parent::_prepareColumns();
 }
Exemplo n.º 20
0
 protected function _prepareColumns()
 {
     $this->addColumn('title', array('header' => $this->__('Title'), 'align' => 'left', 'type' => 'text', 'index' => 'title', 'escape' => true, 'filter_index' => 'main_table.title'));
     $options = array(\Ess\M2ePro\Model\Ebay\Template\Manager::TEMPLATE_PAYMENT => $this->__('Payment'), \Ess\M2ePro\Model\Ebay\Template\Manager::TEMPLATE_SHIPPING => $this->__('Shipping'), \Ess\M2ePro\Model\Ebay\Template\Manager::TEMPLATE_RETURN_POLICY => $this->__('Return'), \Ess\M2ePro\Model\Ebay\Template\Manager::TEMPLATE_SELLING_FORMAT => $this->__('Price, Quantity and Format'), \Ess\M2ePro\Model\Ebay\Template\Manager::TEMPLATE_DESCRIPTION => $this->__('Description'), \Ess\M2ePro\Model\Ebay\Template\Manager::TEMPLATE_SYNCHRONIZATION => $this->__('Synchronization'));
     $this->addColumn('nick', array('header' => $this->__('Type'), 'align' => 'left', 'type' => 'options', 'width' => '100px', 'sortable' => false, 'index' => 'nick', 'filter_index' => 'main_table.nick', 'options' => $options));
     $this->addColumn('marketplace', array('header' => $this->__('Marketplace'), 'align' => 'left', 'type' => 'options', 'width' => '100px', 'index' => 'marketplace', 'filter_index' => 'main_table.marketplace', 'filter_condition_callback' => array($this, 'callbackFilterMarketplace'), 'frame_callback' => array($this, 'callbackColumnMarketplace'), 'options' => $this->getEnabledMarketplaceTitles()));
     $this->addColumn('create_date', array('header' => $this->__('Creation Date'), 'align' => 'left', 'width' => '150px', 'type' => 'datetime', 'index' => 'create_date', 'filter_index' => 'main_table.create_date'));
     $this->addColumn('update_date', array('header' => $this->__('Update Date'), 'align' => 'left', 'width' => '150px', 'type' => 'datetime', 'index' => 'update_date', 'filter_index' => 'main_table.update_date'));
     $this->addColumn('actions', array('header' => $this->__('Actions'), 'align' => 'left', 'width' => '100px', 'type' => 'action', 'index' => 'actions', 'filter' => false, 'sortable' => false, 'getter' => 'getTemplateId', 'actions' => array(array('caption' => $this->__('Edit'), 'url' => array('base' => '*/ebay_template/edit', 'params' => array('nick' => '$nick')), 'field' => 'id'), array('caption' => $this->__('Delete'), 'url' => array('base' => '*/ebay_template/delete', 'params' => array('nick' => '$nick')), 'field' => 'id', 'confirm' => $this->__('Are you sure?')))));
     return parent::_prepareColumns();
 }