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:

WebCat2 Append problem (B14Macacgi) (1997) Obtaining a dice result (2007) default value from Lookup (was Grant, please help me) (1997) unable to launch acgi in WebCat (1997) Duplicate Messages (1998) Credit card types (1997) [Announce]: Web server security and password protection (1997) [WebDNA] WebDNA vs. php war ;-) (2010) Include a big block of text (1997) Does not begin with.... (2003) WebCat shared memory? (1999) Append is limiting the Number of Characters written to db (fwd) (1998) Reverse dating (1999) Grepping a hostname (2003) WebDNA 6.0 OSX Commerce Edition for selling (2006) [lookup] [search] Issue (2005) is sku a REQUIRED field on NT (1997) Problem with version 4 browsers (1998) Interactive Online Docs Was: [OT] Mozilla | Was: R.I.P. (2003) [bug] Technical Support Log Crashes Server (2004)