0

I have upgraded Magento 2.4.1 to 2.4.2 Special price is showing for a simple product but showing for the configurable product in the category view page.

However, on the product details page, I can see the special price of the configurable product.

Simple Product category view page example.

enter image description here

Configurable product category view example (not showing special price) enter image description here

0

Have you tried run php bin/magento indexer:reindex?

0

Yup - Magento enjoys breaking stuff for us. On the product final_price.phtml template they've got an if statement checking if the page is "listing" page (e.g. a category page, a recently viewed widget, etc) and, if so, do NOT show the original price.

In your module, copy the magento configurable product final_price.phtml file (/vendor/magento/module-configurable-product/view/base/templates/product/price/final_price.phtml) and change the following line:

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

to

<?php if ($block->hasSpecialPrice()) : ?>

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.