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-weee
Pricing
Render
TaxAdjustment.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Weee\Pricing\Render
;
8
9
use
Magento\Framework\Pricing\PriceCurrencyInterface
;
10
use
Magento\Framework\View\Element\Template
;
11
use
Magento\Weee\Model\Tax
;
12
16
class
TaxAdjustment
extends
\Magento\Tax\Pricing\Render\Adjustment
17
{
23
protected
$weeeHelper
;
24
32
public
function
__construct
(
33
Template
\
Context
$context,
34
PriceCurrencyInterface
$priceCurrency
,
35
\
Magento
\
Tax
\Helper\Data
$helper
,
36
\
Magento
\Weee\Helper\Data
$weeeHelper
,
37
array
$data
= []
38
) {
39
$this->weeeHelper =
$weeeHelper
;
40
parent::__construct($context,
$priceCurrency
,
$helper
,
$data
);
41
}
42
48
public
function
getDefaultExclusions
()
49
{
50
$exclusions = parent::getDefaultExclusions();
51
$exclusions[] =
\Magento\Weee\Pricing\TaxAdjustment::ADJUSTMENT_CODE
;
52
53
// Determine if the Weee amount should be excluded from the price
54
if
($this->
typeOfDisplay
([
Tax::DISPLAY_EXCL_DESCR_INCL
,
Tax::DISPLAY_EXCL
])) {
55
$exclusions[] =
\Magento\Weee\Pricing\Adjustment::ADJUSTMENT_CODE
;
56
}
57
58
return
$exclusions;
59
}
60
68
protected
function
typeOfDisplay
($compareTo =
null
,
$store
=
null
)
69
{
70
return
$this->weeeHelper->typeOfDisplay($compareTo, $this->getZone(),
$store
);
71
}
72
}
Magento\Weee\Model\Tax\DISPLAY_EXCL
const DISPLAY_EXCL
Definition:
Tax.php:40
$helper
$helper
Definition:
iframe.phtml:13
Magento\Framework\View\Element\Template
Definition:
Context.php:6
Magento\Weee\Pricing\Render
Definition:
Adjustment.php:7
Magento\Weee\Pricing\Render\TaxAdjustment\getDefaultExclusions
getDefaultExclusions()
Definition:
TaxAdjustment.php:48
Magento\Weee\Pricing\TaxAdjustment\ADJUSTMENT_CODE
const ADJUSTMENT_CODE
Definition:
TaxAdjustment.php:24
Magento\Weee\Pricing\Render\TaxAdjustment
Definition:
TaxAdjustment.php:16
Magento\Framework\View\Element\Template\Context
Definition:
Context.php:23
Magento\Weee\Pricing\Render\TaxAdjustment\__construct
__construct(Template\Context $context, PriceCurrencyInterface $priceCurrency, \Magento\Tax\Helper\Data $helper, \Magento\Weee\Helper\Data $weeeHelper, array $data=[])
Definition:
TaxAdjustment.php:32
Magento\Weee\Pricing\Render\TaxAdjustment\$weeeHelper
$weeeHelper
Definition:
TaxAdjustment.php:23
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\Pricing\PriceCurrencyInterface
Definition:
PriceCurrencyInterface.php:15
Magento\Weee\Model\Tax
Definition:
Tax.php:20
Magento\Tax\Pricing\Render\Adjustment
Definition:
Adjustment.php:17
Magento
Magento\Weee\Model\Tax\DISPLAY_EXCL_DESCR_INCL
const DISPLAY_EXCL_DESCR_INCL
Definition:
Tax.php:35
Magento\Framework\View\Element\Template
Definition:
Template.php:32
$store
$store
Definition:
payment_configuration_rollback.php:33
Magento\Weee\Pricing\Adjustment\ADJUSTMENT_CODE
const ADJUSTMENT_CODE
Definition:
Adjustment.php:23
Magento\Weee\Pricing\Render\TaxAdjustment\typeOfDisplay
typeOfDisplay($compareTo=null, $store=null)
Definition:
TaxAdjustment.php:68
Magento\Framework\Pricing\Render\AbstractAdjustment\$priceCurrency
$priceCurrency
Definition:
AbstractAdjustment.php:24