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
Success.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Checkout\Block
;
7
8
class
Success
extends
\Magento\Framework\View\Element\Template
9
{
13
protected
$_orderFactory
;
14
21
public
function
__construct
(
22
\
Magento
\Framework\View\Element\
Template
\
Context
$context,
23
\
Magento
\Sales\Model\OrderFactory $orderFactory,
24
array
$data
= []
25
) {
26
$this->_orderFactory = $orderFactory;
27
parent::__construct($context,
$data
);
28
}
29
33
public
function
getRealOrderId()
34
{
36
$order
= $this->_orderFactory->create()->load($this->getLastOrderId());
37
return
$order
->getIncrementId();
38
}
39
}
Magento\Checkout\Block\Success\$_orderFactory
$_orderFactory
Definition:
Success.php:13
Magento\Checkout\Block
$order
$order
Definition:
order.php:55
Magento\Checkout\Block\Success
Definition:
Success.php:8
Magento\Framework\View\Element\Template\Context
Definition:
Context.php:23
Magento\Checkout\Block\Success\__construct
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Sales\Model\OrderFactory $orderFactory, array $data=[])
Definition:
Success.php:21
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento
Magento\Framework\View\Element\Template
Definition:
Template.php:32