Jump to content

How to show the discount price in percent?


layamazon

Recommended Posts

5 hours ago, Toma Oda said:

Hello,

I know that, but the client has already created in 500 products. I need to convert that price in the code into a percentage.

Assuming that all those prices are different you have two options:

 - edit the template to do some math there

 - write a little script that adapts the ps_specific_price table

Link to comment
Share on other sites

47 minutes ago, musicmaster said:

Assuming that all those prices are different you have two options:

 - edit the template to do some math there

 - write a little script that adapts the ps_specific_price table

I tried the first suggestion but I didn't succeed. Don't count exactly.

 

Do you have any code suggestions?

 

Edited by Toma Oda (see edit history)
Link to comment
Share on other sites

What is your programming knowledge of Prestashop?
What is your programming knowledge with PHP?
Realize that without knowledge, the thread will grow another 40 posts.
Hire a programmer, pay an hour of work and be done right away.
I can only advise you that the tpl template uses a function to convert a mathematical result to a currency value by entering {Tools :: displayPrice (mathematical calculation)}

Link to comment
Share on other sites

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...