cancel
Showing results for 
Search instead for 
Did you mean: 

Strike though on original price now showing for configurable products.

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Strike though on original price now showing for configurable products.

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 ?

 

7 REPLIES 7

Re: Strike though on original price now showing for configurable products.

@mousepad

You should set special price to simple product of configurable product. 

Re: Strike though on original price now showing for configurable products.

Of course that is how it is set. It shows the correct special price, just not the original price with a strike through.

 

Screen Shot 2018-09-05 at 2.10.37 PM.png

Re: Strike though on original price now showing for configurable products.

Hello, 

 

I am having the same issue, did you find a solution to show the original price with the strikeout on configurable products.

Re: Strike though on original price now showing for configurable products.

@mousepad

@sagarnakrani

@My Screen

 

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.

 

Re: Strike though on original price now showing for configurable products.

This worked perfectly on my store. The original price is showing with a strikethrough again like on Magento 1. Thank you!

Re: Strike though on original price now showing for configurable products.

@dannym

 

Your welcome.

 

Let me know if you need more help.

 

Thanks

Re: Strike though on original price now showing for configurable products.

I followed the same procedure. but its not working for me,

any help ?