need help adding shipping to total using a drop down menu
Moderator: General Moderators
-
mikewooten
- Forum Contributor
- Posts: 169
- Joined: Wed Feb 11, 2004 12:13 pm
- Location: Duluth, Georgia
- Contact:
need help adding shipping to total using a drop down menu
i am creating a checkout page and it needs to have the shipping information added to the total.
how do you add the shipping information to the total using a dropdown menu for the shipping information.
does anyone know how to do that? or maybe something similar to what amazon has.
site that i'm working on is:
http://www.wootenmedia.com/wootenmusic8
if you need any code, let me know
thanks
how do you add the shipping information to the total using a dropdown menu for the shipping information.
does anyone know how to do that? or maybe something similar to what amazon has.
site that i'm working on is:
http://www.wootenmedia.com/wootenmusic8
if you need any code, let me know
thanks
-
mikewooten
- Forum Contributor
- Posts: 169
- Joined: Wed Feb 11, 2004 12:13 pm
- Location: Duluth, Georgia
- Contact:
need help adding shipping to total using a drop down menu
does anyone know how to add the shipping information to the total using a dropdown menu
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Code: Select all
var obj = document.formsї'your_form_name'].elementsї'your_dropdown_name'];
var value = obj.optionsїobj.selectedIndex].value-
mikewooten
- Forum Contributor
- Posts: 169
- Joined: Wed Feb 11, 2004 12:13 pm
- Location: Duluth, Georgia
- Contact:
if i had the select submit, how would i get teh update request from the server.?
then if i just added the pricing and shipping information together. would it be something like this?
$c = $total + $shipping;
also would i have to use a database to store any shipping information to redisplay back on the page?
thanks
then if i just added the pricing and shipping information together. would it be something like this?
$c = $total + $shipping;
also would i have to use a database to store any shipping information to redisplay back on the page?
thanks
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
in the past, I've set a hidden form field to tell the server I want to update the shipping choice.. the server processes the new shipping information, and redisplays the page.
it's a good idea to store the pricing information on the server and use that as an authority for knowing the pricing, as someone may try to cheat and tell your script to send in a price that isn't the real one..
it's a good idea to store the pricing information on the server and use that as an authority for knowing the pricing, as someone may try to cheat and tell your script to send in a price that isn't the real one..
-
mikewooten
- Forum Contributor
- Posts: 169
- Joined: Wed Feb 11, 2004 12:13 pm
- Location: Duluth, Georgia
- Contact:
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
the best way to handle it is probably through their individual shipping cost calculators, however they do that. If you can get ahold of that information would be best. Otherwise, you'll need to store the relationship of pricing for each type of shipper and prices from wherever the stuff ships from, plus many other things like VAT, or tarrif taxes and customs charges.. all kinds of nonsense..
-
mikewooten
- Forum Contributor
- Posts: 169
- Joined: Wed Feb 11, 2004 12:13 pm
- Location: Duluth, Georgia
- Contact:
do you know if this is a good website for a shipping calculator?
http://www.usps.com/tools/calculatepost ... atepostage
if not, then where do you suggest that i go to get information about shipping cost calculators?
thanks
http://www.usps.com/tools/calculatepost ... atepostage
if not, then where do you suggest that i go to get information about shipping cost calculators?
thanks
-
mikewooten
- Forum Contributor
- Posts: 169
- Joined: Wed Feb 11, 2004 12:13 pm
- Location: Duluth, Georgia
- Contact:
i've been researching and would i need any or all of these scripts that i have found or is there a much more simple way to do all of this?
these are shipping calculators and mail zone scripts i have found.
http://www.phpbuilder.com/snippet/down ... pet&id=576- ups shipping calculator
http://www.phpbuilder.com/snippet/down ... pet&id=578 - fedex shipping calculator
http://www.phpbuilder.com/snippet/deta ... pet&id=785- Calculate Priority Mail Shipping Cost
http://www.phpbuilder.com/snippet/down ... et&id=1206 - Get Priority Mail Zone from Zip Code
if i do need these scripts, how would i use them with what i have to do, and how would i get all of that to work with the total?
thanks
[/url]
these are shipping calculators and mail zone scripts i have found.
http://www.phpbuilder.com/snippet/down ... pet&id=576- ups shipping calculator
http://www.phpbuilder.com/snippet/down ... pet&id=578 - fedex shipping calculator
http://www.phpbuilder.com/snippet/deta ... pet&id=785- Calculate Priority Mail Shipping Cost
http://www.phpbuilder.com/snippet/down ... et&id=1206 - Get Priority Mail Zone from Zip Code
if i do need these scripts, how would i use them with what i have to do, and how would i get all of that to work with the total?
thanks
[/url]