Re: ups quickcost [repost]
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 25086
interpreted = N
texte = Nicolas:in your example, where are you getting [UPSprod] from?That's my problem, I can't find the data for anythingbut ground. The package from PCS says to refer todocumentation from UPS which I can't seem to find.since ground is: 13_product=GNDCOMI tried REDCOM and 2DACOM as guesses but those didn'twork...--- Nicolas Verhaeghe
wrote:> > Where? Are you talking about> > http://www.ups.com/using/services/rave/rate.html ?> > There is a version of this script that gives you the> result in text format,> delimited by % characters.> > www.ups.com/using/services/rave/qcostcgi.cgi> > This is what I personallky do to retrieve my UPS> costs:> > [text show=f]DepCountry=US[/text]> [text show=f]DepZip=85260[/text]> > [math show=f]Weight=ceil([totalweight])[/math]> > [TCPConnect host=www.ups.com&port=80]> [text show=f]s1=[middle>startafter=[url][UPSprod]%[DepZip]%[DepCountry]%[DestZip]%[DestCountry]%[/ur> l]][TCPSend]GET >/using/services/rave/qcostcgi.cgi?accept_UPS_license_agreement=yes&10_action>=3&13_product=[UPSprod]&15_origPostal=[DepZip]&19_destPostal=[DestZip]&22_de> stCountry=[DestCountry]&23_weight=[weight]>HTTP/1.0[UnURL]%0D%0A%0D%0A[/UnURL][/TCPSend][/middle]> [/text]> [/TCPConnect]> > [text show=f]s2=[middle>startafter=[Url]%[/Url]&endbefore=[Url]%[/Url]][s1][/middle][/text]> [text show=f]s3=[middle>startafter=[Url][/Url]&endbefore=[Url][s2][/Url]][s1][/middle][/text]> > [text show=f]s4=[middle>startafter=[Url][s3][/Url]&endbefore=[Url]%[/Url]][s1][/middle][/text]> [text show=f]s5=[middle>startafter=[Url][s3][/Url]&endbefore=[Url]%[/Url]][s4][/middle][/text]> [text show=f]s6=[middle>startafter=[Url][s3][/Url]&endbefore=[Url]%[/Url]][s5][/middle][/text]> > [text show=f]UPS=[middle> startafter=[Url][s6]%[/Url]][s5][/middle][/text]> > > Explanation:> We ship from Scottsdale, Arizona (zip code 85260).> I round up the weight to the upper pound.> Then I contact UPS via HTTP using the so neat> [TCPConnect] context, give the> weight, the zip codes and country codes and it> usually works fine.> > Note: make sure your code is webcatalog compliant> when you copy this.> Also retrieve the UPS Product codes, and country> codes as well, from UPS.> I bet the UPS Package from PCS has them.> > >-------------------------------------------------------------> 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> > =====-Aaron__________________________________________________Do You Yahoo!?Thousands of Stores. Millions of Products. All in one place.Yahoo! Shopping: http://shopping.yahoo.com-------------------------------------------------------------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:
Nicolas:in your example, where are you getting [UPSprod] from?That's my problem, I can't find the data for anythingbut ground. The package from PCS says to refer todocumentation from UPS which I can't seem to find.since ground is: 13_product=GNDCOMI tried REDCOM and 2DACOM as guesses but those didn'twork...--- Nicolas Verhaeghe wrote:> > Where? Are you talking about> > http://www.ups.com/using/services/rave/rate.html ?> > There is a version of this script that gives you the> result in text format,> delimited by % characters.> > www.ups.com/using/services/rave/qcostcgi.cgi> > This is what I personallky do to retrieve my UPS> costs:> > [text show=f]DepCountry=US[/text]> [text show=f]DepZip=85260[/text]> > [math show=f]Weight=ceil([totalweight])[/math]> > [TCPConnect host=www.ups.com&port=80]> [text show=f]s1=[middle>startafter=[url][UPSprod]%[DepZip]%[DepCountry]%[DestZip]%[DestCountry]%[/ur> l]][tcpsend]GET >/using/services/rave/qcostcgi.cgi?accept_UPS_license_agreement=yes&10_action>=3&13_product=[UPSprod]&15_origPostal=[DepZip]&19_destPostal=[DestZip]&22_de> stCountry=[DestCountry]&23_weight=[weight]>HTTP/1.0[unurl]%0D%0A%0D%0A[/UnURL][/TCPSend][/middle]> [/text]> [/TCPConnect]> > [text show=f]s2=[middle>startafter=[url]%[/Url]&endbefore=[url]%[/Url]][s1][/middle][/text]> [text show=f]s3=[middle>startafter=[url][/Url]&endbefore=[url][s2][/Url]][s1][/middle][/text]> > [text show=f]s4=[middle>startafter=[url][s3][/Url]&endbefore=[url]%[/Url]][s1][/middle][/text]> [text show=f]s5=[middle>startafter=[url][s3][/Url]&endbefore=[url]%[/Url]][s4][/middle][/text]> [text show=f]s6=[middle>startafter=[url][s3][/Url]&endbefore=[url]%[/Url]][s5][/middle][/text]> > [text show=f]UPS=[middle> startafter=[url][s6]%[/Url]][s5][/middle][/text]> > > Explanation:> We ship from Scottsdale, Arizona (zip code 85260).> I round up the weight to the upper pound.> Then I contact UPS via HTTP using the so neat> [tcpconnect] context, give the> weight, the zip codes and country codes and it> usually works fine.> > Note: make sure your code is webcatalog compliant> when you copy this.> Also retrieve the UPS Product codes, and country> codes as well, from UPS.> I bet the UPS Package from PCS has them.> > >-------------------------------------------------------------> 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> > =====-Aaron__________________________________________________Do You Yahoo!?Thousands of Stores. Millions of Products. All in one place.Yahoo! Shopping: http://shopping.yahoo.com-------------------------------------------------------------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
Aaron Lynch
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:
Price and Formula.db (2002)
Just Testing (1997)
[defined]ish (1997)
SKU lookup (1997)
Webcat/Webmerchant part II (1998)
Hard Questions ? (1997)
Admin Edit prob. (1997)
Javascript/WebCatalog form population (2001)
Pre-parse hell (2008)
Reversing [ipaddress] normalization (1998)
More on the email templates (1997)
Serving images from databases (1998)
remotely add + sign (1997)
Possible Bug in 2.0b15.acgi (1997)
WebCat2b13MacPlugin - nested [xxx] contexts (1997)
Missing custom convert.db (1998)
emailer (1997)
WC2/Mac -- Forms not submitting correctly with Mac browsers (1997)
WebCat2 beta FTP site (1997)
Search design (1997)