Re: removelineitems

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 32463
interpreted = N
texte = right. [removelineitem] is supposed to work by referencing the index # (which matches the lineindex # of the lineitem you want removed) but maybe you stumbled onto some undocumented feature.... In any case it is better to do what you need by using documented features since the undocumented ones could go away at any new release...and you don't know what lineitem # the discount lineitem will necessarily have, so maybe something like this would be best for removing the discount lineitem:[lineitems][showif [URL][SKU][/URL]=2168] [removelineitem cart=[cart]&index=[lineindex]] [/showif][/lineitems]Once you have that working then work on the problem of 2 discount lineitems getting in there when the user uses his back and forward buttons. Maybe something like this (on Invoice) will stop that problem:[text]DiscntExistsYet=unknown[/text][lineitems][showif [URL][SKU][/URL]=2168] [text]DiscntExistsYet=Yes[/text] [/showif][/lineitems][hideif [URL][DiscntExistsYet][/URL]=Yes] [addlineitem cart=[cart]&sku=2168&db=products.db&]password=dude66&textD=[URL]Fresh Discount[/URL]&quantity=1&price=[lookup db=discount.db&value=[header40]&lookInField=quant&returnField=discamnt¬Found=nope][/addlineitem] [/hideif]-Johnchas wrote:> This is what i get...lineindex=[lineindex] always!!!! > > [removelineitem cart=[cart]&index=[lineindex]&sku=2168] > > When I took out the &sku=2168 and it stopped working..... > ------------------------------------------------------------- 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)
right. [removelineitem] is supposed to work by referencing the index # (which matches the lineindex # of the lineitem you want removed) but maybe you stumbled onto some undocumented feature.... In any case it is better to do what you need by using documented features since the undocumented ones could go away at any new release...and you don't know what lineitem # the discount lineitem will necessarily have, so maybe something like this would be best for removing the discount lineitem:[lineitems][showif [url][SKU][/URL]=2168] [removelineitem cart=[cart]&index=[lineindex]] [/showif][/lineitems]Once you have that working then work on the problem of 2 discount lineitems getting in there when the user uses his back and forward buttons. Maybe something like this (on Invoice) will stop that problem:[text]DiscntExistsYet=unknown[/text][lineitems][showif [url][SKU][/URL]=2168] [text]DiscntExistsYet=Yes[/text] [/showif][/lineitems][hideif [url][DiscntExistsYet][/URL]=Yes] [addlineitem cart=[cart]&sku=2168&db=products.db&]password=dude66&textD=[url]Fresh Discount[/URL]&quantity=1&price=[lookup db=discount.db&value=[header40]&lookInField=quant&returnField=discamnt¬Found=nope][/addlineitem] [/hideif]-Johnchas wrote:> This is what i get...lineindex=[lineindex] always!!!! > > [removelineitem cart=[cart]&index=[lineindex]&sku=2168] > > When I took out the &sku=2168 and it stopped working..... > ------------------------------------------------------------- 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/ John Butler

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:

syntax question, not in online refernce (1997) Re[3]: 2nd WebCatalog2 Feature Request (1996) Looping control (1997) GrandTotal not right (1997) Using WC for Bulk Emailings (1997) WebCat2b15MacPlugin - showing [math] (1997) Webcat run amuk (2002) Webcat no longer supported? (2006) MasterCounter and capitalization (1997) Missing from Docs [folderName] (1997) Help name our technology! (1997) LetterRip and WebCat & more (1998) [WebDNA] divisible by 1 (2011) Field name-subcategory (1997) MacFinder -- a new WebDNA web site (1998) Who is doing sign-ups (1998) AutoCommit Preference? (1998) Problem with [isFile] [isFolder] (wc 3.0.4, iis 4) (1999) Nested vs conditional (1997) [WebDNA] Amazon EC2 (2009)