cancel
Showing results for 
Search instead for 
Did you mean: 

Configurable Price - Special price

SOLVED

Configurable Price - Special price

Hi Everyone, 

 

I've just upgraded to CE 2.2.1.

 

I'm having a problem for configurable products with a special price, the old price no longer show on the categories catalogue. before it showed up but crossed out. 

 

Has this been depreciated in 2.2.1? if not what can i do to fix it. 

 

Many thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Configurable Price - Special price

Found the answer if anyone else needs it

 

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()): ?>

View solution in original post

3 REPLIES 3

Re: Configurable Price - Special price

Found the answer if anyone else needs it

 

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()): ?>

Re: Configurable Price - Special price

Hi,
I have a problem with visualization of Promo Price in Configurable products. The old price is struck through and the new price is visible, but it is not shown as a promo price.
Screenshot_9.jpg
My simple product is OK and I want the Configurable product to look the same.
Screenshot_10.jpg

Re: Configurable Price - Special price

This will degrade performance as hasSpecialPrice iterates on every product from the configuration. The first condition !$block->isProductList prevents executing hasSpecialPrice function.