Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joshine
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
joshine
Commits
5e720f4b
Commit
5e720f4b
authored
Feb 21, 2023
by
lmf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
列表可配置产品增加划线价格
parent
2aaafba2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
0 deletions
+60
-0
app/design/frontend/Joshine/breeze/Magento_ConfigurableProduct/templates/product/price/final_price.phtml
+60
-0
No files found.
app/design/frontend/Joshine/breeze/Magento_ConfigurableProduct/templates/product/price/final_price.phtml
0 → 100644
View file @
5e720f4b
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/** @var \Magento\ConfigurableProduct\Pricing\Render\FinalPriceBox$block */
/** @var \Magento\Framework\Pricing\Price\PriceInterface $priceModel */
$priceModel
=
$block
->
getPriceType
(
'regular_price'
);
/** @var \Magento\Framework\Pricing\Price\PriceInterface $finalPriceModel */
$finalPriceModel
=
$block
->
getPriceType
(
'final_price'
);
$idSuffix
=
$block
->
getIdSuffix
()
?
$block
->
getIdSuffix
()
:
''
;
$schema
=
(
$block
->
getZone
()
==
'item_view'
)
?
true
:
false
;
?>
<span
class=
"normal-price"
>
<?=
/* @noEscape */
$block
->
renderAmount
(
$finalPriceModel
->
getAmount
(),
[
'display_label'
=>
__
(
''
),
'price_id'
=>
$block
->
getPriceId
(
'product-price-'
.
$idSuffix
),
'price_type'
=>
'finalPrice'
,
'include_container'
=>
true
,
'schema'
=>
$schema
,
]);
?>
</span>
<?php
if
(
$block
->
isProductList
()
&&
$block
->
hasSpecialPrice
())
:
?>
<span
class=
"old-price sly-old-price"
>
<?=
/* @noEscape */
$block
->
renderAmount
(
$priceModel
->
getAmount
(),
[
'display_label'
=>
__
(
''
),
'price_id'
=>
$block
->
getPriceId
(
'old-price-'
.
$idSuffix
),
'price_type'
=>
'oldPrice'
,
'include_container'
=>
true
,
'skip_adjustments'
=>
true
]);
?>
</span>
<?php
endif
;
?>
<?php
if
(
!
$block
->
isProductList
()
&&
$block
->
hasSpecialPrice
())
:
?>
<span
class=
"old-price sly-old-price no-display"
>
<?=
/* @noEscape */
$block
->
renderAmount
(
$priceModel
->
getAmount
(),
[
'display_label'
=>
__
(
'Regular Price'
),
'price_id'
=>
$block
->
getPriceId
(
'old-price-'
.
$idSuffix
),
'price_type'
=>
'oldPrice'
,
'include_container'
=>
true
,
'skip_adjustments'
=>
true
]);
?>
</span>
<?php
endif
;
?>
<?php
if
(
$block
->
showMinimalPrice
())
:
?>
<?php
if
(
$block
->
getUseLinkForAsLowAs
())
:?>
<
a
href
=
"<?=
$block->escapeUrl
(
$block->getSaleableItem
()->getProductUrl()) ?>"
class
="
minimal
-
price
-
link
">
<?= /* @noEscape */
$block->renderAmountMinimal
() ?>
</a>
<?php else :?>
<span class="
minimal
-
price
-
link
">
<?= /* @noEscape */
$block->renderAmountMinimal
() ?>
</span>
<?php endif?>
<?php endif; ?>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment