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-bundle
view
base
templates
product
price
tier_prices.phtml
Go to the documentation of this file.
1
<?php
7
// @codingStandardsIgnoreFile
8
9
?>
10
11
<?php
15
$tierPriceModel
=
$block
->getPrice();
16
$tierPrices
=
$tierPriceModel
->getTierPriceList();
17
?>
18
<?php
if
(count(
$tierPrices
)) : ?>
19
<ul
class
=
"<?= /* @escapeNotVerified */ ($block->hasListClass() ? $block->getListClass() : 'prices-tier items') ?>"
>
20
<?php
foreach
(
$tierPrices
as
$index
=>
$price
) : ?>
21
<li
class
=
"item"
>
22
<?php
/* @escapeNotVerified */
echo
__
(
23
'Buy %1 with %2 discount each'
,
24
$price
[
'price_qty'
],
25
'<strong class="benefit">'
. round(
$price
[
'percentage_value'
]) .
'%</strong>'
26
); ?>
27
</li>
28
<?php
endforeach
; ?>
29
</ul>
30
<?php
endif
; ?>
__
__()
Definition:
__.php:13
$price
$price
Definition:
product_alert.php:10
$block
$block
Definition:
block.php:8
endif
endif
Definition:
tier_prices.phtml:30
endforeach
endforeach
Definition:
tier_prices.phtml:28
$tierPrices
$tierPrices
Definition:
tier_prices.phtml:16
$tierPriceModel
$tierPriceModel
Definition:
tier_prices.phtml:15
$index
$index
Definition:
list.phtml:44