Jump to content

Percentages??


stublackett

Recommended Posts

Hi,

 

I'm not sure how to work this, I think its best as a function but any suggestions or directions to where I can get help for this would be much appreciated

 

What I'm trying to do is calculate a new total price when a discount code is entered

 

So for instance : Item total is £100

 

An item code is entered (Its always going to be 10% Discount) so the total with the new discount will be £90 (£10 Discount)

 

How can I use PHP To calculate this?

 

Any help appreciated  :) :)

Link to comment
https://forums.phpfreaks.com/topic/109743-percentages/
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.