Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-reports
Controller
Adminhtml
Report
Shopcart
ExportProductCsv.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Reports\Controller\Adminhtml\Report\Shopcart
;
8
9
use
Magento\Framework\App\ResponseInterface
;
10
use
Magento\Framework\App\Filesystem\DirectoryList
;
11
12
class
ExportProductCsv
extends
\Magento\Reports\Controller\Adminhtml\Report\Shopcart
13
{
19
public
function
execute
()
20
{
21
$fileName
=
'shopcart_product.csv'
;
22
$content
= $this->_view->getLayout()->createBlock(
23
\
Magento
\Reports\Block\Adminhtml\
Shopcart
\
Product
\Grid::class
24
)->getCsvFile();
25
26
return
$this->_fileFactory->create(
$fileName
,
$content
,
DirectoryList::VAR_DIR
);
27
}
28
}
Magento\Framework\App\Filesystem\DirectoryList\VAR_DIR
const VAR_DIR
Definition:
DirectoryList.php:58
Magento\Reports\Controller\Adminhtml\Report\Shopcart\ExportProductCsv
Definition:
ExportProductCsv.php:12
$fileName
$fileName
Definition:
translate.phtml:15
Magento
Magento\Reports\Controller\Adminhtml\Report\Shopcart\Product
Definition:
Product.php:11
Magento\Framework\App\Filesystem\DirectoryList
Definition:
DirectoryList.php:13
$content
$content
Definition:
downloadable_product_with_files_and_sample_url.php:93
Magento\Framework\App\ResponseInterface
Definition:
ResponseInterface.php:14
Magento\Reports\Controller\Adminhtml\Report\Shopcart
Definition:
Abandoned.php:7
Magento\Reports\Controller\Adminhtml\Report\Shopcart\ExportProductCsv\execute
execute()
Definition:
ExportProductCsv.php:19
Magento\Reports\Controller\Adminhtml\Report\Shopcart
Definition:
Shopcart.php:18