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
Checkout
TotalsProcessor.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Checkout\Block\Checkout
;
7
8
use
Magento\Checkout\Model\Layout\AbstractTotalsProcessor
;
9
10
class
TotalsProcessor
extends
AbstractTotalsProcessor
implements
LayoutProcessorInterface
11
{
15
public
function
process
($jsLayout)
16
{
17
$totals
= $jsLayout[
'components'
][
'checkout'
][
'children'
][
'sidebar'
][
'children'
][
'summary'
]
18
[
'children'
][
'totals'
][
'children'
];
19
$jsLayout[
'components'
][
'checkout'
][
'children'
][
'sidebar'
][
'children'
][
'summary'
]
20
[
'children'
][
'totals'
][
'children'
] = $this->
sortTotals
(
$totals
);
21
return
$jsLayout;
22
}
23
}
Magento\Checkout\Block\Checkout\LayoutProcessorInterface
Definition:
LayoutProcessorInterface.php:18
$totals
$totals
Definition:
totalbar.phtml:10
Magento\Checkout\Block\Checkout\TotalsProcessor
Definition:
TotalsProcessor.php:10
Magento\Checkout\Model\Layout\AbstractTotalsProcessor\sortTotals
sortTotals($totals)
Definition:
AbstractTotalsProcessor.php:42
Magento\Checkout\Block\Checkout\TotalsProcessor\process
process($jsLayout)
Definition:
TotalsProcessor.php:15
Magento\Checkout\Model\Layout\AbstractTotalsProcessor
Definition:
AbstractTotalsProcessor.php:19
Magento\Checkout\Block\Checkout
Definition:
AttributeMerger.php:6