0

I am using Magento 2.4.4 and I want to show the normal price and special price of the selected simple products of configurable products on the Product listing page. I am using configurable dropdown options so I could not use swatch-renderer.js to customize.

Please suggest any solution to achieve this.

2
  • Are you using amasty extensions or configurable products? Jan 1, 2023 at 8:29
  • No, I am using the Amasty extension. Jan 10, 2023 at 16:44

1 Answer 1

1

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 26)

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

with

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

(special_price will display)

and replace

<span class="old-price sly-old-price no-display">

by

<span class="old-price sly-old-price">

(remove the no-display class)

Let me know if any query

THANKS.

1
  • It works for me thanks @mohit Jan 10, 2023 at 16:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.