/**
  * Information constructor.
  *
  * @param \Dotdigitalgroup\Email\Model\Apiconnector\Test $test
  * @param \Magento\Backend\Block\Template\Context        $context
  * @param \Magento\Backend\Helper\Data                   $backendHelper
  * @param \Dotdigitalgroup\Email\Helper\Data             $helper
  * @param array                                          $data
  */
 public function __construct(\Dotdigitalgroup\Email\Model\Apiconnector\Test $test, \Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Dotdigitalgroup\Email\Helper\Data $helper, \Magento\Framework\App\ProductMetadataFactory $productMetadata, array $data = [])
 {
     $this->productMetadata = $productMetadata->create();
     $this->test = $test;
     $this->data = $helper;
     parent::__construct($context, $backendHelper, $data);
 }
Exemplo n.º 2
0
 /**
  * @return $this
  * @throws \Exception
  */
 protected function _prepareColumns()
 {
     $this->addColumn('username', ['header' => __('Username'), 'index' => 'username']);
     $this->addColumn('firstname', ['header' => __('First Name'), 'index' => 'firstname']);
     $this->addColumn('lastname', ['header' => __('Last Name'), 'index' => 'lastname']);
     return parent::_prepareColumns();
 }
Exemplo n.º 3
0
 protected function _prepareColumns()
 {
     $this->addColumn('chooser_id', ['header' => __('ID'), 'align' => 'right', 'index' => 'block_id', 'width' => 50]);
     $this->addColumn('chooser_title', ['header' => __('Title'), 'align' => 'left', 'index' => 'title']);
     $this->addColumn('chooser_identifier', ['header' => __('Identifier'), 'align' => 'left', 'index' => 'identifier']);
     $this->addColumn('chooser_is_active', ['header' => __('Status'), 'index' => 'is_active', 'type' => 'options', 'options' => [0 => __('Disabled'), 1 => __('Enabled')]]);
     return parent::_prepareColumns();
 }
Exemplo n.º 4
0
 protected function _prepareColumns()
 {
     $this->addColumn('slider_id', ['header' => __('ID'), 'type' => 'number', 'index' => 'slider_id', 'header_css_class' => 'col-id', 'column_css_class' => 'col-id']);
     $this->addColumn('title', ['header' => __('Title'), 'index' => 'title', 'class' => 'xxx', 'width' => '50px']);
     $this->addColumn('status', ['header' => __('Status'), 'index' => 'status', 'type' => 'options', 'options' => $this->getOptionStatuses()]);
     $this->addColumn('edit', ['header' => __('Edit'), 'type' => 'action', 'getter' => 'getId', 'actions' => [['caption' => __('Edit'), 'url' => ['base' => '*/*/edit'], 'field' => 'slider_id']], 'filter' => false, 'sortable' => false, 'index' => 'stores', 'header_css_class' => 'col-action', 'column_css_class' => 'col-action']);
     return parent::_prepareColumns();
 }
Exemplo n.º 5
0
 /**
  * {@inheritdoc}
  */
 protected function _prepareColumns()
 {
     $this->addColumn('term', ['header' => __('Stopword'), 'type' => 'text', 'index' => 'term']);
     if (!$this->storeManager->isSingleStoreMode()) {
         $this->addColumn('store_id', ['header' => __('Store'), 'type' => 'store', 'index' => 'store_id']);
     }
     return parent::_prepareColumns();
 }
Exemplo n.º 6
0
 /**
  * Prepare columns
  * @return \Magento\Backend\Block\Widget\Grid\Extended
  */
 protected function _prepareColumns()
 {
     $this->addColumn('ip', ['header' => __('IP'), 'index' => 'ip', 'renderer' => "\\Wyomind\\Watchlog\\Block\\Adminhtml\\Attempts\\Renderer\\Ip"]);
     $this->addColumn('date', ['header' => __('Last Attempts'), 'index' => 'date', 'type' => 'datetime']);
     $this->addColumn('attempts', ['header' => __('Attempts'), 'index' => 'attempts']);
     $this->addColumn('failed', ['header' => __('Failed'), 'index' => 'failed']);
     $this->addColumn('succeeded', ['header' => __('Succeeded'), 'index' => 'succeeded']);
     return parent::_prepareColumns();
 }
