Re: Reload adding to cart
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 39234
interpreted = N
texte = At 1:23 PM 10/10/01, Donovan Brooke wrote:>Then I must have some syntax wrong? see anything?>>[showif [shop]=decipher]> [orderfile cart=[cart]]> [lineitems]> [showif [url][theSKU][/url]=[sku]][text]shop=update[/text][/showif]> [showif [url][theSKU][/url]![sku]][text]shop=add[/text][/showif]> [/lineitems]> [/orderfile]>[/showif]I think your problem is that as you go through the cart, each lineitem is going to reset the variable. You only want to reset it if the item being added is already in the cart.Try this:[showif [shop]=decipher][text]shop=add[/text] [orderfile cart=[cart]] [lineitems] [showif [url][theSKU][/url]=[sku]][text]shop=update[/text][/showif] [/lineitems] [/orderfile][/showif]This way the shop variable isn't being reset with every lineitem; only if you have a duplicate in the cart.HTH,-- Maurice Rickardhttp://mauricerickard.com/-------------------------------------------------------------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:
At 1:23 PM 10/10/01, Donovan Brooke wrote:>Then I must have some syntax wrong? see anything?>>[showif [shop]=decipher]> [orderfile cart=[cart]]> [lineitems]> [showif [url][theSKU][/url]=[sku]][text]shop=update[/text][/showif]> [showif [url][theSKU][/url]![sku]][text]shop=add[/text][/showif]> [/lineitems]> [/orderfile]>[/showif]I think your problem is that as you go through the cart, each lineitem is going to reset the variable. You only want to reset it if the item being added is already in the cart.Try this:[showif [shop]=decipher][text]shop=add[/text] [orderfile cart=[cart]] [lineitems] [showif [url][theSKU][/url]=[sku]][text]shop=update[/text][/showif] [/lineitems] [/orderfile][/showif]This way the shop variable isn't being reset with every lineitem; only if you have a duplicate in the cart.HTH,-- Maurice Rickardhttp://mauricerickard.com/-------------------------------------------------------------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/
Maurice Rickard
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:
[isfile] ? (1997)
EIMS Problems (1997)
Extended [ConvertChars] (1997)
Hard carriage convertion? (1998)
wrong authentication (1998)
More questions about serial number dishing (1997)
[Sum] function? (1997)
re: date search problem (1999)
RE: type 2 errors with ssl server (1997)
TCP Connect (2003)
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)
ShowNext example for GeneralStore (1997)
[isfile] ? (1997)
creating a 60 fields database (1997)
[SearchString] problem with [search] context (1997)
[ShowNext] feature in 2.0 (1997)
problem with [include] and Web*/SSL 3.0.1 (1998)
Multiple Users.db Possible? (1997)
error (2000)
ListFiles (1998)