@@ -17,15 +17,15 @@ $tierPrices = $tierPriceModel->getTierPriceList();
17
17
$ msrpShowOnGesture = $ block ->getPriceType ('msrp_price ' )->isShowPriceOnGesture ();
18
18
$ product = $ block ->getSaleableItem ();
19
19
?>
20
- <?php if (count ($ tierPrices )) : ?>
20
+ <?php if (count ($ tierPrices )): ?>
21
21
<ul class="<?= $ block ->escapeHtmlAttr (($ block ->hasListClass () ? $ block ->getListClass () : 'prices-tier items ' )) ?> ">
22
- <?php foreach ($ tierPrices as $ index => $ price ) : ?>
22
+ <?php foreach ($ tierPrices as $ index => $ price ): ?>
23
23
<li class="item">
24
24
<?php
25
25
$ productId = $ product ->getId ();
26
26
$ isSaleable = $ product ->isSaleable ();
27
27
$ popupId = 'msrp-popup- ' . $ productId . $ block ->getRandomString (20 );
28
- if ($ msrpShowOnGesture && $ price ['price ' ]->getValue () < $ product ->getMsrp ()) :
28
+ if ($ msrpShowOnGesture && $ price ['price ' ]->getValue () < $ product ->getMsrp ()):
29
29
$ addToCartUrl = '' ;
30
30
if ($ isSaleable ) {
31
31
$ addToCartUrl = $ this ->helper (\Magento \Checkout \Helper \Cart::class)
@@ -60,7 +60,7 @@ $product = $block->getSaleableItem();
60
60
id="<?= $ block ->escapeHtmlAttr ($ popupId ) ?> "
61
61
data-tier-price="<?= $ block ->escapeHtml ($ block ->jsonEncode ($ tierPriceData )) ?> ">
62
62
<?= $ block ->escapeHtml (__ ('Click for price ' )) ?> </a>
63
- <?php else :
63
+ <?php else :
64
64
$ priceAmountBlock = $ block ->renderAmount (
65
65
$ price ['price ' ],
66
66
[
@@ -73,7 +73,8 @@ $product = $block->getSaleableItem();
73
73
?>
74
74
<?= /* @noEscape */ ($ block ->getShowDetailedPrice () !== false )
75
75
? __ (
76
- 'Buy %1 for %2 each and <strong class="benefit">save<span class="percent tier-%3"> %4</span>%</strong> ' ,
76
+ 'Buy %1 for %2 each and ' .
77
+ '<strong class="benefit">save<span class="percent tier-%3"> %4</span>%</strong> ' ,
77
78
$ price ['price_qty ' ],
78
79
$ priceAmountBlock ,
79
80
$ index ,
@@ -85,7 +86,7 @@ $product = $block->getSaleableItem();
85
86
</li>
86
87
<?php endforeach ; ?>
87
88
</ul>
88
- <?php if ($ msrpShowOnGesture ) :?>
89
+ <?php if ($ msrpShowOnGesture ):?>
89
90
<script type="text/x-magento-init">
90
91
{
91
92
".product-info-main": {
0 commit comments