I’m not that well versed in PHP or JavaScript, however, I understand the basics and simple applications.
I have a website where I’ll be selling just a one book and process the payment through PayPal. I need a simple cart to make a total of the book(s) plus shipping and send this to Paypal. So the buyer will enter a number of books they want and choose the destination country. Then cart calculates the total (price plus shipping) where the shipping has a variable of a country and the # of books ordered. For example: USA will have a different rates for one, two, three, etc. books than the U.K. or Germany would.
I can’t use the PayPal’s cart because my shipping has too many variables that they don’t provide.
I’ll greatly appreciate any help as I got frustrated and discouraged by trying adapt a full scale shopping cards to my needs, without any success.
Here’s the code of PayPal’s cart, if that can be of any help.
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" border="0" name="submit">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="email@goldenwyvern.com">
<input type="hidden" name="item_name" value="Baqca - Book One of the Golden Wyvern">
<input type="hidden" name="amount" value="13.95">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
</form>
Thank you in advance,
Andre