How to calculate a product price hourly and days price? |
Hi, you have put a lot of code and most of it has nothing to do with the question. But it's ok.
I would convert any unit of time (hour and day) to timestamp and use the smallest unit (hour) to calculate the price. For example: https://schoolsofweb.com/how-to-calculat...es-in-php/ PHP Code: $date1 = "2021-05-27 01:00:00"; |
Messages In This Thread |
How to calculate a product price hourly and days price? - by Pankaj Kumar - 05-09-2021, 02:37 AM
RE: How to calculate a product price hourly and days price? - by kleber - 05-09-2021, 04:54 AM
|