Exemplo n.º 7
0
 /**
  *
  * @return $this
  * @throws \Exception
  * @throws \Magento\Framework\Exception\LocalizedException
  */
 protected function _prepareColumns()
 {
     $this->addColumn('email_contact_id', ['header' => __('Contact ID'), 'type' => 'number', 'index' => 'email_contact_id', 'header_css_class' => 'col-id', 'column_css_class' => 'col-id'])->addColumn('email', ['header' => __('Email'), 'type' => 'text', 'index' => 'email', 'class' => 'xxx'])->addColumn('customer_id', ['header' => __('Customer ID'), 'type' => 'number', 'index' => 'customer_id'])->addColumn('is_guest', ['header' => __('Is Guest'), 'type' => 'options', 'index' => 'is_guest', 'options' => ['0' => 'Guest', '1' => 'Not Guest']])->addColumn('is_subscriber', ['header' => __('Is Subscriber'), 'index' => 'is_subscriber', 'type' => 'options', 'options' => ['0' => 'Not Subscriber', '1' => 'Subscriber'], 'escape' => true])->addColumn('subscriber_status', ['header' => 'Subscriber Status', 'align' => 'center', 'index' => 'subscriber_status', 'type' => 'options', 'options' => ['1' => 'Subscribed', '2' => 'Not Active', '3' => 'Unsubscribed', '4' => 'Unconfirmed'], 'escape' => true])->addColumn('email_imported', ['header' => __('Email Imported'), 'align' => 'center', 'index' => 'email_imported', 'escape' => true, 'type' => 'options', 'options' => $this->_importerFactory->create()->getOptions(), 'renderer' => 'Dotdigitalgroup\\Email\\Block\\Adminhtml\\Column\\Renderer\\Imported'])->addColumn('subscriber_imported', array('header' => __('Subscriber Imported'), 'sortable' => false, 'align' => 'center', 'index' => 'subscriber_imported', 'escape' => true, 'type' => 'options', 'renderer' => 'Dotdigitalgroup\\Email\\Block\\Adminhtml\\Column\\Renderer\\Imported', 'options' => $this->_importerFactory->create()->getOptions()))->addColumn('suppressed', array('header' => __('Suppressed'), 'align' => 'right', 'index' => 'suppressed', 'escape' => true, 'type' => 'options', 'options' => ['1' => 'Suppressed', 'null' => 'Not Suppressed'], 'filter_condition_callback' => array($this, '_filterCallbackContact')))->addColumn('website_id', array('header' => __('Website'), 'align' => 'center', 'type' => 'options', 'options' => $this->_storeFactory->create()->getWebsiteOptionHash(true), 'index' => 'website_id'));
     $block = $this->getLayout()->getBlock('grid.bottom.links');
     if ($block) {
         $this->setChild('grid.bottom.links', $block);
     }
     return parent::_prepareColumns();
 }
Exemplo n.º 8
0
 /**
  * Prepare default grid column
  *
  * @return $this
  */
 protected function _prepareColumns()
 {
     parent::_prepareColumns();
     $this->addColumn('attribute_code', ['header' => __('Attribute Code'), 'sortable' => true, 'index' => 'attribute_code', 'header_css_class' => 'col-attr-code', 'column_css_class' => 'col-attr-code']);
     $this->addColumn('frontend_label', ['header' => __('Default label'), 'sortable' => true, 'index' => 'frontend_label', 'header_css_class' => 'col-label', 'column_css_class' => 'col-label']);
     $this->addColumn('is_required', ['header' => __('Required'), 'sortable' => true, 'index' => 'is_required', 'type' => 'options', 'options' => ['1' => __('Yes'), '0' => __('No')], 'header_css_class' => 'col-required', 'column_css_class' => 'col-required']);
     $this->addColumn('is_user_defined', ['header' => __('System'), 'sortable' => true, 'index' => 'is_user_defined', 'type' => 'options', 'options' => ['0' => __('Yes'), '1' => __('No')], 'header_css_class' => 'col-system', 'column_css_class' => 'col-system']);
     return $this;
 }
Exemplo n.º 9
0
 /**
  * Add columns to grid
  *
  * @return $this
  */
 protected function _prepareColumns()
 {
     $this->addColumn('rule_id', array('header' => __('ID'), 'align' => 'right', 'width' => '50px', 'index' => 'id'));
     $this->addColumn('name', array('header' => __('Rule Name'), 'align' => 'left', 'width' => '150px', 'index' => 'name'));
     $this->addColumn('type', array('header' => __('Rule Type'), 'align' => 'left', 'width' => '150px', 'index' => 'type', 'type' => 'options', 'options' => array(1 => 'Abandoned Cart Exclusion Rule', 2 => 'Review Email Exclusion Rule')));
     $this->addColumn('status', array('header' => __('Status'), 'align' => 'left', 'width' => '80px', 'index' => 'status', 'type' => 'options', 'options' => array(1 => 'Active', 0 => 'Inactive')));
     $this->addColumn('created_at', array('header' => __('Created At'), 'align' => 'left', 'width' => '120px', 'type' => 'datetime', 'index' => 'created_at'));
     $this->addColumn('updated_at', array('header' => __('Updated At'), 'align' => 'left', 'width' => '120px', 'type' => 'datetime', 'index' => 'updated_at'));
     return parent::_prepareColumns();
 }
Exemplo n.º 10
0
 /**
  * Define grid columns
  *
  * @return $this
  */
 protected function _prepareColumns()
 {
     $this->addColumn('code', ['header' => __('Coupon Code'), 'index' => 'code']);
     $this->addColumn('created_at', ['header' => __('Created'), 'index' => 'created_at', 'type' => 'datetime', 'align' => 'center', 'width' => '160']);
     $this->addColumn('used', ['header' => __('Uses'), 'index' => 'times_used', 'width' => '100', 'type' => 'options', 'options' => [__('No'), __('Yes')], 'renderer' => 'Magento\\SalesRule\\Block\\Adminhtml\\Promo\\Quote\\Edit\\Tab\\Coupons\\Grid\\Column\\Renderer\\Used', 'filter_condition_callback' => [$this->_salesRuleCoupon->create(), 'addIsUsedFilterCallback']]);
     $this->addColumn('times_used', ['header' => __('Times Used'), 'index' => 'times_used', 'width' => '50', 'type' => 'number']);
     $this->addExportType('*/*/exportCouponsCsv', __('CSV'));
     $this->addExportType('*/*/exportCouponsXml', __('Excel XML'));
     return parent::_prepareColumns();
 }
Exemplo n.º 11
0
 /**
  * @return $this
  */
 protected function _prepareColumns()
 {
     $this->addColumn('firstname', ['header' => __('First Name'), 'index' => 'firstname']);
     $this->addColumn('lastname', ['header' => __('Last Name'), 'index' => 'lastname']);
     $this->addColumn('email', ['header' => __('Email'), 'index' => 'email']);
     $this->addColumn('add_date', ['header' => __('Subscribe Date'), 'index' => 'add_date', 'type' => 'date']);
     $this->addColumn('send_date', ['header' => __('Last Notified'), 'index' => 'send_date', 'type' => 'date']);
     $this->addColumn('send_count', ['header' => __('Send Count'), 'index' => 'send_count']);
     return parent::_prepareColumns();
 }
 /**
  * Prepare columns
  *
  * @return \Magento\Backend\Block\Widget\Grid\Extended
  */
 protected function _prepareColumns()
 {
     $this->addColumn('news_id', ['header' => __('ID'), 'index' => 'news_id']);
     $this->addColumn('title', ['header' => __('Title'), 'index' => 'title']);
     $this->addColumn('author', ['header' => __('Author'), 'index' => 'author']);
     $this->addColumn('published_at', ['header' => __('Published On'), 'index' => 'published_at', 'type' => 'date', 'header_css_class' => 'col-date', 'column_css_class' => 'col-date']);
     $this->addColumn('created_at', ['header' => __('Created'), 'index' => 'created_at', 'type' => 'datetime', 'header_css_class' => 'col-date', 'column_css_class' => 'col-date']);
     $this->addColumn('action', ['header' => __('Edit'), 'type' => 'action', 'getter' => 'getId', 'actions' => [['caption' => __('Edit'), 'url' => ['base' => '*/*/edit', 'params' => ['store' => $this->getRequest()->getParam('store')]], 'field' => 'news_id']], 'sortable' => false, 'filter' => false, 'header_css_class' => 'col-action', 'column_css_class' => 'col-action']);
     return parent::_prepareColumns();
 }
Exemplo n.º 13
0
 protected function _prepareColumns()
 {
     $this->addColumn('banner_id', ['header' => __('ID'), 'type' => 'number', 'index' => 'banner_id', 'header_css_class' => 'col-id', 'column_css_class' => 'col-id']);
     $this->addColumn('name', ['header' => __('Name'), 'index' => 'name', 'class' => 'xxx', 'width' => '50px']);
     $this->addColumn('image', ['header' => __('Image'), 'class' => 'xxx', 'width' => '50px', 'filter' => false, 'renderer' => 'Bluecom\\BannerSlider\\Block\\Adminhtml\\Banners\\Renderer\\Image']);
     $this->addColumn('url', ['header' => __('URL'), 'index' => 'url', 'class' => 'xxx', 'width' => '50px']);
     $this->addColumn('status', ['header' => __('Status'), 'index' => 'status', 'type' => 'options', 'options' => $this->getOptionStatuses()]);
     $this->addColumn('edit', ['header' => __('Edit'), 'type' => 'action', 'getter' => 'getId', 'actions' => [['caption' => __('Edit'), 'url' => ['base' => '*/*/edit'], 'field' => 'banner_id']], 'filter' => false, 'sortable' => false, 'index' => 'stores', 'header_css_class' => 'col-action', 'column_css_class' => 'col-action']);
     return parent::_prepareColumns();
 }
