Skip to content

Commit

Permalink
Merge pull request #4350 from magento-arcticfoxes/2.3-develop-pr
Browse files Browse the repository at this point in the history
[arcticfoxes] Bug fixes
  • Loading branch information
Joan He authored Jun 15, 2019
2 parents 977753b + bae699d commit 6e534ad
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
</td>
<td class="col discount" data-th="<?= $block->escapeHtml(__('Discount Amount')) ?>">
<?php if ($block->canShowPriceInfo($_item)) : ?>
<?= $block->escapeHtml($block->getOrder()->formatPrice(-$_item->getDiscountAmount())) ?>
<?= $block->escapeHtml($block->getOrder()->formatPrice(-$_item->getDiscountAmount()), ['span']) ?>
<?php else : ?>
&nbsp;
<?php endif; ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
data-toggle="trigger"
href="#<?= $block->escapeUrl($alias) ?>"
id="tab-label-<?= $block->escapeHtmlAttr($alias) ?>-title">
<?= $block->escapeHtml($label) ?>
<?= /* @noEscape */ $label ?>
</a>
</div>
<div class="data item content"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
<span class="price-label"><?= $block->escapeHtml(__('Price')) ?></span>
<span class="price-wrapper">
<?= $block->escapeHtml(
$this->helper(Magento\Checkout\Helper\Data::class)->formatPrice($_item->getCalculationPrice())
$this->helper(Magento\Checkout\Helper\Data::class)->formatPrice($_item->getCalculationPrice()),
['span']
) ?>
</span>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ $_item = $block->getItem();
<span class="price-excluding-tax" data-label="<?= $block->escapeHtml(__('Excl. Tax')) ?>">
<span class="cart-price">
<?= $block->escapeHtml(
$this->helper(Magento\Checkout\Helper\Data::class)->formatPrice($_item->getRowTotal())
$this->helper(Magento\Checkout\Helper\Data::class)->formatPrice($_item->getRowTotal()),
['span']
) ?>
</span>
</span>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ $_item = $block->getItem();
<span class="price-including-tax" data-label="<?= $block->escapeHtml(__('Excl. Tax')) ?>">
<span class="cart-price">
<?= $block->escapeHtml(
$this->helper(Magento\Checkout\Helper\Data::class)->formatPrice($_item->getCalculationPrice())
$this->helper(Magento\Checkout\Helper\Data::class)->formatPrice($_item->getCalculationPrice()),
['span']
) ?>
</span>
</span>
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@
$_item = $block->getItem();
?>
<span class="cart-price">
<?= $block->escapeHtml($this->helper(Magento\Checkout\Helper\Data::class)->formatPrice($_item->getRowTotal())) ?>
<?= $block->escapeHtml(
$this->helper(Magento\Checkout\Helper\Data::class)->formatPrice($_item->getRowTotal()),
['span']
) ?>
</span>
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ $_item = $block->getItem();
?>
<?php $_incl = $this->helper(Magento\Checkout\Helper\Data::class)->getSubtotalInclTax($_item); ?>
<span class="cart-price">
<?= $block->escapeHtml($this->helper(Magento\Checkout\Helper\Data::class)->formatPrice($_incl)) ?>
<?= $block->escapeHtml(
$this->helper(Magento\Checkout\Helper\Data::class)->formatPrice($_incl),
['span']
) ?>
</span>
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ $_item = $block->getItem();
?>
<span class="cart-price">
<?= $block->escapeHtml(
$this->helper(Magento\Checkout\Helper\Data::class)->formatPrice($_item->getCalculationPrice())
$this->helper(Magento\Checkout\Helper\Data::class)->formatPrice($_item->getCalculationPrice()),
['span']
) ?>
</span>
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ $_item = $block->getItem();
?>
<?php $_incl = $this->helper(Magento\Checkout\Helper\Data::class)->getPriceInclTax($_item); ?>
<span class="cart-price">
<?= $block->escapeHtml($this->helper(Magento\Checkout\Helper\Data::class)->formatPrice($_incl)) ?>
<?= $block->escapeHtml(
$this->helper(Magento\Checkout\Helper\Data::class)->formatPrice($_incl),
['span']
) ?>
</span>
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
<?php endif; ?>
<span>
<?= $block->escapeHtml(
$this->helper(Magento\Checkout\Helper\Data::class)->formatPrice($block->getTotal()->getValue())
$this->helper(Magento\Checkout\Helper\Data::class)->formatPrice($block->getTotal()->getValue()),
['span']
) ?>
</span>
<?php if ($block->getRenderingArea() == $block->getTotal()->getArea()) :?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $groupBehavior = $block->getGroupBehaviour() ? $block->getGroupBehaviour() : '{"
data-role="collapsible">
<a class="<?= $block->escapeHtmlAttr($groupCss) ?>-item-switch"
data-toggle="switch" href="#<?= $block->escapeHtmlAttr($alias) ?>">
<?= $block->escapeHtml($label) ?>
<?= /* @noEscape */ $label ?>
</a>
</div>
<div class="section-item-content <?= $block->escapeHtmlAttr($groupCss) ?>-item-content"
Expand Down

0 comments on commit 6e534ad

Please sign in to comment.