free
web stats

Fill the form & Get Installation Support

Connect With Us





captcha

Connect With Us





captcha

How to display product discount percent on product details page in Magento2?

First we need to create ‘catalog_product_prices.xml’ at below location using the given code.

app\code\Magemonkeys\Discountpercentage\view\base\layout\catalog_product_prices.xml

And create one more file to display the price and discount percentage on the product detail page.

app\code\Magemonkeys\Discountpercentage\view\base\templates\product\price\final_price.phtml

Output :

Was this article helpful?
YesNo
Fill the below form if you have any Magento programming need.




captcha