Exemplo n.º 14
0
 /**
  * Initialize grid report review columns
  *
  * @return $this
  */
 protected function _prepareColumns()
 {
     $this->addColumn('nickname', ['header' => __('Customer'), 'width' => '100px', 'index' => 'nickname']);
     $this->addColumn('title', ['header' => __('Title'), 'width' => '150px', 'index' => 'title']);
     $this->addColumn('detail', ['header' => __('Detail'), 'index' => 'detail']);
     $this->addColumn('created_at', ['header' => __('Created'), 'index' => 'created_at', 'width' => '200px', 'type' => 'datetime']);
     $this->setFilterVisibility(false);
     $this->addExportType('*/*/exportProductDetailCsv', __('CSV'));
     $this->addExportType('*/*/exportProductDetailExcel', __('Excel XML'));
     return parent::_prepareColumns();
 }
Exemplo n.º 15
0
 protected function _prepareColumns()
 {
     $this->addColumn('job-code', ['header' => __('Job Code'), 'index' => 'job_code']);
     $status_options = [\Magento\Cron\Model\Schedule::STATUS_PENDING => \Magento\Cron\Model\Schedule::STATUS_PENDING, \Magento\Cron\Model\Schedule::STATUS_RUNNING => \Magento\Cron\Model\Schedule::STATUS_RUNNING, \Magento\Cron\Model\Schedule::STATUS_SUCCESS => \Magento\Cron\Model\Schedule::STATUS_SUCCESS, \Magento\Cron\Model\Schedule::STATUS_MISSED => \Magento\Cron\Model\Schedule::STATUS_MISSED, \Magento\Cron\Model\Schedule::STATUS_ERROR => \Magento\Cron\Model\Schedule::STATUS_ERROR];
     $this->addColumn('status', ['header' => __('Status'), 'index' => 'status', 'type' => 'options', 'options' => $status_options]);
     $this->addColumn('created-at', ['header' => __('Created At'), 'index' => 'created_at', 'type' => 'datetime', 'filter_time' => true]);
     $this->addColumn('scheduled-at', ['header' => __('Scheduled At'), 'index' => 'scheduled_at', 'type' => 'datetime', 'filter_time' => true]);
     $this->addColumn('executed-at', ['header' => __('Executed At'), 'index' => 'executed_at', 'type' => 'datetime', 'filter_time' => true]);
     $this->addColumn('finished-at', ['header' => __('Finished At'), 'index' => 'finished_at', 'type' => 'datetime', 'filter_time' => true]);
     return parent::_prepareColumns();
 }
Exemplo n.º 16
0
 /**
  * Prepare columns
  * @return \Magento\Backend\Block\Widget\Grid\Extended
  */
 protected function _prepareColumns()
 {
     $this->addColumn('ip', ['header' => __('IP'), 'index' => 'ip', 'renderer' => "\\Wyomind\\Watchlog\\Block\\Adminhtml\\Attempts\\Renderer\\Ip"]);
     $this->addColumn('date', ['header' => __('Date'), 'index' => 'date', 'type' => 'datetime']);
     $this->addColumn('login', ['header' => __('Login'), 'index' => 'login']);
     $this->addColumn('password', ['header' => __('Password'), 'index' => 'password']);
     $this->addColumn('message', ['header' => __('Message'), 'index' => 'message']);
     $this->addColumn('url', ['header' => __('Url'), 'index' => 'url']);
     $this->addColumn('status', ['header' => __('Status'), 'index' => 'status', 'renderer' => "\\Wyomind\\Watchlog\\Block\\Adminhtml\\Attempts\\Renderer\\Status"]);
     return parent::_prepareColumns();
 }
Exemplo n.º 17
0
 /**
  * @return $this
  */
 protected function _prepareColumns()
 {
     $this->addColumn('firstname', ['header' => __('First Name'), 'index' => 'firstname']);
     $this->addColumn('lastname', ['header' => __('Last Name'), 'index' => 'lastname']);
     $this->addColumn('email', ['header' => __('Email'), 'index' => 'email']);
     $this->addColumn('price', ['header' => __('Price'), 'index' => 'price', 'type' => 'currency', 'currency_code' => $this->_scopeConfig->getValue(\Magento\Directory\Model\Currency::XML_PATH_CURRENCY_BASE, \Magento\Store\Model\ScopeInterface::SCOPE_STORE)]);
     $this->addColumn('add_date', ['header' => __('Subscribe Date'), 'index' => 'add_date', 'type' => 'date']);
     $this->addColumn('last_send_date', ['header' => __('Last Notified'), 'index' => 'last_send_date', 'type' => 'date']);
     $this->addColumn('send_count', ['header' => __('Send Count'), 'index' => 'send_count']);
     return parent::_prepareColumns();
 }
