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-sales
Block
Adminhtml
Order
Create
Totals
DefaultTotals.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Sales\Block\Adminhtml\Order\Create\Totals
;
7
8
use
Magento\Framework\Pricing\PriceCurrencyInterface
;
9
15
class
DefaultTotals
extends
\Magento\Sales\Block\Adminhtml\Order\Create\Totals
16
{
22
protected
$_template
=
'Magento_Sales::order/create/totals/default.phtml'
;
23
27
protected
$priceCurrency
;
28
34
protected
function
_getSession
()
35
{
36
return
$this->_sessionQuote
;
37
}
38
44
public
function
getStore
()
45
{
46
return
$this->
_getSession
()->getStore();
47
}
48
55
public
function
formatPrice
(
$value
)
56
{
57
return
$this->priceCurrency->format(
58
$value
,
59
true
,
60
PriceCurrencyInterface::DEFAULT_PRECISION,
61
$this->
getStore
()
62
);
63
}
64
}
Magento\Sales\Block\Adminhtml\Order\Create\Totals\DefaultTotals\getStore
getStore()
Definition:
DefaultTotals.php:44
Magento\Sales\Block\Adminhtml\Order\Create\Totals\DefaultTotals\_getSession
_getSession()
Definition:
DefaultTotals.php:34
Magento\Sales\Block\Adminhtml\Order\Create\Totals\DefaultTotals
Definition:
DefaultTotals.php:15
Magento\Sales\Block\Adminhtml\Order\Create\Totals\DefaultTotals\$_template
$_template
Definition:
DefaultTotals.php:22
$value
$value
Definition:
gender.phtml:16
Magento\Framework\Pricing\PriceCurrencyInterface
Definition:
PriceCurrencyInterface.php:15
Magento\Sales\Block\Adminhtml\Order\Create\Totals\DefaultTotals\$priceCurrency
$priceCurrency
Definition:
DefaultTotals.php:27
Magento\Sales\Block\Adminhtml\Order\Create\Totals\DefaultTotals\formatPrice
formatPrice($value)
Definition:
DefaultTotals.php:55
Magento\Sales\Block\Adminhtml\Order\Create\AbstractCreate\$_sessionQuote
$_sessionQuote
Definition:
AbstractCreate.php:25
Magento\Sales\Block\Adminhtml\Order\Create\Totals
Definition:
DefaultTotals.php:6