Re: Cart questions

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13880
interpreted = N
texte = >1. I am using addlineitem at the beginning of my template to add all the >sku's passed to the template to build my cart. Further down the in code >on that same page I want to be able to display all the lineitems in the >cartThere's a weird technical reason for it, but the workaround is to enclose the second lineitems loop inside an OrderFile context, like so: [OrderFile [cart]]...[lineItems]..[/lineitems]..[/OrderFile]>2. Is there a way to prevent duplicate sku's in the cart. I do not want >to add the item if it is already in the cart. How does one search the >cart?Name your incoming sku inSKU (so you can distinguish it from the LineItems' SKU), and search for it using showif[LineItems] [ShowIf [inSKU]=[SKU]]...[/ShowIf] [/LineItems]>3 Subtotal always displays 0.00 how is that calculated. I can open the >formulas.db and they look OK. Any Ideas?Does GrandTotal show up?>4. When I try to set the price with the addlineitem it tells me I dont >have permission to do that. I am having trouble with the price lookup in >the formulas.db, it does not return the price because webcat doesnt seem >to have the correct sku when the formula executes.How are you looking up price? You can't just put [price] in, because the formula is not in the context of a lineitem at that point. Have you tried [lookup db=catalog.txt&lookInField=sku&value=[sku]&returnField=price]?Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ==== Pacific Coast Software | WebCatalog, WebMerchant 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: More Shopping Cart Questions/Problems (Brian Boegershausen 2000)
  2. More Shopping Cart Questions/Problems (Brady J. Horenstein 2000)
  3. RE: Shopping Cart Questions (PCS Technical Support 1998)
  4. RE: Shopping Cart Questions (Pat McCormick 1998)
  5. RE: Shopping Cart Questions (josh 1998)
  6. Re: Shopping Cart Questions (Rob Marquardt 1998)
  7. Shopping Cart Questions (josh 1998)
  8. RE: Shopping Cart Questions (Pat McCormick 1998)
  9. Price lookup problem - was Re: Cart questions (Paul Winchester 1997)
  10. Re: Cart questions (Grant Hulbert 1997)
  11. Re: Cart questions (Grant Hulbert 1997)
  12. Re: Cart questions (Paul Winchester 1997)
  13. Re: Cart questions (Paul Winchester 1997)
  14. Re: Cart questions (Grant Hulbert 1997)
  15. Cart questions (Paul Winchester 1997)
  16. three cart questions (Thomas Wedderburn-Bisshop 1997)
>1. I am using addlineitem at the beginning of my template to add all the >sku's passed to the template to build my cart. Further down the in code >on that same page I want to be able to display all the lineitems in the >cartThere's a weird technical reason for it, but the workaround is to enclose the second lineitems loop inside an OrderFile context, like so: [OrderFile [cart]]...[lineitems]..[/lineitems]..[/OrderFile]>2. Is there a way to prevent duplicate sku's in the cart. I do not want >to add the item if it is already in the cart. How does one search the >cart?Name your incoming sku inSKU (so you can distinguish it from the LineItems' SKU), and search for it using showif[lineitems] [ShowIf [inSKU]=[SKU]]...[/ShowIf] [/LineItems]>3 Subtotal always displays 0.00 how is that calculated. I can open the >formulas.db and they look OK. Any Ideas?Does GrandTotal show up?>4. When I try to set the price with the addlineitem it tells me I dont >have permission to do that. I am having trouble with the price lookup in >the formulas.db, it does not return the price because webcat doesnt seem >to have the correct sku when the formula executes.How are you looking up price? You can't just put [price] in, because the formula is not in the context of a lineitem at that point. Have you tried [lookup db=catalog.txt&lookInField=sku&value=[sku]&returnField=price]?Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ==== Pacific Coast Software | WebCatalog, WebMerchant 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Grant Hulbert

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:

Site Builder & IE Mac (2004) search form problem.. (1997) 2.0Beta Command Ref (can't find this instruction) (1997) WC1.6 to WC2 date formatting (1997) switching users (1998) an easy one... (2000) Suggestion: appendfounditems (2002) available times? (2003) taxrate - off by 1 cent (1997) Updating product information (2002) Summary search -- speed (1997) Converting a Magazine to a Web Site with WebCat (1999) Does webcatalog recognise NULL values? (1998) [OT] See Flash? (2003) .FBCLockFolder messin' things up.... (2001) Anyone using WebCat UNIX on a busy server yet? (1999) Popup Menu Options (1998) WebDNA 5.1 and Mac OS X Server v10.3 - Working ??? (2003) WebDNA 4.5 not starting on boot? (2002) Utility to convert paradox .db files to text? (2004)