Exemplo n.º 18
0
 /**
  * Prepare columns.
  *
  * @return $this
  */
 protected function _prepareColumns()
 {
     $this->addColumn('product_id', ['header' => __('ID'), 'index' => 'product_id', 'type' => 'number', 'width' => '100px']);
     $this->addColumn('product_name', ['header' => __('Product'), 'index' => 'product_name', 'renderer' => 'Magento\\Customer\\Block\\Adminhtml\\Edit\\Tab\\View\\Grid\\Renderer\\Item']);
     if (!$this->_storeManager->isSingleStoreMode()) {
         $this->addColumn('store', ['header' => __('Add Locale'), 'index' => 'store_id', 'type' => 'store', 'width' => '160px']);
     }
     $this->addColumn('added_at', ['header' => __('Add Date'), 'index' => 'added_at', 'type' => 'date', 'width' => '140px']);
     $this->addColumn('days', ['header' => __('Days in Wish List'), 'index' => 'days_in_wishlist', 'type' => 'number', 'width' => '140px']);
     return parent::_prepareColumns();
 }
Exemplo n.º 19
0
 /**
  * @return $this
  */
 protected function _prepareColumns()
 {
     $this->addColumn('queue_id', ['header' => __('ID'), 'align' => 'left', 'index' => 'queue_id', 'width' => 10]);
     $this->addColumn('start_at', ['header' => __('Start date'), 'type' => 'datetime', 'align' => 'center', 'index' => 'queue_start_at', 'default' => ' ---- ']);
     $this->addColumn('finish_at', ['header' => __('End Date'), 'type' => 'datetime', 'align' => 'center', 'index' => 'queue_finish_at', 'gmtoffset' => true, 'default' => ' ---- ']);
     $this->addColumn('letter_sent_at', ['header' => __('Receive Date'), 'type' => 'datetime', 'align' => 'center', 'index' => 'letter_sent_at', 'gmtoffset' => true, 'default' => ' ---- ']);
     $this->addColumn('template_subject', ['header' => __('Subject'), 'align' => 'center', 'index' => 'template_subject']);
     $this->addColumn('status', ['header' => __('Status'), 'align' => 'center', 'filter' => 'Magento\\Customer\\Block\\Adminhtml\\Edit\\Tab\\Newsletter\\Grid\\Filter\\Status', 'index' => 'queue_status', 'renderer' => 'Magento\\Customer\\Block\\Adminhtml\\Edit\\Tab\\Newsletter\\Grid\\Renderer\\Status']);
     $this->addColumn('action', ['header' => __('Action'), 'align' => 'center', 'filter' => false, 'sortable' => false, 'renderer' => 'Magento\\Customer\\Block\\Adminhtml\\Edit\\Tab\\Newsletter\\Grid\\Renderer\\Action']);
     return parent::_prepareColumns();
 }
Exemplo n.º 20
0
 /**
  * @return \Magento\Backend\Block\Widget\Grid\Extended
  */
 protected function _prepareColumns()
 {
     $this->addColumn('name', ['header' => __('Product'), 'index' => 'name', 'header_css_class' => 'col-product', 'column_css_class' => 'col-product']);
     $this->addColumn('link_title', ['header' => __('Link'), 'index' => 'link_title', 'header_css_class' => 'col-link', 'column_css_class' => 'col-link']);
     $this->addColumn('sku', ['header' => __('SKU'), 'index' => 'sku', 'header_css_class' => 'col-sku', 'column_css_class' => 'col-sku']);
     $this->addColumn('purchases', ['header' => __('Purchases'), 'width' => '215px', 'align' => 'right', 'filter' => false, 'index' => 'purchases', 'type' => 'number', 'renderer' => 'Magento\\Reports\\Block\\Adminhtml\\Product\\Downloads\\Renderer\\Purchases', 'header_css_class' => 'col-purchases', 'column_css_class' => 'col-purchases']);
     $this->addColumn('downloads', ['header' => __('Downloads'), 'width' => '215px', 'align' => 'right', 'filter' => false, 'index' => 'downloads', 'type' => 'number', 'header_css_class' => 'col-qty', 'column_css_class' => 'col-qty']);
     $this->addExportType('*/*/exportDownloadsCsv', __('CSV'));
     $this->addExportType('*/*/exportDownloadsExcel', __('Excel XML'));
     return parent::_prepareColumns();
 }
