Re: ups calculator

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 28961
interpreted = N
texte = On 3/13/00 4:29 pm, Stephen Russo so noted...>I have recently programmed the UPS calculator onto a site. >Now when I set my lineitems everything works except the quantity comes in >with a crazy number. >If I take the set lineitems out it works fine, but my quantity always reads >one and my title and other >things set in my lineitems do not come out. > >Here is my set lineitems code: > >[orderfile cart=[cart]] > >[SetHeader >cart=[cart]]shipVia=[url][__shipVia][/url]&shipToState=[url][__shipToState][ >/url]&CartIPAddress=[ipAddress][/SetHeader] > >[lineitems] >[SetLineItem >cart=[cart]&index=[lineindex]]quantity=[interpret][quantity[lineindex]][/int >erpret]&textA=[url][lookup >db=database&lookinfield=sku&value=[url][sku][/url]&returnfield=title][/url]& >textB=[url][lookup >db=database&lookinfield=sku&value=[url][sku][/url]&returnfield=description1] >[/url][/SetLineItem] >[/lineitems]Where are your values coming from for [quantity1], [quantity2], etc? Are they valid? If they're ok, how about using the [lineitems] loop to get the values you need (for texta and textb) and set them to temp variables, then use a separate [loop] to do the [setLineItem] assignment (if there's some odd interaction from having [setLineItem] occurring *inside* the [lineitems])?Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com ------------------------------------------------------------- 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: UPS Calculator (Jay Van Vark 2003)
  2. Re: UPS Calculator (Brian Boegershausen 2003)
  3. Re: UPS Calculator (stephen 2003)
  4. Re: UPS Calculator (Brian Boegershausen 2003)
  5. UPS Calculator (stephen 2003)
  6. Re: ups calculator (Rob Marquardt 2000)
  7. ups calculator (steve@countyinfonet.com (Stephen Russo) 2000)
On 3/13/00 4:29 pm, Stephen Russo so noted...>I have recently programmed the UPS calculator onto a site. >Now when I set my lineitems everything works except the quantity comes in >with a crazy number. >If I take the set lineitems out it works fine, but my quantity always reads >one and my title and other >things set in my lineitems do not come out. > >Here is my set lineitems code: > >[orderfile cart=[cart]] > >[SetHeader >cart=[cart]]shipVia=[url][__shipVia][/url]&shipToState=[url][__shipToState][ >/url]&CartIPAddress=[ipaddress][/SetHeader] > >[lineitems] >[SetLineItem >cart=[cart]&index=[lineindex]]quantity=[interpret][quantity[lineindex]][/int >erpret]&textA=[url][lookup >db=database&lookinfield=sku&value=[url][sku][/url]&returnfield=title][/url]& >textB=[url][lookup >db=database&lookinfield=sku&value=[url][sku][/url]&returnfield=description1] >[/url][/SetLineItem] >[/lineitems]Where are your values coming from for [quantity1], [quantity2], etc? Are they valid? If they're ok, how about using the [lineitems] loop to get the values you need (for texta and textb) and set them to temp variables, then use a separate [loop] to do the [setlineitem] assignment (if there's some odd interaction from having [setlineitem] occurring *inside* the [lineitems])?Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com ------------------------------------------------------------- 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 Rob Marquardt

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:

Unix line endings (2003) RE: Answer: WebDelivery downloads alias, not original ? (1997) Re[2]: 2nd WebCatalog2 Feature Request (1996) upgrade problem with users.db (1998) A little syntax help (1997) Emailer setup (1997) Problems searching from a FORM (1997) [WebDNA] File Upload Issue (2012) Listfiles context (2000) MAC versions of WebCatalog 2.1 and WebMerchant 2.1 (1998) Hiding the URL(was Cart ID Duplication) (2001) [WebDNA] sendmail html with image attachments (2008) WebCatalog/Mac 2.1b2 New Features (1997) Serving images from databases (1998) username/password dialogue (2001) [SearchString] usage (1997) search problem (2002) Entry point? Security w/ dbase helper? (1997) First n words (2000) Can't load tmpl files (1997)