Re: removelineitems

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 32445
interpreted = N
texte = --- You wrote: that was supposed to be-...what you could do is: at the top of invoice throw out ANY discount product in the cart... --- end of quote --- 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]It works I wish I knew why....cart is the cart # but what is the value of [lineindex]?? Is it actually looping thru all the lineitems and finding the sku?TIACharley Conquest Fresh Music redundancy dept. Your Shopping Cart[Include file=Fresh_Header.inc] [removelineitem cart=[cart]&index=[lineindex]&sku=2168][text]basket=[math]0[lineitems]+[quantity][/lineitems][/math][/text] [SetHeader cart=[cart]]header40=[basket][/SetHeader]lineindex=[lineindex] basket=[basket]
header40=[header40]

Shopping Cart

You have just added an item to your shopping cart. blah blah blah...------------------------------------------------------------- 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)
--- You wrote: that was supposed to be-...what you could do is: at the top of invoice throw out ANY discount product in the cart... --- end of quote --- 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]It works I wish I knew why....cart is the cart # but what is the value of [lineindex]?? Is it actually looping thru all the lineitems and finding the sku?TIACharley Conquest Fresh Music redundancy dept. Your Shopping Cart[Include file=Fresh_Header.inc] [removelineitem cart=[cart]&index=[lineindex]&sku=2168][text]basket=[math]0[lineitems]+[quantity][/lineitems][/math][/text] [SetHeader cart=[cart]]header40=[basket][/SetHeader]lineindex=[lineindex] basket=[basket]
header40=[header40]

Shopping Cart

You have just added an item to your shopping cart. blah blah blah...------------------------------------------------------------- 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/ chas@valley.net (chas)

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:

Trouble with adding multiple items to cart (1999) WebCat2b13MacPlugin - nested [xxx] contexts (1997) real beginner stumped (2000) WebTV (1998) Using Cookie for client specific info? (1997) FW: WebCat Contest (1998) stumped (2001) Calculating Shipping charges for multiple items and qtys > 1 (1997) Sample Tea Room Search Error (1997) Re:quit command on NT (1997) Can [writefile] files be served thru webcat? (2000) calculating tax rates, mail order solutions and version 2 (1997) [WebDNA] Lookup vs. Search (2009) [HIDEIF] inside [FOUNDITEM] (1997) default value from Lookup (was Grant, please help me) (1997) For those of you not on the WebCatalog Beta... (1997) [WebDNA] Here's how you can help (2008) referrer usage (1997) WCS Newbie question (1997) WebCat2: Master Counter snippet (1997)