File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
view/base/templates/pricing Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ public function __construct(
38
38
}
39
39
40
40
/**
41
+ * Apply the right HTML output to the adjustment
42
+ *
41
43
* @return string
42
44
*/
43
45
protected function apply ()
@@ -181,7 +183,7 @@ public function displayPriceExcludingTax()
181
183
*/
182
184
public function getDataPriceType ()
183
185
{
184
- if ( $ this ->getData ('price_type ' ) !== 'finalPrice ' && $ priceType = $ this ->getData ('price_type ' )) {
186
+ if ( $ this ->getData ('price_type ' ) !== 'finalPrice ' && $ priceType = $ this ->getData ('price_type ' )){
185
187
return 'base ' . ucfirst ($ priceType );
186
188
}
187
189
return 'basePrice ' ;
Original file line number Diff line number Diff line change 8
8
<?php /** @var \Magento\Tax\Pricing\Render\Adjustment $block */ ?>
9
9
<?php /** @var $escaper \Magento\Framework\Escaper */ ?>
10
10
11
- <?php if ($ block ->displayBothPrices ()) : ?>
11
+ <?php if ($ block ->displayBothPrices ()): ?>
12
12
<span id="<?= $ escaper ->escapeHtmlAttr ($ block ->buildIdWithPrefix ('price-excluding-tax- ' )) ?> "
13
13
data-label="<?= $ escaper ->escapeHtmlAttr (__ ('Excl. Tax ' )) ?> "
14
14
data-price-amount="<?= /* @noEscape */ $ block ->getRawAmount () ?> "
You can’t perform that action at this time.
0 commit comments