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 Rickard http://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:

    
  1. Re: Reload adding to cart (Donovan Brooke 2001)
  2. Re: Reload adding to cart (Maurice Rickard 2001)
  3. Re: Reload adding to cart (Donovan Brooke 2001)
  4. Re: Reload adding to cart (John Peacock 2001)
  5. Re: Reload adding to cart (Donovan Brooke 2001)
  6. Re: Reload adding to cart (Donovan Brooke 2001)
  7. Re: Reload adding to cart (John Peacock 2001)
  8. Re: Reload adding to cart (Donovan Brooke 2001)
  9. Re: Reload adding to cart (Donovan Brooke 2001)
  10. Re: Reload adding to cart (Maurice Rickard 2001)
  11. Reload adding to cart (Donovan Brooke 2001)
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 Rickard http://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:

Emailer pref's won't save (2005) WCS Newbie question (1997) Follow-Up to: Removing [showif] makes a big difference in speed (1997) How can I Add several Items into the cart at once? (1997) Carrying over data? (1997) Wanted: More Math Functions (or, Can You Solve This?) (1997) Replace Statement (1997) Webcat Hosting in London or UK (2003) Server IP address? (1998) eMail not being sent (1999) autosensing lanague selection (1997) Your Pay (2004) protect tag on NT IIS (1997) Problems passing [SKU] with $Replace in 2.0 (1997) [Fwd: Rotating Banners ... (was LinkExchange)] (1997) Upgrading old WebCat Database Files (1997) WebCat cannot handle compatible search parameters? (1997) Re:Merging databases (1997) WC Database Format (1997) Plugin or CGI or both (1997)