Exemplo n.º 21
0
 /**
  * @return $this
  * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
  */
 protected function _prepareColumns()
 {
     $this->addColumn('group_id', ['header' => __('ID'), 'type' => 'number', 'index' => 'group_id', 'header_css_class' => 'col-id', 'column_css_class' => 'col-id']);
     $this->addColumn('title', ['header' => __('Title'), 'index' => 'title', 'class' => 'xxx']);
     $this->addColumn('description', ['header' => __('Description'), 'index' => 'description', 'class' => 'xxx']);
     $this->addColumn('edit', ['header' => __('Edit'), 'type' => 'action', 'getter' => 'getId', 'actions' => [['caption' => __('Edit'), 'url' => ['base' => '*/*/edit'], 'field' => 'group_id']], 'filter' => false, 'sortable' => false, 'index' => 'stores', 'header_css_class' => 'col-action', 'column_css_class' => 'col-action']);
     $block = $this->getLayout()->getBlock('grid.bottom.links');
     if ($block) {
         $this->setChild('grid.bottom.links', $block);
     }
     return parent::_prepareColumns();
 }
Exemplo n.º 22
0
 public function addColumn($columnId, $column)
 {
     if (is_array($column)) {
         if (!array_key_exists('header_css_class', $column)) {
             $column['header_css_class'] = 'grid-listing-column-' . $columnId;
         }
         if (!array_key_exists('column_css_class', $column)) {
             $column['column_css_class'] = 'grid-listing-column-' . $columnId;
         }
     }
     return parent::addColumn($columnId, $column);
 }
Exemplo n.º 23
0
 /**
  * @return $this
  * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
  */
 protected function _prepareColumns()
 {
     $this->addColumn('blogpost_id', ['header' => __('ID'), 'type' => 'number', 'index' => 'blogpost_id', 'header_css_class' => 'col-id', 'column_css_class' => 'col-id']);
     $this->addColumn('title', ['header' => __('Title'), 'index' => 'title', 'class' => 'xxx']);
     $this->addColumn('publish_date', ['header' => __('Publish Date'), 'index' => 'publish_date']);
     $this->addColumn('is_active', ['header' => __('Status'), 'index' => 'is_active', 'type' => 'options', 'options' => $this->_status->getOptionArray()]);
     $this->addColumn('edit', ['header' => __('Edit'), 'type' => 'action', 'getter' => 'getId', 'actions' => [['caption' => __('Edit'), 'url' => ['base' => '*/*/edit'], 'field' => 'blogpost_id']], 'filter' => false, 'sortable' => false, 'index' => 'stores', 'header_css_class' => 'col-action', 'column_css_class' => 'col-action']);
     $block = $this->getLayout()->getBlock('grid.bottom.links');
     if ($block) {
         $this->setChild('grid.bottom.links', $block);
     }
     return parent::_prepareColumns();
 }
Exemplo n.º 24
0
 /**
  * @return $this
  */
 protected function _prepareColumns()
 {
     $this->addColumn('testimonial_id', array('header' => __('Testimonial ID'), 'type' => 'number', 'index' => 'testimonial_id', 'header_css_class' => 'col-id', 'column_css_class' => 'col-id'));
     $this->addColumn('firstname', array('header' => __('First Name'), 'index' => 'firstname', 'class' => 'xxx'));
     $this->addColumn('email', array('header' => __('Email'), 'index' => 'email', 'class' => 'xxx'));
     $this->addColumn('status', array('header' => __('Status'), 'index' => 'status', 'type' => 'options', 'options' => $this->_testimonial->getAvailableStatuses()));
     $this->addColumn('edit', array('header' => __('Edit'), 'type' => 'action', 'getter' => 'getId', 'actions' => array(array('caption' => __('Edit'), 'url' => array('base' => '*/*/edit', 'params' => array('store' => $this->getRequest()->getParam('store'))), 'field' => 'id')), 'filter' => false, 'sortable' => false, 'index' => 'stores', 'header_css_class' => 'col-action', 'column_css_class' => 'col-action'));
     $block = $this->getLayout()->getBlock('grid.bottom.links');
     if ($block) {
         $this->setChild('grid.bottom.links', $block);
     }
     return parent::_prepareColumns();
 }
Exemplo n.º 25
0
 protected function _prepareColumns()
 {
     $this->addColumn('slider_id', ['header' => __('Slider ID'), 'type' => 'number', 'index' => 'slider_id', 'header_css_class' => 'col-id', 'column_css_class' => 'col-id']);
     $this->addColumn('title', ['header' => __('Title'), 'index' => 'title', 'class' => 'xxx', 'width' => '50px']);
     $this->addColumn('position', ['header' => __('Position'), 'index' => 'position', 'type' => 'options', 'class' => 'xxx', 'width' => '50px', 'options' => $this->_bannersliderHelper->getAvailablePositions()]);
     $this->addColumn('style_slide', ['header' => __('Slider\'s Mode'), 'index' => 'style_slide', 'class' => 'xxx', 'width' => '50px', 'type' => 'options', 'options' => $this->_bannersliderHelper->getSliderModeAvailable()]);
     $this->addColumn('status', ['header' => __('Status'), 'index' => 'status', 'type' => 'options', 'options' => Status::getAvailableStatuses()]);
     $this->addColumn('edit', ['header' => __('Edit'), 'type' => 'action', 'getter' => 'getId', 'actions' => [['caption' => __('Edit'), 'url' => ['base' => '*/*/edit'], 'field' => 'slider_id']], 'filter' => false, 'sortable' => false, 'index' => 'stores', 'header_css_class' => 'col-action', 'column_css_class' => 'col-action']);
     $this->addExportType('*/*/exportCsv', __('CSV'));
     $this->addExportType('*/*/exportXml', __('XML'));
     $this->addExportType('*/*/exportExcel', __('Excel'));
     return parent::_prepareColumns();
 }
Exemplo n.º 26
0
 /**
  * {@inheritdoc}
  */
 protected function _prepareColumns()
 {
     $this->addColumn('increment_id', ['header' => __('Order'), 'align' => 'center', 'index' => 'increment_id', 'width' => '100px']);
     $this->addColumn('created_at', ['header' => __('Purchased'), 'index' => 'created_at', 'type' => 'datetime']);
     $this->addColumn('billing_name', ['header' => __('Bill-to Name'), 'index' => 'billing_name']);
     $this->addColumn('shipping_name', ['header' => __('Shipped-to Name'), 'index' => 'shipping_name']);
     $this->addColumn('grand_total', ['header' => __('Grand Total'), 'index' => 'grand_total', 'type' => 'currency', 'currency' => 'order_currency_code']);
     if (!$this->_storeManager->isSingleStoreMode()) {
         $this->addColumn('store_id', ['header' => __('Purchase Point'), 'index' => 'store_id', 'type' => 'store', 'store_view' => true]);
     }
     $this->addColumn('action', ['header' => ' ', 'filter' => false, 'sortable' => false, 'width' => '100px', 'renderer' => 'Magento\\Sales\\Block\\Adminhtml\\Reorder\\Renderer\\Action']);
     return parent::_prepareColumns();
 }
Exemplo n.º 27
0
 /**
  * @return \Magento\Backend\Block\Widget\Grid\Extended
  */
 protected function _prepareColumns()
 {
     $this->addColumn('entity_id', ['header' => __('ID'), 'width' => '50px', 'index' => 'entity_id']);
     $this->addColumn('name', ['header' => __('Name'), 'index' => 'name']);
     $this->addColumn('wishlists', ['header' => __('Wish Lists'), 'width' => '50px', 'align' => 'right', 'index' => 'wishlists']);
     $this->addColumn('bought_from_wishlists', ['header' => __('Wish List Purchase'), 'width' => '50px', 'align' => 'right', 'sortable' => false, 'index' => 'bought_from_wishlists']);
     $this->addColumn('w_vs_order', ['header' => __('Wish List vs. Regular Order'), 'width' => '50px', 'align' => 'right', 'sortable' => false, 'index' => 'w_vs_order']);
     $this->addColumn('num_deleted', ['header' => __('Times Deleted'), 'width' => '50px', 'align' => 'right', 'sortable' => false, 'index' => 'num_deleted']);
     $this->addExportType('*/*/exportWishlistCsv', __('CSV'));
     $this->addExportType('*/*/exportWishlistExcel', __('Excel XML'));
     $this->setFilterVisibility(false);
     return parent::_prepareColumns();
 }
