Re: ' add to cart ' or ' sku ' problem

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20095
interpreted = N
texte = Thanks for responding!Unfortunately, I believe that I've checked each of your recommendations and found that I am already complying. I put the Add to cart link in the same FOUNDITEMS link that I use to display the the items; the [sku] successfully fills the table with the correct values from the SKU field in my database. Very perplexing! I've copied the offending page (and the small database) if you have a moment to see what I'm talking about. [search db=msports.db&eqNAMEdata=[key_words]&SKUsort=1&SKUsdir=de&cart=[cart]&max=1&startat=[startat]]FOUND [numfound] ITEMS
[founditems] [/founditems]
Cat IDProd NameDescriptionPricePhotoA ction
[SKU] [name] [desc] $[format .2f][Price][/format] Add to cart
[shownext startat=[startat]] Show Items [start]-[end]
[/shownext] [/search]Show Shopping Cart
Back to search
[formvariables] [name],[value]
[/formvariables] SKU NAME DESC PRICE PICT 2222 item6 thisisitemtwo 2.22 pict2 3333 item2 thisisitemthree 3.33 pict3 4444 item2 thisisitemfour 4.44 pict3 5555 item2 thisisitemfive 5.55 pict2 6666 item2 thisisitemsix 6.66 pict3 7777 item2 thisisitemseven 7.77 pict3 8888 item2 thisisitemeight 8.88 pict3PCS Technical Support wrote:> >I get the message Error: couldn't find SKU '[SKU]' in product > >database. when I click on the Add to Cart link. > > > >The link's url is: > >WebCatalog/92498/shoppingcart.tpl?command=add&db=msports.db&SKU=[SKU]&cart=2989 > >515176129 > > If the link has literally [sku] in it (rather than your actual product sku > text), then either the WebDNA is not getting interpreted on that page, or > there's no [sku] field in your database, or you're outside of a > [FoundItems] loop which would provide the context for knowing what [sku] > means. > > You might have used one of those poorly-written graphical HTML editors that > decides to change '[' to '%5B', so make sure you are really looking at the > HTML source of your template useing a real text editor instead of PageMill > or whatever. > > Technical Support | ==== eCommerce and Beyond ==== > Pacific Coast Software | WebCatalog, WebMerchant, > 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, > San Diego, CA 92128 | Typhoon > 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Solution:' add to cart ' or ' sku ' problem (John Bennett 1998)
  2. Re: ' add to cart ' or ' sku ' problem (John Bennett 1998)
  3. Re: ' add to cart ' or ' sku ' problem (PCS Technical Support 1998)
  4. ' add to cart ' or ' sku ' problem (John Bennett 1998)
  5. Re: ' add to cart ' or ' sku ' problem (PCS Technical Support 1998)
Thanks for responding!Unfortunately, I believe that I've checked each of your recommendations and found that I am already complying. I put the Add to cart link in the same FOUNDITEMS link that I use to display the the items; the [sku] successfully fills the table with the correct values from the SKU field in my database. Very perplexing! I've copied the offending page (and the small database) if you have a moment to see what I'm talking about. [search db=msports.db&eqNAMEdata=[key_words]&SKUsort=1&SKUsdir=de&cart=[cart]&max=1&startat=[startat]]FOUND [numfound] ITEMS
[founditems] [/founditems]
Cat IDProd NameDescriptionPricePhotoA ction
[SKU] [name] [desc] $[format .2f][Price][/format] [cart]>Add to cart
[shownext startat=[startat]] Show Items [start]-[end]
[/shownext] [/search][cart]>Show Shopping Cart
Back to search
[formvariables] [name],[value]
[/formvariables] SKU NAME DESC PRICE PICT 2222 item6 thisisitemtwo 2.22 pict2 3333 item2 thisisitemthree 3.33 pict3 4444 item2 thisisitemfour 4.44 pict3 5555 item2 thisisitemfive 5.55 pict2 6666 item2 thisisitemsix 6.66 pict3 7777 item2 thisisitemseven 7.77 pict3 8888 item2 thisisitemeight 8.88 pict3PCS Technical Support wrote:> >I get the message Error: couldn't find SKU '[SKU]' in product > >database. when I click on the Add to Cart link. > > > >The link's url is: > >WebCatalog/92498/shoppingcart.tpl?command=add&db=msports.db&SKU=[SKU]&cart=2989 > >515176129 > > If the link has literally [sku] in it (rather than your actual product sku > text), then either the WebDNA is not getting interpreted on that page, or > there's no [sku] field in your database, or you're outside of a > [founditems] loop which would provide the context for knowing what [sku] > means. > > You might have used one of those poorly-written graphical HTML editors that > decides to change '[' to '%5B', so make sure you are really looking at the > HTML source of your template useing a real text editor instead of PageMill > or whatever. > > Technical Support | ==== eCommerce and Beyond ==== > Pacific Coast Software | WebCatalog, WebMerchant, > 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, > San Diego, CA 92128 | Typhoon > 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ John Bennett

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:

Notepad problems (1998) Webcat and Sybase on OSX...anyone doing this currently? (2003) WebCat2b12 forgets serial # (1997) WebCatalog NT beta 18 problem (1997) converting tabs (1997) Summing fields (1997) New site announcement + Showing once on a founditems (1997) Spell Check (2000) RE: WebCatalog2 for NT Beta Request (1997) Encrypted links ... (2000) Radius-Based Zip Locator (2005) WebCat2b15MacPlugin - showing [math] (1997) Numbers only code (2000) Secure Server (1997) WCS Newbie question (1997) Windows 2.1b4 WebCatalog available (1997) help with autenticate (1998) Frames and WebCat (1997) Plugin or CGI or both (1997) WebCat2: Formulas.db question (1997)