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
Block
Onepage
Failure.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Checkout\Block\Onepage
;
7
12
class
Failure
extends
\Magento\Framework\View\Element\Template
13
{
17
protected
$_checkoutSession
;
18
24
public
function
__construct
(
25
\
Magento
\Framework\View\Element\
Template
\
Context
$context,
26
\
Magento
\Checkout\Model\Session $checkoutSession,
27
array
$data
= []
28
) {
29
$this->_checkoutSession = $checkoutSession;
30
parent::__construct($context,
$data
);
31
$this->_isScopePrivate =
true
;
32
}
33
37
public
function
getRealOrderId
()
38
{
39
return
$this->_checkoutSession->getLastRealOrderId();
40
}
41
47
public
function
getErrorMessage
()
48
{
49
$error = $this->_checkoutSession->getErrorMessage();
50
return
$error;
51
}
52
58
public
function
getContinueShoppingUrl
()
59
{
60
return
$this->
getUrl
(
'checkout/cart'
);
61
}
62
}
Magento\Checkout\Block\Onepage
Definition:
Failure.php:6
Magento\Checkout\Block\Onepage\Failure\getContinueShoppingUrl
getContinueShoppingUrl()
Definition:
Failure.php:58
Magento\Checkout\Block\Onepage\Failure\getRealOrderId
getRealOrderId()
Definition:
Failure.php:37
Magento\Checkout\Block\Onepage\Failure
Definition:
Failure.php:12
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\View\Element\AbstractBlock\getUrl
getUrl($route='', $params=[])
Definition:
AbstractBlock.php:773
Magento\Checkout\Block\Onepage\Failure\__construct
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Checkout\Model\Session $checkoutSession, array $data=[])
Definition:
Failure.php:24
Magento\Checkout\Block\Onepage\Failure\getErrorMessage
getErrorMessage()
Definition:
Failure.php:47
Magento
Magento\Framework\View\Element\Template
Definition:
Template.php:32
Magento\Checkout\Block\Onepage\Failure\$_checkoutSession
$_checkoutSession
Definition:
Failure.php:17
Magento\Customer\Model\Context
Definition:
Context.php:8