Re: removelineitems

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 32446
interpreted = N
texte = >this is what i ended up with and put it at the top of the >shoppingcart.tpl. It works fine & removes the discount line >from the cart before the page is displayed so things get >recalculated properly if more items are added. I'm surprised that I >could add &sku=2168 to removelineitem, (2168 is always the unique >discount sku) . > >[removelineitem cart=[cart]&index=[lineindex]&sku=2168] ...The sku=2168 parameter is superfluous so it is ignored by webcatalog -- and you should take it out so you don't get into a bad habit of leaving extraneous parameters in your contexts which do nothing but possibly confuse you ... >It works I wish I knew why....cart is the cart # but what is the >value of [lineindex]??The [lineindex] tag identifies which item gets removed. >Is it actually looping thru all the lineitems and finding the sku?No, it does NOT find the sku, it finds the lineindex value -- that's why lineindex is required and sku is not. All it's doing is looping thru the lineitems and finding the item identified by the value of the [lineindex] tag. This is explained (minimally) in the HTML docs ...================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- 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: removelineitems (chas@valley.net (chas) 2000)
  2. Re: removelineitems (John Butler 2000)
  3. Re: removelineitems (chas@valley.net (chas) 2000)
  4. Re: removelineitems (John Butler 2000)
  5. Re: removelineitems (chas@valley.net (chas) 2000)
  6. Re: removelineitems (John Butler 2000)
  7. Re: removelineitems (Kenneth Grome 2000)
  8. Re: removelineitems (chas@valley.net (chas) 2000)
  9. Re: removelineitems (John Butler 2000)
  10. Re: removelineitems (John Butler 2000)
  11. Re: removelineitems (chas@valley.net (chas) 2000)
  12. removelineitems (chas@valley.net (chas) 2000)
>this is what i ended up with and put it at the top of the >shoppingcart.tpl. It works fine & removes the discount line >from the cart before the page is displayed so things get >recalculated properly if more items are added. I'm surprised that I >could add &sku=2168 to removelineitem, (2168 is always the unique >discount sku) . > >[removelineitem cart=[cart]&index=[lineindex]&sku=2168] ...The sku=2168 parameter is superfluous so it is ignored by webcatalog -- and you should take it out so you don't get into a bad habit of leaving extraneous parameters in your contexts which do nothing but possibly confuse you ... >It works I wish I knew why....cart is the cart # but what is the >value of [lineindex]??The [lineindex] tag identifies which item gets removed. >Is it actually looping thru all the lineitems and finding the sku?No, it does NOT find the sku, it finds the lineindex value -- that's why lineindex is required and sku is not. All it's doing is looping thru the lineitems and finding the item identified by the value of the [lineindex] tag. This is explained (minimally) in the HTML docs ...================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- 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/ Kenneth Grome

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:

Deleting associated records from 2 different databases (2001) X etc.... (1999) Numbers only code (2000) 3rd request: What are SMSI's upgrade policies? (2003) WebCatalog f2 Installation (1997) Date search - yes or no (1997) [searchString] (1997) hiding hyperlink info in URL field (1999) [getchars] questions (1997) append=T problem (1998) security (1997) Separate SSL Server (1997) WebCat2.0 [format thousands .0f] no go (1997) WebCat2: multiple currency support (1997) [BULK] [WebDNA] Happy St. Patricks Day WEBDNA (2018) Help on how to store calculated value (2002) Separate SSL Server (1997) [math] with first letter in field? (1997) WebCatalog complains that the service is not running. (1998) [WebDNA] Function "libraries" (2009)