Re: UPS Shipping

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 25674
interpreted = N
texte = No problemo. First of all, you'll need a field in your db for weight and have the total weight calculated by the webcat, say in the hidden inputs of shoppingcart.taf. something like 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 from http://www.ups.com/using/services/rave/rate.html - just look at the source code. For international, you can copy their source code for a pull down menu that will plug in the appropriate country codes. For residential vs. commercial, it's &49_residential=YES or 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. > >
> >

> > > > Destination Zip Code: > > > >

> > > > Package Weight: > > > >
> > > >

> >
> >
> >total charge = $[total_charge]
> > > > > > > > > > > >Tennis de Jong wrote: > > > >> I am in the final stages of setting up an online store. The last step is to > >> setup UPS shipping charges based on Zip code and country. I have downloaded > >> the information from the UPS site but have no idea how to integrate it into > >> WebCatalog. > >> > >> Is there anyone that would like to share thier .db and .tpl that is already > >> setup? I would be willing to purchase a complete setup solution. > >> > >> Tennis > >> > >> Visual Marketing Sources > >> http://www.visualmarketing.net > >> > >> > > > > > >------------------------------------------------------------- > >Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. > >To end your Mail problems go to . > > > >This message is sent to you because you are subscribed to > > the mailing list . > >To unsubscribe, E-mail to: > >To switch to the DIGEST mode, E-mail to > > > > Visual Marketing Sources > http://www.visualmarketing.net > > ------------------------------------------------------------- > Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. > To end your Mail problems go to . > > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Associated Messages, from the most recent to the oldest:

    
  1. Re: Help with UPS Shipping ( Donovan Brooke 2006)
  2. Help with UPS Shipping ( Bob Atchison 2006)
  3. No UPS shipping Cost ( Eric 2003)
  4. Re: UPS Shipping Primer (Clint Davis 2003)
  5. UPS Shipping Primer (Anthony Clark 2003)
  6. Re: UPS Shipping Calculations (adam@inos.com (O'Connor, Adam) 2001)
  7. Re: UPS Shipping Calculations (Clayton Randall 2001)
  8. UPS Shipping Calculations (Adam O'Connor 2001)
  9. Re: UPS Shipping Calc - 2 items (Nicolas Verhaeghe 2000)
  10. UPS Shipping Calc - 2 items (Timothy W. Killian 2000)
  11. Was Re: UPS Shipping -- Purolator? (Christopher Mackay 1999)
  12. Re: UPS Shipping (Frank Wolfe 1999)
  13. UPS Shipping (Tennis de Jong 1999)
  14. Re: UPS Shipping (J. Danz 1999)
  15. Re: UPS Shipping (Tennis de Jong 1999)
  16. Re: UPS Shipping (J. Danz 1999)
  17. UPS Shipping (Tennis de Jong 1999)
  18. Re: UPS Shipping Docs (Where To Go) (John Hill 1999)
  19. Re: UPS Shipping Docs (Where To Go) (Aaron Lynch 1999)
  20. Re: UPS Shipping Docs (Where To Go) (Marty Schmid 1999)
  21. UPS Shipping Docs (Where To Go) (John Hill 1999)
  22. Re: UPS Shipping Formula in WebCat (ot) (Aaron Lynch 1999)
  23. UPS Shipping Formula in WebCat (ot) (J. Danz 1999)
  24. ups shipping based on weight (J. Danz 1999)
  25. Re: Calculating UPS Shipping (John Hill 1999)
  26. Calculating UPS Shipping (J. Danz 1999)
No problemo. First of all, you'll need a field in your db for weight and have the total weight calculated by the webcat, say in the hidden inputs of shoppingcart.taf. something like [math][lineitems][shiptoweight]*[quantity][/lineitems]+1[/math]>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 from http://www.ups.com/using/services/rave/rate.html - just look at the source code. For international, you can copy their source code for a pull down menu that will plug in the appropriate country codes. For residential vs. commercial, it's &49_residential=YES or 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. > >
> >

> > > > Destination Zip Code: > > > >

> > > > Package Weight: > > > >
> > > >

> >
> >
> >total charge = $[total_charge]
> > > > > > > > > > > >Tennis de Jong wrote: > > > >> I am in the final stages of setting up an online store. The last step is to > >> setup UPS shipping charges based on Zip code and country. I have downloaded > >> the information from the UPS site but have no idea how to integrate it into > >> WebCatalog. > >> > >> Is there anyone that would like to share thier .db and .tpl that is already > >> setup? I would be willing to purchase a complete setup solution. > >> > >> Tennis > >> > >> Visual Marketing Sources > >> http://www.visualmarketing.net > >> > >> > > > > > >------------------------------------------------------------- > >Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. > >To end your Mail problems go to . > > > >This message is sent to you because you are subscribed to > > the mailing list . > >To unsubscribe, E-mail to: > >To switch to the DIGEST mode, E-mail to > > > > Visual Marketing Sources > http://www.visualmarketing.net > > ------------------------------------------------------------- > Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. > To end your Mail problems go to . > > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to J. Danz

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[WebDNA] Windows Installation (2019) New syntax feedback for 4.0 (2000) Help! WebCat2 bug (1997) BIG PROBLEMS with Checkboxes!!! (1998) Using Plug-In while running 1.6.1 (1997) Using WebCat for product info requests (1997) Emailer S-L-O-W-N-E-S-S (2002) Calculating times in a different zone ... (2003) sendmail and attachments (2004) WebCat2b13 Command Reference Doc error (1997) Too many database headers? (2003) About the E-mailer (2002) A multi-processor savvy WebCatalog? (1997) [include file=filename.inc&strip=t] (2002) multiple search commands (1997) WriteFile (2000) [HIDEIF] inside [FOUNDITEM] (1997) mail sent from webcatalog. accented chars! (1998) Re:no template caching (1997) [showif] / [hideif] (1997)