Jump to content

Discount porcentage


moisesbr

Recommended Posts

How to apply a discount porcentage using php ?

original price * (1 - discount as a decimal figure) 

 

e.g 10%

original price * (1 - 0.10)

 

Please, I would like a sample to get price from price_table, show in html, and replace it in  order_table.

 

The discount must not be applye to table:  price_table

I don't know what you're talking about. Try writing a detailed explanation of what you're doing. And post the code you've written so far. And make sure to mention exactly how it doesn't work.
Link to comment
https://forums.phpfreaks.com/topic/280731-discount-porcentage/#findComment-1443056
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.