Web Analytics

Fill the form & Get Installation Support





    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 :

    Fill the below form if you have any Magento programming need.





      Recent Articles

      Author Info

      Author Image

      Magento Certified Developer

      Hire J. Lakum

      Get a Free Quote





        Connect With Us