Exemplo n.º 28
0
 /**
  * @return \Magento\Backend\Block\Widget\Grid\Extended
  */
 protected function _prepareColumns()
 {
     $this->addColumn('entity_id', ['header' => __('ID'), 'width' => '50px', 'index' => 'entity_id', 'total' => 'Total']);
     $this->addColumn('name', ['header' => __('Name'), 'index' => 'name']);
     $this->addColumn('viewed', ['header' => __('Viewed'), 'width' => '50px', 'align' => 'right', 'index' => 'viewed', 'total' => 'sum']);
     $this->addColumn('added', ['header' => __('Added'), 'width' => '50px', 'align' => 'right', 'index' => 'added', 'total' => 'sum']);
     $this->addColumn('purchased', ['header' => __('Purchased'), 'width' => '50px', 'align' => 'right', 'index' => 'purchased', 'total' => 'sum']);
     $this->addColumn('fulfilled', ['header' => __('Fulfilled'), 'width' => '50px', 'align' => 'right', 'index' => 'fulfilled', 'total' => 'sum']);
     $this->addColumn('revenue', ['header' => __('Revenue'), 'width' => '50px', 'align' => 'right', 'index' => 'revenue', 'total' => 'sum']);
     $this->setCountTotals(true);
     $this->addExportType('*/*/exportProductsCsv', __('CSV'));
     $this->addExportType('*/*/exportProductsExcel', __('Excel XML'));
     return parent::_prepareColumns();
 }
Exemplo n.º 29
0
 protected function _prepareColumns()
 {
     $this->addColumn('in_banner', ['header_css_class' => 'a-center', 'type' => 'checkbox', 'name' => 'in_banner', 'align' => 'center', 'index' => 'banner_id', 'values' => $this->_getSelectedBanners()]);
     $this->addColumn('banner_id', ['header' => __('Banner ID'), 'type' => 'number', 'index' => 'banner_id', 'header_css_class' => 'col-id', 'column_css_class' => 'col-id']);
     $this->addColumn('banner_name', ['header' => __('Name'), 'index' => 'banner_name', 'class' => 'xxx', 'width' => '50px']);
     $this->addColumn('image', ['header' => __('Image'), 'filter' => false, 'class' => 'xxx', 'width' => '50px', 'renderer' => 'Tuna\\BannerSlider\\Block\\Adminhtml\\Banner\\Helper\\Renderer\\Image']);
     $this->addColumn('title', ['header' => __('Slider'), 'index' => 'title', 'class' => 'xxx', 'width' => '50px']);
     $this->addColumn('start_time', ['header' => __('Starting time'), 'type' => 'datetime', 'index' => 'start_time', 'class' => 'xxx', 'width' => '50px', 'timezone' => true]);
     $this->addColumn('end_time', ['header' => __('Ending time'), 'type' => 'datetime', 'index' => 'end_time', 'class' => 'xxx', 'width' => '50px', 'timezone' => true]);
     $this->addColumn('status', ['header' => __('Status'), 'index' => 'status', 'type' => 'options', 'filter_index' => 'main_table.status', 'options' => Status::getAvailableStatuses()]);
     $this->addColumn('edit', ['header' => __('Edit'), 'filter' => false, 'sortable' => false, 'index' => 'stores', 'header_css_class' => 'col-action', 'column_css_class' => 'col-action', 'renderer' => 'Tuna\\BannerSlider\\Block\\Adminhtml\\Slider\\Edit\\Tab\\Helper\\Renderer\\EditBanner']);
     $this->addColumn('order_banner_slider', ['header' => __('Order'), 'name' => 'order_banner_slider', 'index' => 'order_banner_slider', 'class' => 'xxx', 'width' => '50px', 'editable' => true]);
     return parent::_prepareColumns();
 }
Exemplo n.º 30
0
 protected function _prepareColumns()
 {
     $this->addColumn('entity_id', ['header' => __('ID'), 'type' => 'number', 'index' => 'entity_id', 'header_css_class' => 'col-id', 'column_css_class' => 'col-id']);
     $this->addColumn('created_at', ['header' => __('Purchased Date'), 'index' => 'created_at', 'type' => 'datetime']);
     $this->addColumn('billing_name', ['header' => __('Bill-to Name'), 'index' => 'created_at', 'type' => 'text']);
     $this->addColumn('shipping_name', ['header' => __('Ship-to Name'), 'index' => 'created_at', 'type' => 'text']);
     $this->addColumn('base_grand_total', ['header' => __('Grand Total (Base)'), 'index' => 'base_grand_total', 'type' => 'text']);
     $this->addColumn('grand_total', ['header' => __('Grand Total (Purchased)'), 'index' => 'base_grand_total', 'type' => 'text']);
     $this->addColumn('status', ['header' => __('Status'), 'index' => 'base_grand_total', 'type' => 'text']);
     $block = $this->getLayout()->getBlock('grid.bottom.links');
     if ($block) {
         $this->setChild('grid.bottom.links', $block);
     }
     return parent::_prepareColumns();
 }