Magento2 how to display only special price of product
-
06-02-2021 - |
Question
How to display only special price of product if it contains else it should not display
Solution
Copy final_price.phtml
from
Vendor/magento/module-catalog/view/base/templates/product/price/final_price.phtml
to
Vendor/theme/module-catalog/view/base/templates/product/price/final_price.phtml
Find this code : <span class="old-price"></span>
This span is used for display old price when special price is available. You can remove it in your custom theme file if you don't want to display.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange