1

I have used Magento 2.2.6 version.I have a one configurable product.I have added special price into the associate product.The Special Price is Display but old price is not display how to show them ?

Please refer following screenshot:

In Frontend:

enter image description here

In admin Special Price:

enter image description here

In admin Product add/edit area:

enter image description here

0

Found solution here : https://github.com/magento/magento2/issues/7624

Copy final_price.phtml from

Vendor/magento/module-configurable-product/view/base/templates/product/price/final_price.phtml

to

Vendor/theme/Magento_ConfigurableProduct/templates/product/price/final_price.phtml

change (around line 22)

<?php if (!$block->isProductList() && $block->hasSpecialPrice()): ?>
with
<?php if ($block->hasSpecialPrice()): ?>

(special_price will display)

and replace
<span class="old-price sly-old-price no-display">
by
<span class="old-price sly-old-price">

(remove the no-display class)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.