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 ANYdiscount 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 ConquestFresh 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:
--- You wrote:that was supposed to be-...what you could do is: at the top of invoice throw out ANYdiscount 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 ConquestFresh 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:
Mass deletion of records (2006)
Arrays (2000)
Help Encrypt/Decrypt eMail (2003)
How replace title with buttons.jpg (2000)
Math with Time (1997)
select multiple (1997)
orderfile headers (was: 2nd Request for help/advice onvariable pricing) (2000)
taxTotal confusion (1998)
Return records from another (1997)
OT: Apache ServerAlias (2003)
[WebDNA] File Treeing (2012)
emailer on Windows Beta 18 (1997)
variables in template (2000)
Installing WebCatalog 4.5.1 (2004)
Show shoppingcart after remove last item (1997)
Searchable list archive (1997)
Redirect frame targets (1998)
DON'T use old cart file! (1997)
Exclude by date - multiple (1997)
How is it done? (1998)