Re: Empty Shopping Carts

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20323
interpreted = N
texte = Grant Hulbert wrote:> There are actually quite a lot of tags available outside the > [lineitems] context (but inside an [orderfile] context). Things like > [name], [shiptoaddress], etc. The one you're looking for is called > [numLineItems].Right you are. I am using the [add], [remove], and [showCart] commands to reach the shoppingCart page, and so I was using [lineItems] without an [orderFile] context. Adding [orderFile cart=[cart]] makes the [showIf [numLineItems]=0] function correctly, but it causes another problem. When adding or removing an item, the shoppingCart page shows an empty order file. Hitting reload and re-posting the data displays the first item added. Then hitting [showCart] displays the first item added, and an identical second item added when the data was re-posted. So the items are being added correctly, but not displayed on the page. Simply removing the [orderFile] context fixes the display problem, but breaks the [showIf [numLineItems]=0]. Any idea what's going on here? Please cc: me, as I read the digest. Thanks,Brian:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: : Brian.Drum :::::::::::::::::::::::::::::::: mailto:bdrum@aecsoft.com : : Web.Designer :::::::::::::::::::::::::::::::: http://www.aecsoft.com : : AEC.Software;.Inc.:::::::::::::::::::::::::::: tel:703.450.1980 :::::: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::[orderfile cart=[cart]][lineItems] [lineindex] [title] for [platform][SKU]  [users] License [showif [textC]=shipped]on [media][/showif][showif [textC]=emailed]by email[/showif] @ $[format 4.2f][price][/format]/ea. Remove Item [/lineItems][showif [numlineitems]=0]

Currently, there are no items in your order file.

Search Products [/showif][/orderfile] Associated Messages, from the most recent to the oldest:

    
  1. Re: Empty Shopping Carts? (Rob Marquardt 1998)
  2. Re: Empty Shopping Carts (PCS Technical Support 1998)
  3. Re: Empty Shopping Carts (Brian Drum 1998)
  4. Re: Empty Shopping Carts? (Kenneth Grome 1998)
  5. Re: Empty Shopping Carts? (Grant Hulbert 1998)
  6. Re: Empty Shopping Carts? (Michael Winston 1998)
  7. Re: Empty Shopping Carts? (PCS Technical Support 1998)
  8. Empty Shopping Carts? (Brian Drum 1998)
Grant Hulbert wrote:> There are actually quite a lot of tags available outside the > [lineitems] context (but inside an [orderfile] context). Things like > [name], [shiptoaddress], etc. The one you're looking for is called > [numLineItems].Right you are. I am using the [add], [remove], and [showCart] commands to reach the shoppingCart page, and so I was using [lineitems] without an [orderfile] context. Adding [orderFile cart=[cart]] makes the [showIf [numLineItems]=0] function correctly, but it causes another problem. When adding or removing an item, the shoppingCart page shows an empty order file. Hitting reload and re-posting the data displays the first item added. Then hitting [showCart] displays the first item added, and an identical second item added when the data was re-posted. So the items are being added correctly, but not displayed on the page. Simply removing the [orderfile] context fixes the display problem, but breaks the [showIf [numLineItems]=0]. Any idea what's going on here? Please cc: me, as I read the digest. Thanks,Brian:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: : Brian.Drum :::::::::::::::::::::::::::::::: mailto:bdrum@aecsoft.com : : Web.Designer :::::::::::::::::::::::::::::::: http://www.aecsoft.com : : AEC.Software;.Inc.:::::::::::::::::::::::::::: tel:703.450.1980 :::::: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::[orderfile cart=[cart]][lineitems] [lineindex] [title] for [platform][SKU]  [users] License [showif [textC]=shipped]on [media][/showif][showif [textC]=emailed]by email[/showif] @ $[format 4.2f][price][/format]/ea. [cart]&db=/databases/software.db&index=[lineIndex]>Remove Item [/lineItems][showif [numlineitems]=0]

Currently, there are no items in your order file.

[cart]>Search Products [/showif][/orderfile] Brian Drum

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:

2.01 upgrade problems (1997) Online reference (1997) PIXO support (1997) Public beta 6 for WebCatalog 4.0 is now available (2000) shipcost - cleaner with a table (1998) Country & Ship-to address & other fields ? (1997) Mac app. that converts e-mails (2000) Country & Ship-to address & other fields ? (1997) [SearchString] problem with [search] context (1997) HELP WITH DATES (1997) list and stuff... (2004) Getting total number of items ordered (1997) How to set suffix mapping on IIS 5.1 ... (2004) Tech support (2000) WebDNA v5 Array Q (2003) Multiple download orders of the same product? (1997) [SearchString] usage (1997) cookie problems (1999) a search based on ^(contains) (1998) Best way to handle 404 errors with WebDNA and Web* V (2003)