|
8 | 8 | <script type="text/x-magento-template" id="tier-prices-template">
|
9 | 9 | <ul class="prices-tier items">
|
10 | 10 | <% var inclExclPrice = ' <span class="price-wrapper price-excluding-tax"'
|
11 |
| - + 'data-label="<?= $block->escapeHtml(__('Excl. Tax')) ?>">' |
12 |
| - + '<span class="price"> %1</span>' |
13 |
| - + '</span>' |
| 11 | + + 'data-label="<?= $block->escapeHtml(__('Excl. Tax')) ?>">' |
| 12 | + + '<span class="price"> %1</span>' |
| 13 | + + '</span>' |
14 | 14 | %>
|
15 | 15 |
|
16 | 16 | <% _.each(tierPrices, function(item, key) { %>
|
17 |
| - <% var itemInclExclPrice = item.hasOwnProperty('incl_excl_tax_price') |
18 |
| - ? inclExclPrice.replace('%1', priceUtils.formatPrice(item['incl_excl_tax_price'], currencyFormat)) |
19 |
| - : '' |
20 |
| - %> |
21 |
| - <% var price = item.hasOwnProperty('excl_tax_price') |
22 |
| - ? priceUtils.formatPrice(item['excl_tax_price'], currencyFormat) |
23 |
| - : priceUtils.formatPrice(item.price, currencyFormat) |
24 |
| - %> |
| 17 | + <% var itemInclExclPrice = item.hasOwnProperty('incl_excl_tax_price') |
| 18 | + ? inclExclPrice.replace('%1', priceUtils.formatPrice(item['incl_excl_tax_price'], currencyFormat)) |
| 19 | + : '' |
| 20 | + %> |
| 21 | + <% var price = item.hasOwnProperty('excl_tax_price') |
| 22 | + ? priceUtils.formatPrice(item['excl_tax_price'], currencyFormat) |
| 23 | + : priceUtils.formatPrice(item.price, currencyFormat) |
| 24 | + %> |
25 | 25 |
|
26 |
| - <% var priceStr = '<span class="price-container price-tier_price">' |
27 |
| - + '<span data-price-amount="' + priceUtils.formatPrice(item.price, currencyFormat) + '"' |
28 |
| - + ' data-price-type=""' + ' class="price-wrapper price-including-tax">' |
29 |
| - + '<span class="price">' + price + '</span>' |
30 |
| - + '</span>' + itemInclExclPrice + '</span>'; |
31 |
| - %> |
32 |
| - <li class="item"> |
33 |
| - <%= '<?= $block->escapeHtml(__('Buy %1 for %2 each and', '%1', '%2')) ?>' |
34 |
| - .replace('%1', item.qty) |
35 |
| - .replace('%2', priceStr) |
| 26 | + <% var priceStr = '<span class="price-container price-tier_price">' |
| 27 | + + '<span data-price-amount="' + priceUtils.formatPrice(item.price, currencyFormat) + '"' |
| 28 | + + ' data-price-type=""' + ' class="price-wrapper price-including-tax">' |
| 29 | + + '<span class="price">' + price + '</span>' |
| 30 | + + '</span>' + itemInclExclPrice + '</span>'; |
36 | 31 | %>
|
37 |
| - <strong class="benefit"> |
38 |
| - <?= $block->escapeHtml(__('save')) ?><span |
39 |
| - class="percent tier-<%= key %>"> <%= item.percentage %></span>% |
40 |
| - </strong> |
41 |
| - </li> |
| 32 | + <li class="item"> |
| 33 | + <%= '<?= $block->escapeHtml(__('Buy %1 for %2 each and', '%1', '%2')) ?>' |
| 34 | + .replace('%1', item.qty) |
| 35 | + .replace('%2', priceStr) |
| 36 | + %> |
| 37 | + <strong class="benefit"> |
| 38 | + <?= $block->escapeHtml(__('save')) ?><span |
| 39 | + class="percent tier-<%= key %>"> <%= item.percentage %></span>% |
| 40 | + </strong> |
| 41 | + </li> |
42 | 42 | <% }); %>
|
43 | 43 | </ul>
|
44 | 44 | </script>
|
|
0 commit comments