numero = 25089
interpreted = N
texte = Here is some webcat code that will generate a drop down menu of all UPSproducts and prices for a desintation, drop off point, weight and packagetype. In order for this code to work you will need a database of all countrycodes. and a small Convertchars database which converts % to |. I find it iseasier to parse through a long string looking for | instead of %. I am notreally sure why I converted chars in the first place, but it works. You willhave to go in and modify certain parts which have hard coded values. Thiscode was designed to work in a checkout so some of the values are variablesbeing passed in a form. All the comment tags are placed there to prevent aton of white space from being generated. It also uses another small databaseto convert UPS product codes into English words. I call this dbshippingLookup.db. From the UPS website you should be able to find all theinfo needed to make create these Databases.Josh TigerPop Art LLC[HIDEIF [shipToBill]=true][text show=f]destCountry=[LOOKUPdb=includes/UPS_country_codes.db&value=UnitedStates&lookInField=CountryName_H&returnField=CountryCode_H¬Found=ERROR][/TEXT][/HIDEIF][!][/!][SHOWIF [shipToBill]=true][text show=f]destCountry=[LOOKUPdb=includes/UPS_country_codes.db&value=[Country]&lookInField=CountryName_H&returnField=CountryCode_H¬Found=ERROR][/TEXT][/SHOWIF][!][/!][text show=f]destZip=[HIDEIF[shipToBill]=true][shipToZip][/HIDEIF][SHOWIF[shipToBill]=true][ZIP][/SHOWIF][/text][!][/!][text show=f]residential=0[/text][!][/!][text show=f]weight=[totalWeight][/text][!][/!][text show=f]response=[middlestartafter=UPSOnLine&endbefore=][tcpconnecthost=www.ups.com&port=80][tcpsend]GET/using/services/rave/qcostcgi.cgi?accept_UPS_license_agreement=yes&10_action=4&14_origCountry=US&15_origPostal=90007&22_destCountry=[destCountry]&19_destPostal=[destZip]&49_residential=[residential]&47_rate_chart=Regular+Daily+Pickup&48_container=00&13_product=GNDCOM&23_weight=[weight]&weight_std=lbs.HTTP/1.0[UnURL]%0D%0A%0D%0A[/UnURL][/tcpsend][/tcpconnect][/middle][/text][!][/!][math show=f]percentCount=0[/math][!][/!][text show=f]response2=[convertcharsdb=includes/UPSconversions.db][response][/convertchars][/text][!][/!][math show=f]errorCheck=0[/math][!][/!][ListWords Words=[response2]&Delimiters=;][!] [/!][SHOWIF [word]~4][!] [/!][Math show=f]errorCheck = errorCheck + 1[/math][!] [/!][/SHOWIF][!][/!][/LISTWORDS][!][/!][HIDEIF [errorCheck]=0][!][/!][/HIDEIF] [SHOWIF [errorCheck]=0]Sorry, but you have chosen an invalid shippingaddress. Most likely you have entered a zip/postal code which does not matchthe country.Please click your browser's back button and make the necessarycorrections.[/SHOWIF]----- Original Message -----From: Aaron Lynch To: WebCatalog Talk Sent: Monday, December 06, 1999 9:18 AMSubject: Re: ups quickcost [repost]> Where? Are you talking about> http://www.ups.com/using/services/rave/rate.html ?>> my experience with webcat 3 is pretty limited, it> seems like it would be a lot harder to parse useful> info out of that result page, rather than using the> webcat snippet. I can't believe UPS makes their rates> this tough to comprehend...>> If that's not the script you refer to would you please> post a URL?>> Thanks> -aaron>> --- Nicolas Verhaeghe wrote:> > > hi all,> > >> > > I'm trying to use the ups snippet to get prices> > from> > > ups, and when I> > > RTFM for the> > > thing it say to refer to the ups documentation.> > Well,> > > I can't find _any_> > > documentation on it.> > >> > > I looks like you may need a UPS account and> > download> > > the internet tool suite.> >> > Actually there is a script at UPS that only gives> > you the price of your> > shipment to a destination according to the weight,> > zip and country codes for> > origin and destination, and the code of the UPS> > product.> >> > No account necessary.>>> =====> -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 MessagingServer.> 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:
Here is some webcat code that will generate a drop down menu of all UPSproducts and prices for a desintation, drop off point, weight and packagetype. In order for this code to work you will need a database of all countrycodes. and a small Convertchars database which converts % to |. I find it iseasier to parse through a long string looking for | instead of %. I am notreally sure why I converted chars in the first place, but it works. You willhave to go in and modify certain parts which have hard coded values. Thiscode was designed to work in a checkout so some of the values are variablesbeing passed in a form. All the comment tags are placed there to prevent aton of white space from being generated. It also uses another small databaseto convert UPS product codes into English words. I call this dbshippingLookup.db. From the UPS website you should be able to find all theinfo needed to make create these Databases.Josh TigerPop Art LLC[HIDEIF [shipToBill]=true][text show=f]destCountry=[LOOKUPdb=includes/UPS_country_codes.db&value=UnitedStates&lookInField=CountryName_H&returnField=CountryCode_H¬Found=ERROR][/TEXT][/HIDEIF][!][/!][SHOWIF [shipToBill]=true][text show=f]destCountry=[LOOKUPdb=includes/UPS_country_codes.db&value=[Country]&lookInField=CountryName_H&returnField=CountryCode_H¬Found=ERROR][/TEXT][/SHOWIF][!][/!][text show=f]destZip=[HIDEIF[shipToBill]=true][shipToZip][/HIDEIF][SHOWIF[shipToBill]=true][ZIP][/SHOWIF][/text][!][/!][text show=f]residential=0[/text][!][/!][text show=f]weight=[totalWeight][/text][!][/!][text show=f]response=[middlestartafter=UPSOnLine&endbefore=][tcpconnecthost=www.ups.com&port=80][tcpsend]GET/using/services/rave/qcostcgi.cgi?accept_UPS_license_agreement=yes&10_action=4&14_origCountry=US&15_origPostal=90007&22_destCountry=[destCountry]&19_destPostal=[destZip]&49_residential=[residential]&47_rate_chart=Regular+Daily+Pickup&48_container=00&13_product=GNDCOM&23_weight=[weight]&weight_std=lbs.HTTP/1.0[unurl]%0D%0A%0D%0A[/UnURL][/tcpsend][/tcpconnect][/middle][/text][!][/!][math show=f]percentCount=0[/math][!][/!][text show=f]response2=[convertcharsdb=includes/UPSconversions.db][response][/convertchars][/text][!][/!][math show=f]errorCheck=0[/math][!][/!][ListWords Words=[response2]&Delimiters=;][!] [/!][SHOWIF [word]~4][!] [/!][Math show=f]errorCheck = errorCheck + 1[/math][!] [/!][/SHOWIF][!][/!][/LISTWORDS][!][/!][HIDEIF [errorCheck]=0][!][/!][/HIDEIF] [SHOWIF [errorCheck]=0]Sorry, but you have chosen an invalid shippingaddress. Most likely you have entered a zip/postal code which does not matchthe country.Please click your browser's back button and make the necessarycorrections.[/SHOWIF]----- Original Message -----From: Aaron Lynch To: WebCatalog Talk Sent: Monday, December 06, 1999 9:18 AMSubject: Re: ups quickcost [repost]> Where? Are you talking about> http://www.ups.com/using/services/rave/rate.html ?>> my experience with webcat 3 is pretty limited, it> seems like it would be a lot harder to parse useful> info out of that result page, rather than using the> webcat snippet. I can't believe UPS makes their rates> this tough to comprehend...>> If that's not the script you refer to would you please> post a URL?>> Thanks> -aaron>> --- Nicolas Verhaeghe wrote:> > > hi all,> > >> > > I'm trying to use the ups snippet to get prices> > from> > > ups, and when I> > > RTFM for the> > > thing it say to refer to the ups documentation.> > Well,> > > I can't find _any_> > > documentation on it.> > >> > > I looks like you may need a UPS account and> > download> > > the internet tool suite.> >> > Actually there is a script at UPS that only gives> > you the price of your> > shipment to a destination according to the weight,> > zip and country codes for> > origin and destination, and the code of the UPS> > product.> >> > No account necessary.>>> =====> -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 MessagingServer.> 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 Josh Tiger
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...