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-checkout
Controller
Onepage
Failure.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Checkout\Controller\Onepage
;
8
9
class
Failure
extends
\Magento\Checkout\Controller\Onepage
10
{
14
public
function
execute
()
15
{
16
$lastQuoteId = $this->
getOnepage
()->getCheckout()->getLastQuoteId();
17
$lastOrderId = $this->
getOnepage
()->getCheckout()->getLastOrderId();
18
19
if
(!$lastQuoteId || !$lastOrderId) {
20
return
$this->resultRedirectFactory->create()->setPath(
'checkout/cart'
);
21
}
22
23
return
$this->resultPageFactory->create();
24
}
25
}
Magento\Checkout\Controller\Onepage\Failure\execute
execute()
Definition:
Failure.php:14
Magento\Checkout\Controller\Onepage
Definition:
Onepage.php:16
Magento\Checkout\Controller\Onepage\Failure
Definition:
Failure.php:9
Magento\Checkout\Controller\Onepage\getOnepage
getOnepage()
Definition:
Onepage.php:259
Magento\Checkout\Controller\Onepage
Definition:
Failure.php:7