I am developing a module where I need to set discounted price for a product if applicable. Admin will set a discount percent from backedn for a product and based on that the product price will be calculated.
Product Price = 299 Discount Percent = 20% Discounted Price = 239.20
So the price for that product will be
239.20. I have displayed the discounted price successfully on listing page and the file changes is
But now I also need to change the price on product detail page. The file being used to display the price is
I do not want to change the
.phtml file as it has number of conditions for price display.
What is the best method to set the discounted price on product detail page ?
I hope my question is clear.