I promised to help a friend of mine to build a simple shopping cart to his web-page. The current page can be found from www.thepole.fi/order.html (yes, I'm 100% aware of the low level in the quality of the implementation).
Now I have 2 problems:
1) How do I get the shipping counted in to the total price? If the shipping destination is outside Finland there is either 6€ or 12€ added fee per book. The user can select the destination using radio buttons.
2) Currently total amount is displayed in the textfield with name "Total". How do I get the value multiplied with 100, and displayed in the textfield named "Amount"? The reason for this is that when the form is submitted to the credit card company, the amount of money should be in hidden "Amount"-textfield, and the money unit should be cents (1 euro in the Total-field should be 100 cents in the-Amount field)
And the total is calculated with this
<input type=TEXT name=Total onFocus="this.form.elements.focus()">
I didn't find any forum rules that would forbid me from offering a reward from helping (maybe common courtesy - but I really need this done so please forgive me), so I'm willing to donate 20€ for the person solving my problem.