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 documentedfeatures 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]FreshDiscount[/URL]&quantity=1&price=[lookupdb=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:
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 documentedfeatures 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]FreshDiscount[/URL]&quantity=1&price=[lookupdb=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:
Multiple catalog databases and showcart (1997)
[WebDNA] Sorry WebDNA server not running - September 2019 Edition (2019)
WebCat2: multiple currency support (1997)
Opposite of Summ=T? (2000)
Fufillment e-mail? (1998)
WebCommerce: Folder organization ? (1997)
No subject was specified. (2001)
Filter Null Characters (Zap Gremlins) (2005)
attachment (2000)
Surprise x and y post args (1998)
Webstar 1.3.1 PPC (1997)
Upgrade to WebCat2 from Commerce Lite (1997)
totals (1997)
UNSUBSCRIBE ME (2004)
Hello??? (1997)
Problems searching from a FORM (1997)
Weird cart problem (webcat 2.x) (2000)
Associative lookup style? (1997)
# fields limited? (1997)
Adding Multiple files to a cart at once (1998)