Returning customers are like godsends for the store owner. Because they already have shown interest in your store products and willing to spend money on your products that’s why its time to convert them by offering some great discount on store product.
In fact, most of the online stores typically get 50% of their revenue from their existing store customers. To make them feel special by offering discount can drastically help a lot by setting up a special price inside the store.

The customer always looks convenience and discount they get on a purchase of the product. But when there is numerous product with the special price may confused customer that how many percentages of discount they get on a purchase of the product? Instead of showing the percentage discount beside product price help to convert them easily and boost store conversion.

To display product discount percentage on product details page in Magento 2 using the following code.
To do the same, first we need to create ‘catalog_product_prices.xml’ at below location using following code.
app\code\Vendor\Extension\view\Base\layout\catalog_product_prices.xml

And create one more file to display price and discount percentage on product detail page.
app\code\Vendor\Extension\view\Base\templates\product\price\final_price.phtml

You are free to modify this code according to your business needs.

Magento 2 Discount Percentage FREE Extension CTA

Lastly, hit that below stars if the code worked for you and don’t forget to comment down below if you are looking for any help regarding this code.
Happy Coding.

[Total: 17   Average: 4.7/5]