Re: Problem 2 of 2 (was: Shipping Confusion)

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 35309
interpreted = N
texte = On 7/27/00 4:32 pm, Christopher Mackay so noted...>The code (with thanks to John Butler and John Peacock) looks like this: > >[!]This checks the cart for posters, and adds a mailing tube if it >finds one![/!] > >[lineitems] >[showif [url][itemType][/url]=poster] >[text show=F]needsTube=yes[/text] >[/showif] >[/lineitems] > >[hideif [url][SKU][/url]=10001] >[showif [url][needsTube][/url]=yes] >[AddLineItem cart=[cart]&db=tantramar_publishing.db&sku=10001][/AddLineItem] >[/showif] >[/hideif] > > >It's adding the mailing tube okay, but the [hideif] context doesn't >prevent it from adding more mailing tubes, which to my eye, it >should. Can anyone spot the problem?[!]This checks the cart for posters, and adds a mailing tube if it finds one![/!][lineitems] [showif [url][itemType][/url]=poster] [showif [hasTube]!yes] [text]hasTube=yes[/text] [AddLineItem cart=[cart]&db=tantramar_publishing.db&sku=10001][/AddLineItem] [/showif] [/showif] [/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 Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Problem 2 of 2 (was: Shipping Confusion) (Christopher Mackay 2000)
  2. Re: Problem 2 of 2 (was: Shipping Confusion) (Christopher Mackay 2000)
  3. Re: Problem 2 of 2 (was: Shipping Confusion) (Rob Marquardt 2000)
  4. Re: Problem 2 of 2 (was: Shipping Confusion) (John Peacock 2000)
  5. Re: Problem 2 of 2 (was: Shipping Confusion) (John Butler 2000)
  6. Re: Problem 2 of 2 (was: Shipping Confusion) (Christopher Mackay 2000)
  7. Re: Problem 2 of 2 (was: Shipping Confusion) (John Peacock 2000)
  8. Re: Problem 2 of 2 (was: Shipping Confusion) (Christopher Mackay 2000)
  9. Re: Problem 2 of 2 (was: Shipping Confusion) (John Butler 2000)
  10. Problem 2 of 2 (was: Shipping Confusion) (Christopher Mackay 2000)
On 7/27/00 4:32 pm, Christopher Mackay so noted...>The code (with thanks to John Butler and John Peacock) looks like this: > >[!]This checks the cart for posters, and adds a mailing tube if it >finds one![/!] > >[lineitems] >[showif [url][itemType][/url]=poster] >[text show=F]needsTube=yes[/text] >[/showif] >[/lineitems] > >[hideif [url][SKU][/url]=10001] >[showif [url][needsTube][/url]=yes] >[AddLineItem cart=[cart]&db=tantramar_publishing.db&sku=10001][/AddLineItem] >[/showif] >[/hideif] > > >It's adding the mailing tube okay, but the [hideif] context doesn't >prevent it from adding more mailing tubes, which to my eye, it >should. Can anyone spot the problem?[!]This checks the cart for posters, and adds a mailing tube if it finds one![/!][lineitems] [showif [url][itemType][/url]=poster] [showif [hasTube]!yes] [text]hasTube=yes[/text] [AddLineItem cart=[cart]&db=tantramar_publishing.db&sku=10001][/AddLineItem] [/showif] [/showif] [/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 Web Archive of this list is at: http://search.smithmicro.com/ 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:

Crash Log Question (2006) Single Link browsing (1997) InternetWeek E-Commerce article (1998) Items XX to XX shown (1997) What do the &x=5&y=8 mean? (2002) Using Applescript to process WebCatalog functions (1998) Date math (1997) Setting up shop (1997) Help! WebCat2 bug (1997) webcat license???? (1997) Getting Total Quantity (1997) Using the sendmail command on CGate Pro (Unix) (2000) TcpConnect get files on ver. 5.x BUG BUG BUG (2004) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) & in Lookups (1997) [addlineitems] as oppossed to url command=add (2000) $append (1998) Size limit for tmpl editor ? (1997) upgrade? (1997) Simple way to create unique SKU (1997)