Beispiel #1
0
 protected function _prepareColumns()
 {
     $this->addColumn('product_id', array('header' => Mage::helper('M2ePro')->__('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' => Mage::helper('M2ePro')->__('Product Title / Product SKU'), 'align' => 'left', 'width' => '300px', 'type' => 'text', 'index' => 'name', 'filter_index' => 'name', 'frame_callback' => array($this, 'callbackColumnProductTitle'), 'filter_condition_callback' => array($this, 'callbackFilterTitle')));
     $this->addColumn('general_id', array('header' => Mage::helper('M2ePro')->__('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' => Mage::helper('M2ePro')->__('QTY'), 'align' => 'right', 'width' => '70px', 'type' => 'number', 'index' => 'online_qty', 'filter_index' => 'online_qty', 'frame_callback' => array($this, 'callbackColumnAvailableQty')));
     $this->addColumn('online_price', array('header' => Mage::helper('M2ePro')->__('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')));
     $this->addColumn('is_afn_channel', array('header' => Mage::helper('M2ePro')->__('Fulfillment'), 'align' => 'right', 'width' => '90px', 'index' => 'is_afn_channel', 'filter_index' => 'is_afn_channel', 'type' => 'options', 'sortable' => false, 'options' => array(0 => Mage::helper('M2ePro')->__('Merchant'), 1 => Mage::helper('M2ePro')->__('Amazon')), 'frame_callback' => array($this, 'callbackColumnAfnChannel')));
     $this->addColumn('status', array('header' => Mage::helper('M2ePro')->__('Status'), 'width' => '125px', 'index' => 'amazon_status', 'filter_index' => 'amazon_status', 'type' => 'options', 'sortable' => false, 'options' => array(Ess_M2ePro_Model_Listing_Product::STATUS_LISTED => Mage::helper('M2ePro')->__('Active'), Ess_M2ePro_Model_Listing_Product::STATUS_STOPPED => Mage::helper('M2ePro')->__('Inactive'), Ess_M2ePro_Model_Listing_Product::STATUS_BLOCKED => Mage::helper('M2ePro')->__('Inactive (Blocked)')), 'frame_callback' => array($this, 'callbackColumnStatus')));
     if (Mage::helper('M2ePro/Module')->isDevelopmentMode()) {
         $this->addColumn('developer_action', array('header' => Mage::helper('M2ePro')->__('Actions'), 'align' => 'left', 'width' => '100px', 'type' => 'text', 'renderer' => 'M2ePro/adminhtml_listing_view_grid_column_renderer_developerAction', 'index' => 'value', 'filter' => false, 'sortable' => false, 'js_handler' => 'ListingGridHandlerObj'));
     }
     return parent::_prepareColumns();
 }
Beispiel #2
0
 protected function _prepareColumns()
 {
     $this->addColumn('product_id', array('header' => Mage::helper('M2ePro')->__('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' => Mage::helper('M2ePro')->__('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('sku', array('header' => Mage::helper('M2ePro')->__('Reference ID'), 'align' => 'left', 'width' => '150px', 'type' => 'text', 'index' => 'buy_sku', 'filter_index' => 'buy_sku', 'frame_callback' => array($this, 'callbackColumnSku')));
     $this->addColumn('general_id', array('header' => Mage::helper('M2ePro')->__('Rakuten.com SKU'), 'align' => 'left', 'width' => '80px', 'type' => 'text', 'index' => 'general_id', 'filter_index' => 'general_id', 'frame_callback' => array($this, 'callbackColumnGeneralId')));
     $this->addColumn('online_qty', array('header' => Mage::helper('M2ePro')->__('QTY'), 'align' => 'right', 'width' => '70px', 'type' => 'number', 'index' => 'online_qty', 'filter_index' => 'online_qty', 'frame_callback' => array($this, 'callbackColumnAvailableQty')));
     $this->addColumn('online_price', array('header' => Mage::helper('M2ePro')->__('Price'), 'align' => 'right', 'width' => '70px', 'type' => 'number', 'index' => 'online_price', 'filter_index' => 'online_price', 'frame_callback' => array($this, 'callbackColumnPrice')));
     $this->addColumn('status', array('header' => Mage::helper('M2ePro')->__('Status'), 'width' => '125px', 'index' => 'buy_status', 'filter_index' => 'buy_status', 'type' => 'options', 'sortable' => false, 'options' => array(Ess_M2ePro_Model_Listing_Product::STATUS_NOT_LISTED => Mage::helper('M2ePro')->__('Not Listed'), Ess_M2ePro_Model_Listing_Product::STATUS_LISTED => Mage::helper('M2ePro')->__('Active'), Ess_M2ePro_Model_Listing_Product::STATUS_STOPPED => Mage::helper('M2ePro')->__('Inactive')), 'frame_callback' => array($this, 'callbackColumnStatus')));
     if (Mage::helper('M2ePro/Module')->isDevelopmentMode()) {
         $this->addColumn('developer_action', array('header' => Mage::helper('M2ePro')->__('Actions'), 'align' => 'left', 'width' => '120px', 'type' => 'text', 'renderer' => 'M2ePro/adminhtml_listing_view_grid_column_renderer_developerAction', 'index' => 'value', 'filter' => false, 'sortable' => false, 'js_handler' => 'ListingGridHandlerObj'));
     }
     return parent::_prepareColumns();
 }
Beispiel #3
0
 protected function _prepareColumns()
 {
     $this->addColumn('product_id', array('header' => Mage::helper('M2ePro')->__('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' => Mage::helper('M2ePro')->__('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('sku', array('header' => Mage::helper('M2ePro')->__('SKU'), 'align' => 'left', 'width' => '150px', 'type' => 'text', 'index' => 'amazon_sku', 'filter_index' => 'amazon_sku', 'frame_callback' => array($this, 'callbackColumnAmazonSku')));
     $this->addColumn('general_id', array('header' => Mage::helper('M2ePro')->__('ASIN / ISBN'), 'align' => 'left', 'width' => '140px', 'type' => 'text', 'index' => 'general_id', 'filter_index' => 'general_id', 'frame_callback' => array($this, 'callbackColumnGeneralId')));
     $this->addColumn('online_qty', array('header' => Mage::helper('M2ePro')->__('QTY'), 'align' => 'right', 'width' => '70px', 'type' => 'number', 'index' => 'online_qty', 'filter_index' => 'online_qty', 'frame_callback' => array($this, 'callbackColumnAvailableQty'), 'filter' => 'M2ePro/adminhtml_common_amazon_grid_column_filter_qty', 'filter_condition_callback' => array($this, 'callbackFilterQty')));
     $priceColumn = array('header' => Mage::helper('M2ePro')->__('Price'), 'align' => 'right', 'width' => '110px', 'type' => 'number', 'index' => 'min_online_price', 'filter_index' => 'min_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' => Mage::helper('M2ePro')->__('Status'), 'width' => '155px', 'index' => 'amazon_status', 'filter_index' => 'amazon_status', 'type' => 'options', 'sortable' => false, 'options' => array(Ess_M2ePro_Model_Listing_Product::STATUS_UNKNOWN => Mage::helper('M2ePro')->__('Unknown'), Ess_M2ePro_Model_Listing_Product::STATUS_LISTED => Mage::helper('M2ePro')->__('Active'), Ess_M2ePro_Model_Listing_Product::STATUS_STOPPED => Mage::helper('M2ePro')->__('Inactive'), Ess_M2ePro_Model_Listing_Product::STATUS_BLOCKED => Mage::helper('M2ePro')->__('Inactive (Blocked)')), 'frame_callback' => array($this, 'callbackColumnStatus')));
     if (Mage::helper('M2ePro/Module')->isDevelopmentMode()) {
         $this->addColumn('developer_action', array('header' => Mage::helper('M2ePro')->__('Actions'), 'align' => 'left', 'width' => '100px', 'type' => 'text', 'renderer' => 'M2ePro/adminhtml_listing_view_grid_column_renderer_developerAction', 'index' => 'value', 'filter' => false, 'sortable' => false, 'js_handler' => 'ListingGridHandlerObj'));
     }
     return parent::_prepareColumns();
 }
Beispiel #4
0
 protected function _prepareColumns()
 {
     $this->addColumn('product_id', array('header' => Mage::helper('M2ePro')->__('ID'), 'align' => 'right', 'width' => '100px', 'type' => 'number', 'index' => 'entity_id', 'filter_index' => 'entity_id', 'frame_callback' => array($this, 'callbackColumnProductId')));
     $this->addColumn('name', array('header' => Mage::helper('M2ePro')->__('Title'), 'align' => 'left', 'type' => 'text', 'index' => 'name', 'filter_index' => 'name', 'frame_callback' => array($this, 'callbackColumnProductTitle')));
     $tempTypes = Mage::getSingleton('catalog/product_type')->getOptionArray();
     unset($tempTypes['virtual']);
     $this->addColumn('type', array('header' => Mage::helper('M2ePro')->__('Type'), 'align' => 'left', 'width' => '90px', 'type' => 'options', 'sortable' => false, 'index' => 'type_id', 'filter_index' => 'type_id', 'options' => $tempTypes));
     $this->addColumn('is_in_stock', array('header' => Mage::helper('M2ePro')->__('Stock Availability'), 'align' => 'left', 'width' => '90px', 'type' => 'options', 'sortable' => false, 'index' => 'is_in_stock', 'filter_index' => 'is_in_stock', 'options' => array('1' => Mage::helper('M2ePro')->__('In Stock'), '0' => Mage::helper('M2ePro')->__('Out of Stock')), 'frame_callback' => array($this, 'callbackColumnIsInStock')));
     $this->addColumn('sku', array('header' => Mage::helper('M2ePro')->__('SKU'), 'align' => 'left', 'width' => '90px', 'type' => 'text', 'index' => 'sku', 'filter_index' => 'sku'));
     $store = $this->_getStore();
     $this->addColumn('price', array('header' => Mage::helper('M2ePro')->__('Price'), 'align' => 'right', 'width' => '100px', 'type' => 'price', 'currency_code' => $store->getBaseCurrency()->getCode(), 'index' => 'price', 'filter_index' => 'price', 'frame_callback' => array($this, 'callbackColumnPrice')));
     $this->addColumn('qty', array('header' => Mage::helper('M2ePro')->__('QTY'), 'align' => 'right', 'width' => '100px', 'type' => 'number', 'index' => 'qty', 'filter_index' => 'qty', 'frame_callback' => array($this, 'callbackColumnQty')));
     $this->addColumn('visibility', array('header' => Mage::helper('M2ePro')->__('Visibility'), 'align' => 'left', 'width' => '90px', 'type' => 'options', 'sortable' => false, 'index' => 'visibility', 'filter_index' => 'visibility', 'options' => Mage::getModel('catalog/product_visibility')->getOptionArray()));
     $this->addColumn('status', array('header' => Mage::helper('M2ePro')->__('Status'), 'align' => 'left', 'width' => '90px', 'type' => 'options', 'sortable' => false, 'index' => 'status', 'filter_index' => 'status', 'options' => Mage::getSingleton('catalog/product_status')->getOptionArray(), 'frame_callback' => array($this, 'callbackColumnStatus')));
     if (!Mage::app()->isSingleStoreMode()) {
         $this->addColumn('websites', array('header' => Mage::helper('M2ePro')->__('Websites'), 'align' => 'left', 'width' => '90px', 'type' => 'options', 'sortable' => false, 'index' => 'websites', 'filter_index' => 'websites', 'options' => Mage::getModel('core/website')->getCollection()->toOptionHash()));
     }
     return parent::_prepareColumns();
 }
 protected function _prepareColumns()
 {
     $this->addColumn('product_id', array('header' => Mage::helper('M2ePro')->__('Product ID'), 'align' => 'right', 'width' => '100px', 'type' => 'number', 'index' => 'entity_id', 'frame_callback' => array($this, 'callbackColumnProductId')));
     $this->addColumn('name', array('header' => Mage::helper('M2ePro')->__('Product Title / SKU / eBay Category'), 'align' => 'left', 'type' => 'text', 'index' => 'online_title', 'frame_callback' => array($this, 'callbackColumnTitle'), 'filter_condition_callback' => array($this, 'callbackFilterTitle')));
     $this->addColumn('ebay_item_id', array('header' => Mage::helper('M2ePro')->__('Item ID'), 'align' => 'left', 'width' => '100px', 'type' => 'text', 'index' => 'item_id', 'frame_callback' => array($this, 'callbackColumnEbayItemId')));
     $this->addColumn('available_qty', array('header' => Mage::helper('M2ePro')->__('Available QTY'), 'align' => 'right', 'width' => '50px', 'type' => 'number', 'index' => 'available_qty', 'sortable' => (bool) version_compare(Mage::helper('M2ePro/Magento')->getVersion(), '1.4.2'), 'filter' => false, 'frame_callback' => array($this, 'callbackColumnOnlineAvailableQty')));
     $this->addColumn('online_qty_sold', array('header' => Mage::helper('M2ePro')->__('Sold QTY'), 'align' => 'right', 'width' => '50px', 'type' => 'number', 'index' => 'online_qty_sold', 'frame_callback' => array($this, 'callbackColumnOnlineQtySold')));
     $this->addColumn('online_buyitnow_price', array('header' => Mage::helper('M2ePro')->__('"Buy It Now" Price'), 'align' => 'right', 'width' => '50px', 'type' => 'number', 'index' => 'online_buyitnow_price', 'frame_callback' => array($this, 'callbackColumnOnlineBuyItNowPrice')));
     $this->addColumn('end_date', array('header' => Mage::helper('M2ePro')->__('End Date'), 'align' => 'right', 'width' => '150px', 'type' => 'datetime', 'format' => Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM), 'index' => 'end_date', 'frame_callback' => array($this, 'callbackColumnEndTime')));
     $this->addColumn('status', array('header' => Mage::helper('M2ePro')->__('Status'), 'width' => '100px', 'index' => 'status', 'filter_index' => 'status', 'type' => 'options', 'sortable' => false, 'options' => array(Ess_M2ePro_Model_Listing_Product::STATUS_NOT_LISTED => Mage::helper('M2ePro')->__('Not Listed'), Ess_M2ePro_Model_Listing_Product::STATUS_LISTED => Mage::helper('M2ePro')->__('Listed'), Ess_M2ePro_Model_Listing_Product::STATUS_HIDDEN => Mage::helper('M2ePro')->__('Listed (Hidden)'), Ess_M2ePro_Model_Listing_Product::STATUS_SOLD => Mage::helper('M2ePro')->__('Sold'), Ess_M2ePro_Model_Listing_Product::STATUS_STOPPED => Mage::helper('M2ePro')->__('Stopped'), Ess_M2ePro_Model_Listing_Product::STATUS_FINISHED => Mage::helper('M2ePro')->__('Finished'), Ess_M2ePro_Model_Listing_Product::STATUS_BLOCKED => Mage::helper('M2ePro')->__('Pending')), 'frame_callback' => array($this, 'callbackColumnStatus')));
     // todo adviser
     //        $this->addColumn('adviser', array(
     //            'header'    => Mage::helper('M2ePro')->__('Adviser'),
     //            'align'     => 'right',
     //            'width'     => '150px',
     //            'type'      => 'text',
     //            'index'     => 'adviser',
     //            'sortable'  => false,
     //            'filter'    => false,
     ////            'frame_callback' => array($this, 'callbackColumnAdviser')
     //        ));
     if (Mage::helper('M2ePro/Magento')->isDeveloper()) {
         $this->addColumn('developer_action', array('header' => Mage::helper('M2ePro')->__('Actions'), 'align' => 'left', 'width' => '100px', 'type' => 'text', 'renderer' => 'M2ePro/adminhtml_listing_view_grid_column_renderer_developerAction', 'index' => 'value', 'filter' => false, 'sortable' => false, 'js_handler' => 'EbayListingEbayGridHandlerObj'));
     }
     return parent::_prepareColumns();
 }
Beispiel #6
0
 protected function _prepareColumns()
 {
     $this->addColumn('product_id', array('header' => Mage::helper('M2ePro')->__('Product ID'), 'align' => 'right', 'width' => '100px', 'type' => 'number', 'index' => 'entity_id', 'frame_callback' => array($this, 'callbackColumnProductId')));
     $this->addColumn('name', array('header' => Mage::helper('M2ePro')->__('Product Title / Product SKU'), 'align' => 'left', 'type' => 'text', 'index' => 'online_title', 'frame_callback' => array($this, 'callbackColumnTitle'), 'filter_condition_callback' => array($this, 'callbackFilterTitle')));
     $this->addColumn('language', array('header' => Mage::helper('M2ePro')->__('Source Language'), 'align' => 'left', 'width' => '150px', 'type' => 'text', 'filter' => false, 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnSourceLanguage')));
     $this->addColumn('service', array('header' => Mage::helper('M2ePro')->__('Translation Plan'), 'align' => 'left', 'width' => '200px', 'type' => 'options', 'sortable' => false, 'index' => 'translation_service', 'options' => Mage::helper('M2ePro/Component_Ebay')->getTranslationServices(), 'frame_callback' => array($this, 'callbackColumnServices')));
     $this->addColumn('translated_date', array('header' => Mage::helper('M2ePro')->__('Translated Date'), 'align' => 'right', 'width' => '150px', 'type' => 'datetime', 'format' => Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM), 'index' => 'translated_date', 'frame_callback' => array($this, 'callbackColumnTranslatedTime')));
     $this->addColumn('translation_status', array('header' => Mage::helper('M2ePro')->__('Status'), 'width' => '100px', 'index' => 'translation_status', 'filter_index' => 'translation_status', 'type' => 'options', 'sortable' => false, 'options' => array(Ess_M2ePro_Model_Ebay_Listing_Product::TRANSLATION_STATUS_PENDING => Mage::helper('M2ePro')->__('Pending'), Ess_M2ePro_Model_Ebay_Listing_Product::TRANSLATION_STATUS_PENDING_PAYMENT_REQUIRED => Mage::helper('M2ePro')->__('Payment Required'), Ess_M2ePro_Model_Ebay_Listing_Product::TRANSLATION_STATUS_IN_PROGRESS => Mage::helper('M2ePro')->__('In Progress'), Ess_M2ePro_Model_Ebay_Listing_Product::TRANSLATION_STATUS_TRANSLATED => Mage::helper('M2ePro')->__('Translated')), 'frame_callback' => array($this, 'callbackColumnStatus')));
     return parent::_prepareColumns();
 }
Beispiel #7
0
 protected function _prepareColumns()
 {
     $this->addColumn('product_id', array('header' => Mage::helper('M2ePro')->__('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' => Mage::helper('M2ePro')->__('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('sku', array('header' => Mage::helper('M2ePro')->__('SKU'), 'align' => 'left', 'width' => '150px', 'type' => 'text', 'index' => 'amazon_sku', 'filter_index' => 'amazon_sku', 'frame_callback' => array($this, 'callbackColumnAmazonSku')));
     $this->addColumn('general_id', array('header' => Mage::helper('M2ePro')->__('ASIN / ISBN'), 'align' => 'left', 'width' => '140px', 'type' => 'text', 'index' => 'general_id', 'filter_index' => 'general_id', 'frame_callback' => array($this, 'callbackColumnGeneralId')));
     $this->addColumn('description_template', array('header' => Mage::helper('M2ePro')->__('Description Policy'), 'align' => 'left', 'width' => '170px', 'type' => 'text', 'index' => 'template_description_title', 'filter_index' => 'template_description_title', 'frame_callback' => array($this, 'callbackColumnTemplateDescription')));
     $this->addColumn('shipping_override_template', array('header' => Mage::helper('M2ePro')->__('Shipping Override Policy'), 'align' => 'left', 'width' => '170px', 'type' => 'text', 'index' => 'template_shipping_override_title', 'filter_index' => 'template_shipping_override_title', 'frame_callback' => array($this, 'callbackColumnTemplateShippingOverride')));
     $this->addColumn('actions', array('header' => Mage::helper('M2ePro')->__('Actions'), 'align' => 'left', 'width' => '100px', 'type' => 'action', 'index' => 'actions', 'filter' => false, 'sortable' => false, 'renderer' => 'M2ePro/adminhtml_grid_column_renderer_action', 'field' => 'id', 'group_order' => $this->getGroupOrder(), 'actions' => $this->getColumnActionsItems()));
     return parent::_prepareColumns();
 }