14 class Grid extends \Magento\Reports\Block\Adminhtml\Grid\Shopcart
35 \
Magento\Backend\Helper\Data $backendHelper,
42 parent::__construct($context, $backendHelper,
$data);
51 $this->
setId(
'gridProducts');
60 $collection = $this->quoteItemCollectionFactory->create();
63 return parent::_prepareCollection();
76 'index' =>
'product_id',
78 'header_css_class' =>
'col-id',
79 'column_css_class' =>
'col-id' 86 'header' =>
__(
'Product'),
89 'header_css_class' =>
'col-product',
90 'column_css_class' =>
'col-product' 99 'header' =>
__(
'Price'),
100 'type' =>
'currency',
101 'currency_code' => $currencyCode,
104 'renderer' => \
Magento\Reports\Block\Adminhtml\
Grid\Column\Renderer\Currency::class,
105 'rate' => $this->
getRate($currencyCode),
106 'header_css_class' =>
'col-price',
107 'column_css_class' =>
'col-price' 114 'header' =>
__(
'Carts'),
118 'header_css_class' =>
'col-carts',
119 'column_css_class' =>
'col-carts' 126 'header' =>
__(
'Orders'),
130 'header_css_class' =>
'col-qty',
131 'column_css_class' =>
'col-qty' 140 return parent::_prepareColumns();
150 return $this->
getUrl(
'catalog/product/edit', [
'id' =>
$row->getProductId()]);
$quoteItemCollectionFactory
getUrl($route='', $params=[])
__construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Quote\Model\QueryResolver $queryResolver, \Magento\Reports\Model\ResourceModel\Quote\Item\CollectionFactory $quoteItemCollectionFactory, array $data=[])