Automatic Shipping Charges.

home page
std.css

What this example demonstrates is how you can have built-in shipping charges based on the ZIP code of the buyer. This only works for items on a single page, and if you want the general case you need to go to a 3rd party shopping cart.

What happens is that when you select an item, a request for your shipping ZIP is made (if one has not been entered before). The input of the ZIP plugs the PayPal "shipping", and "shipping2" values after calculating the UPS charge for shipping this item. A basic assumption made here is that each item is shipped separately, and the cost of shipping each item is the same.

Right-click and to see what was done on this page.


Item 1 [picture] Blah, blah. $39.00 each, 100 ozs each.

Input Quantity >   cart view


Item 2 [picture] Blah, blah. $30.00 each, 90 ozs each.

Input Quantity >   cart view


Image: XHTML 1.1 certified! Image: CSS2 certified! Image: Multi-user accessibility!

Contact me concerning this article at paypalhelper@aol.com. Mention "shiptest" in your note.

Individual help starting at $25.00 for simple JS solutions.