View Full Version : Shop: Enter amount of Credits and calculate price

07-21-2012, 09:28 AM
Hello ,

So I'm going to have a little shop that will sell virual credits. The user needs to enter how many credits they want and it will calculate the price

$1 = 100 Credits or 1 cent = 1 credit

If possible auto update a value with Ajax or jquery and have the amount passed as a variable for checkout


07-21-2012, 05:18 PM
Okay, and what is your question?
You know how many credits purchased per cent. Multiply it by the number of cents sold and update accordingly.

07-21-2012, 09:31 PM
He's trying to get US to write the code for him. Write your code, post your code, and if any errors occur, then we will help. This is NOT the right board for getting someone to write code for you. Might i suggest the PHP Snippets page or the Projects page to you.