Simple products show the original price with a strike though and the special price. This does not happed on configurable products.
I found a solution about duplicating and editing the file final_price.phtml to remove "!$block->isProductList() &&" and placing it in
frontend/THEME/CUSTOMTHEME/Magento_ConfigurableProduct/templates/product/price
It does not work for me
Are there any other suggestions ?
You should set special price to simple product of configurable product.
Of course that is how it is set. It shows the correct special price, just not the original price with a strike through.
Hello,
I am having the same issue, did you find a solution to show the original price with the strikeout on configurable products.
I have solution for your to show special price with strike through.
Open this file from below path.
/var/www/html/vendor/magento/module-configurable-product/view/base/templates/product/price/final_price.phtml
<?php if (!$block->isProductList() && $block->hasSpecialPrice()): ?>
Replace with
<?php if ($block->hasSpecialPrice()): ?>
AND
<span class="old-price sly-old-price no-display">
Replace with
<span class="old-price">
I will suggest you please copy or override this file on your theme and do changes over there. Do not change the core file.
Happy Coding
Hope this helps you.
1 Kudos is this solution work for you.
Accept as a solution if work for you.
This worked perfectly on my store. The original price is showing with a strikethrough again like on Magento 1. Thank you!
I followed the same procedure. but its not working for me,
any help ?