- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Strike though on original price now showing for configurable products.
You should set special price to simple product of configurable product.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Strike though on original price now showing for 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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Strike though on original price now showing for configurable products.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Strike though on original price now showing for configurable products.
I followed the same procedure. but its not working for me,
any help ?