File tree Expand file tree Collapse file tree 15 files changed +108
-38
lines changed
Newsletter/view/frontend/templates
Reports/Controller/Adminhtml/Report
Sales/view/frontend/templates/guest
design/adminhtml/Magento/backend/web/css Expand file tree Collapse file tree 15 files changed +108
-38
lines changed Original file line number Diff line number Diff line change 30
30
</div>
31
31
</div>
32
32
<div class="actions">
33
- <button class="action subscribe primary sr-only "
33
+ <button class="action subscribe primary"
34
34
title="<?= $ block ->escapeHtmlAttr (__ ('Subscribe ' )) ?> "
35
35
type="submit"
36
36
aria-label="Subscribe">
Original file line number Diff line number Diff line change 9
9
*
10
10
* @author Magento Core Team <core@magentocommerce.com>
11
11
*/
12
+ declare (strict_types=1 );
13
+
12
14
namespace Magento \Reports \Controller \Adminhtml \Report ;
13
15
14
16
/**
17
+ * Class \Magento\Reports\Controller\Adminhtml\Report\Shopcart
18
+ *
19
+ * phpcs:disable Magento2.Classes.AbstractApi
15
20
* @api
16
21
* @since 100.0.2
17
22
*/
18
23
abstract class Shopcart extends \Magento \Backend \App \Action
19
24
{
25
+ /**
26
+ * Authorization of a shop cart report
27
+ */
28
+ const ADMIN_RESOURCE = 'Magento_Reports::shopcart ' ;
20
29
/**
21
30
* @var \Magento\Framework\App\Response\Http\FileFactory
22
31
*/
@@ -46,27 +55,4 @@ public function _initAction()
46
55
$ this ->_addBreadcrumb (__ ('Shopping Cart ' ), __ ('Shopping Cart ' ));
47
56
return $ this ;
48
57
}
49
-
50
- /**
51
- * Determine if action is allowed for reports module
52
- *
53
- * @return bool
54
- */
55
- protected function _isAllowed ()
56
- {
57
- switch ($ this ->getRequest ()->getActionName ()) {
58
- case 'customer ' :
59
- return $ this ->_authorization ->isAllowed (null );
60
- break ;
61
- case 'product ' :
62
- return $ this ->_authorization ->isAllowed ('Magento_Reports::product ' );
63
- break ;
64
- case 'abandoned ' :
65
- return $ this ->_authorization ->isAllowed ('Magento_Reports::abandoned ' );
66
- break ;
67
- default :
68
- return $ this ->_authorization ->isAllowed ('Magento_Reports::shopcart ' );
69
- break ;
70
- }
71
- }
72
58
}
Original file line number Diff line number Diff line change 4
4
* Copyright © Magento, Inc. All rights reserved.
5
5
* See COPYING.txt for license details.
6
6
*/
7
+ declare (strict_types=1 );
8
+
7
9
namespace Magento \Reports \Controller \Adminhtml \Report \Shopcart ;
8
10
9
11
use Magento \Framework \App \Action \HttpGetActionInterface as HttpGetActionInterface ;
10
12
13
+ /**
14
+ * Class \Magento\Reports\Controller\Adminhtml\Report\Shopcart\Abandoned
15
+ */
11
16
class Abandoned extends \Magento \Reports \Controller \Adminhtml \Report \Shopcart implements HttpGetActionInterface
12
17
{
18
+ /**
19
+ * Authorization of an abandoned report
20
+ */
21
+ const ADMIN_RESOURCE = 'Magento_Reports::abandoned ' ;
22
+
13
23
/**
14
24
* Abandoned carts action
15
25
*
Original file line number Diff line number Diff line change 4
4
* Copyright © Magento, Inc. All rights reserved.
5
5
* See COPYING.txt for license details.
6
6
*/
7
+ declare (strict_types=1 );
8
+
7
9
namespace Magento \Reports \Controller \Adminhtml \Report \Shopcart ;
8
10
9
- class Customer extends \Magento \Reports \Controller \Adminhtml \Report \Shopcart
11
+ use Magento \Framework \App \Action \HttpGetActionInterface as HttpGetActionInterface ;
12
+
13
+ /**
14
+ * Class \Magento\Reports\Controller\Adminhtml\Report\Shopcart\Customer
15
+ */
16
+ class Customer extends \Magento \Reports \Controller \Adminhtml \Report \Shopcart implements HttpGetActionInterface
10
17
{
11
18
/**
12
19
* Customer shopping carts action
Original file line number Diff line number Diff line change 4
4
* Copyright © Magento, Inc. All rights reserved.
5
5
* See COPYING.txt for license details.
6
6
*/
7
+ declare (strict_types=1 );
8
+
7
9
namespace Magento \Reports \Controller \Adminhtml \Report \Shopcart ;
8
10
9
11
use Magento \Framework \App \ResponseInterface ;
10
12
use Magento \Framework \App \Filesystem \DirectoryList ;
13
+ use Magento \Framework \App \Action \HttpGetActionInterface as HttpGetActionInterface ;
14
+ use Magento \Reports \Controller \Adminhtml \Report \Shopcart \Abandoned as ShopCartAbandoned ;
11
15
12
- class ExportAbandonedCsv extends \Magento \Reports \Controller \Adminhtml \Report \Shopcart
16
+ /**
17
+ * Class \Magento\Reports\Controller\Adminhtml\Report\Shopcart\ExportAbandonedCsv
18
+ */
19
+ class ExportAbandonedCsv extends ShopCartAbandoned implements HttpGetActionInterface
13
20
{
14
21
/**
15
22
* Export abandoned carts report grid to CSV format
Original file line number Diff line number Diff line change 4
4
* Copyright © Magento, Inc. All rights reserved.
5
5
* See COPYING.txt for license details.
6
6
*/
7
+ declare (strict_types=1 );
8
+
7
9
namespace Magento \Reports \Controller \Adminhtml \Report \Shopcart ;
8
10
9
11
use Magento \Framework \App \ResponseInterface ;
10
12
use Magento \Framework \App \Filesystem \DirectoryList ;
13
+ use Magento \Framework \App \Action \HttpGetActionInterface as HttpGetActionInterface ;
14
+ use Magento \Reports \Controller \Adminhtml \Report \Shopcart \Abandoned as ShopCartAbandoned ;
11
15
12
- class ExportAbandonedExcel extends \Magento \Reports \Controller \Adminhtml \Report \Shopcart
16
+ /**
17
+ * Class \Magento\Reports\Controller\Adminhtml\Report\Shopcart\ExportAbandonedExcel
18
+ */
19
+ class ExportAbandonedExcel extends ShopCartAbandoned implements HttpGetActionInterface
13
20
{
14
21
/**
15
22
* Export abandoned carts report to Excel XML format
Original file line number Diff line number Diff line change 4
4
* Copyright © Magento, Inc. All rights reserved.
5
5
* See COPYING.txt for license details.
6
6
*/
7
+ declare (strict_types=1 );
8
+
7
9
namespace Magento \Reports \Controller \Adminhtml \Report \Shopcart ;
8
10
9
11
use Magento \Framework \App \ResponseInterface ;
12
+ use Magento \Framework \App \Action \HttpGetActionInterface as HttpGetActionInterface ;
13
+ use Magento \Reports \Controller \Adminhtml \Report \Shopcart \Customer as ShopCartCustomer ;
10
14
11
- class ExportCustomerCsv extends \Magento \Reports \Controller \Adminhtml \Report \Shopcart
15
+ /**
16
+ * Class \Magento\Reports\Controller\Adminhtml\Report\Shopcart\ExportCustomerCsv
17
+ */
18
+ class ExportCustomerCsv extends ShopCartCustomer implements HttpGetActionInterface
12
19
{
13
20
/**
14
21
* Export shopcart customer report to CSV format
Original file line number Diff line number Diff line change 4
4
* Copyright © Magento, Inc. All rights reserved.
5
5
* See COPYING.txt for license details.
6
6
*/
7
+ declare (strict_types=1 );
8
+
7
9
namespace Magento \Reports \Controller \Adminhtml \Report \Shopcart ;
8
10
9
11
use Magento \Framework \App \ResponseInterface ;
12
+ use Magento \Framework \App \Action \HttpGetActionInterface as HttpGetActionInterface ;
13
+ use Magento \Reports \Controller \Adminhtml \Report \Shopcart \Customer as ShopCartCustomer ;
10
14
11
- class ExportCustomerExcel extends \Magento \Reports \Controller \Adminhtml \Report \Shopcart
15
+ /**
16
+ * Class \Magento\Reports\Controller\Adminhtml\Report\Shopcart\ExportCustomerExcel
17
+ */
18
+ class ExportCustomerExcel extends ShopCartCustomer implements HttpGetActionInterface
12
19
{
13
20
/**
14
21
* Export shopcart customer report to Excel XML format
Original file line number Diff line number Diff line change 4
4
* Copyright © Magento, Inc. All rights reserved.
5
5
* See COPYING.txt for license details.
6
6
*/
7
+ declare (strict_types=1 );
8
+
7
9
namespace Magento \Reports \Controller \Adminhtml \Report \Shopcart ;
8
10
9
11
use Magento \Framework \App \ResponseInterface ;
10
12
use Magento \Framework \App \Filesystem \DirectoryList ;
13
+ use Magento \Framework \App \Action \HttpGetActionInterface as HttpGetActionInterface ;
14
+ use Magento \Reports \Controller \Adminhtml \Report \Shopcart \Product as ShopCartProduct ;
11
15
12
- class ExportProductCsv extends \Magento \Reports \Controller \Adminhtml \Report \Shopcart
16
+ /**
17
+ * Class \Magento\Reports\Controller\Adminhtml\Report\Shopcart\ExportProductCsv
18
+ */
19
+ class ExportProductCsv extends ShopCartProduct implements HttpGetActionInterface
13
20
{
14
21
/**
15
22
* Export products report grid to CSV format
Original file line number Diff line number Diff line change 4
4
* Copyright © Magento, Inc. All rights reserved.
5
5
* See COPYING.txt for license details.
6
6
*/
7
+ declare (strict_types=1 );
8
+
7
9
namespace Magento \Reports \Controller \Adminhtml \Report \Shopcart ;
8
10
9
11
use Magento \Framework \App \ResponseInterface ;
10
12
use Magento \Framework \App \Filesystem \DirectoryList ;
13
+ use Magento \Framework \App \Action \HttpGetActionInterface as HttpGetActionInterface ;
14
+ use Magento \Reports \Controller \Adminhtml \Report \Shopcart \Product as ShopCartProduct ;
11
15
12
- class ExportProductExcel extends \Magento \Reports \Controller \Adminhtml \Report \Shopcart
16
+ /**
17
+ * Class \Magento\Reports\Controller\Adminhtml\Report\Shopcart\ExportProductExcel
18
+ */
19
+ class ExportProductExcel extends ShopCartProduct implements HttpGetActionInterface
13
20
{
14
21
/**
15
22
* Export products report to Excel XML format
You can’t perform that action at this time.
0 commit comments