numero = 25674
interpreted = N
texte = No problemo. First of all, you'll need a field in your db for weight and have the totalweight calculated by the webcat, say in the hidden inputs of shoppingcart.taf. somethinglike Then, plug [totalweight] or whatever variable name you use into the equation sent to UPS(in the example, it's called [shiptoweight]).Then, for the choices of UPS shipping, the different variable names may be snagged fromhttp://www.ups.com/using/services/rave/rate.html - just look at the source code. Forinternational, you can copy their source code for a pull down menu that will plug in theappropriate country codes. For residential vs. commercial, it's &49_residential=YESor NO in the case of commercial.Tennis de Jong wrote:> I have downloaded this form but it does not seem to include International> Shipping and does not give a choice of Residential or Commercial or> Ground and Air I also need to have the weight totalled from my db and> can't find a place to input the results.>> Tennis>>> >[showif [action]=cost] [!]Contact UPS and get their response[/!]> >[text]response=[middle> >startafter=UPSOnLine&endbefore=][tcpconnect> >host=www.ups.com&port=80][tcpsend]GET> >/using/services/rave/qcostcgi.cgi?accept_UPS_license_agreement=yes&10_action=3&> >14_origCountry=US&15_origPostal=62704&22_destCountry=US&19_destPostal=[shiptozip> >]&49_residential=YES&47_rate_chart=Customer+Counter&48_container=00&13_product=G> >NDCOM&23_weight=[shiptoweight]&weight_std=lbs.> >> >HTTP/1.0> >[UnURL]%0D%0A%0D%0A[/UnURL][/tcpsend][/tcpconnect][/middle][/text] [!]Get> >the response code from the result[/!] [text]response_code=[getchars> >start=1&end=1][response][/getchars][/text]> >[showif [response_code]=3] [!]If the package was priced, parse the results for> >cost[/!] [!]UPS returns a percent delimited string where the 10th item in the> >list is the total cost[/!] [!]We put the index of each percent in a text> >var named> >1,2,3...[/!] [math show=f]count=0[/math] [loop> >start=1&end=[countchars][response][/countchars]]> >[showif [getchars start=[index]&end=[index]][response][/getchars]=%][math> >show=f]count=[count]+1[/math][text][count]=[index][/text][/showif]> >[/loop] [!]Get the charged based on the character starting after the 10th> >% and> >ending before the 11th percent[/!] [text]total_charge=[getchars> >start=[math][10]+1[/math]&end=[math][11]-1[/math]][response][/getchars][/text]> >[!]display the results or use it in a formula etc.[/!]> >> >[/showif]> >> >[showif [response_code]!3]> >[!]Do something here is there was a problem[/!]> >Unable to price package.> >[/showif]> >[/showif]> >> > > >Please enter a destination zip code and weight to price a package going> >via UPS Ground.> >> >> >total charge = $[total_charge] > >> >