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-configurable-product
view
base
templates
product
price
final_price.phtml
Go to the documentation of this file.
1
<?php
7
// @codingStandardsIgnoreFile
8
9
?>
10
11
<?php
15
$priceModel
=
$block
->getPriceType(
'regular_price'
);
16
18
$finalPriceModel
=
$block
->getPriceType(
'final_price'
);
19
$idSuffix
=
$block
->getIdSuffix() ?
$block
->getIdSuffix() :
''
;
20
$schema
= (
$block
->getZone() ==
'item_view'
) ?
true
:
false
;
21
?>
22
<span
class
=
"normal-price"
>
23
<?php
24
$arguments
= [
25
'display_label'
=>
__
(
'As low as'
),
26
'price_id'
=>
$block
->getPriceId(
'product-price-'
.
$idSuffix
),
27
'price_type'
=>
'finalPrice'
,
28
'include_container'
=>
true
,
29
'schema'
=>
$schema
,
30
];
31
/* @noEscape */
echo
$block
->renderAmount(
$finalPriceModel
->getAmount(),
$arguments
);
32
?>
33
</span>
34
35
<?php
if
(!
$block
->isProductList() &&
$block
->hasSpecialPrice()): ?>
36
<span
class
=
"old-price sly-old-price no-display"
>
37
<?php
/* @escapeNotVerified */
echo
$block
->renderAmount(
$priceModel
->getAmount(), [
38
'display_label'
=>
__
(
'Regular Price'
),
39
'price_id'
=>
$block
->getPriceId(
'old-price-'
.
$idSuffix
),
40
'price_type'
=>
'oldPrice'
,
41
'include_container'
=>
true
,
42
'skip_adjustments'
=> true
43
]); ?>
44
</span>
45
<?php
endif
; ?>
46
47
<?php
if
(
$block
->showMinimalPrice()): ?>
48
<?php
if
(
$block
->getUseLinkForAsLowAs()):?>
49
<a href=
"<?= /* @escapeNotVerified */ $block->getSaleableItem()->getProductUrl() ?>"
class
=
"minimal-price-link"
>
50
<?=
/* @escapeNotVerified */
$block
->renderAmountMinimal() ?>
51
</a>
52
<?php
else
:?>
53
<span
class
=
"minimal-price-link"
>
54
<?=
/* @escapeNotVerified */
$block
->renderAmountMinimal() ?>
55
</span>
56
<?php
endif
?>
57
<?php
endif
; ?>
$finalPriceModel
$finalPriceModel
Definition:
final_price.phtml:16
$schema
$schema
Definition:
final_price.phtml:22
__
__()
Definition:
__.php:13
$block
$block
Definition:
block.php:8
endif
endif
Definition:
final_price.phtml:69
$arguments
$arguments
Definition:
final_price.phtml:24
$idSuffix
$idSuffix
Definition:
final_price.phtml:12
$priceModel
$priceModel
Definition:
final_price.phtml:16