Re: Adding more than one item and QTY to cart

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34294
interpreted = N
texte = Tim,I suggest breaking the whole thing down to one small step at a time.(but first MAKE SURE the [addlineitem] is all on one line! If you say BBedit is turning it where there's a space between [AddLineItem and db well do you mean because you have soft wrapping on? Turn it off and see if it is now on one line. )How do you break it down? Start over. Make a bone simple template which does nothing. Add *one* thing at a time. Every time you add something, see if it works the way you expect. See if variable values are what you thing they should be. Stick this code:[FormVariables] [index],[name],[value]
[/FormVariables]in your pages where you pass variables to see which ones are actually coming in and what their values are.Read the docs on every webcat tag/context/command which you attempt to use to make sure you understand what it does and if you have the syntax right.As you build your templates piecemeal, the moment something doesn't work the way you think it should and you can't figure it out, then post asking for help on that *one* thing that is broken. If it is simple then someone will immediately answer you. But if we don't know what variables you are successfully passing and what their values are, then we can only waste time guessing at the problem...Trying to help-JohnTim Robinson wrote:> I've checked on numerous occasions to see if there's a bracket missing, or a misspelt word, but I can't see it. Also, the [AddLineItem] is definitely on one line (except where BBEdit turns it where there's a space between [AddLineItem and db. > > Here's the cart.tpl [AddLineItem] code: > > [formvariables name=qty_&exact=f] > [hideif [URL][value][/URL]=] > [AddLineItem db=/orgmech_internal/orgmech.db&cart=[cart]&sku=[url][interpret][sku_[index]][/interpret][/url]]quantity=[interpret][qty_[index]][/interpret][/AddLineItem] > [/hideif] > [/formvariables] > > However, now I'm not even getting an error message. Just nothing. This is so frustrating. I'm just going over and over the same code, I'm changing nothing, but getting a different result! ------------------------------------------------------------- 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: Adding more than one item and QTY to cart (John Butler 2000)
  2. Re: Adding more than one item and QTY to cart (Tim Robinson 2000)
  3. Re: Adding more than one item and QTY to cart (Arturo Vargas 2000)
  4. Re: Adding more than one item and QTY to cart (John Butler 2000)
  5. Re: Adding more than one item and QTY to cart (Tim Robinson 2000)
  6. Re: Adding more than one item and QTY to cart (John Butler 2000)
  7. Adding more than one item and QTY to cart (Tim Robinson 2000)
Tim,I suggest breaking the whole thing down to one small step at a time.(but first MAKE SURE the [addlineitem] is all on one line! If you say BBedit is turning it where there's a space between [AddLineItem and db well do you mean because you have soft wrapping on? Turn it off and see if it is now on one line. )How do you break it down? Start over. Make a bone simple template which does nothing. Add *one* thing at a time. Every time you add something, see if it works the way you expect. See if variable values are what you thing they should be. Stick this code:[formvariables] [index],[name],[value]
[/FormVariables]in your pages where you pass variables to see which ones are actually coming in and what their values are.Read the docs on every webcat tag/context/command which you attempt to use to make sure you understand what it does and if you have the syntax right.As you build your templates piecemeal, the moment something doesn't work the way you think it should and you can't figure it out, then post asking for help on that *one* thing that is broken. If it is simple then someone will immediately answer you. But if we don't know what variables you are successfully passing and what their values are, then we can only waste time guessing at the problem...Trying to help-JohnTim Robinson wrote:> I've checked on numerous occasions to see if there's a bracket missing, or a misspelt word, but I can't see it. Also, the [addlineitem] is definitely on one line (except where BBEdit turns it where there's a space between [AddLineItem and db. > > Here's the cart.tpl [addlineitem] code: > > [formvariables name=qty_&exact=f] > [hideif [url][value][/URL]=] > [AddLineItem db=/orgmech_internal/orgmech.db&cart=[cart]&sku=[url][interpret][sku_[index]][/interpret][/url]]quantity=[interpret][qty_[index]][/interpret][/AddLineItem] > [/hideif] > [/formvariables] > > However, now I'm not even getting an error message. Just nothing. This is so frustrating. I'm just going over and over the same code, I'm changing nothing, but getting a different result! ------------------------------------------------------------- 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/ John Butler

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:

[WebDNA] =?windows-1252?Q?Re=3A_=5BWebDNA=5D_Re=3A_=5BWebDNA=5D_Re=3A_=5BWebDNA=5D_=5BWebDNA=5D_Re=3A_?= (2012) RE: Cookies? (1997) bug in [SendMail] (1997) OFF-TOPIC: Stop reloading SRC page from cache ... (2003) [WebDNA] Emailer and Comcast.net (2008) [ShowNext] feature in 2.0 (1997) Protect (1997) [OT] SubserviantChicken.com (2004) Re:quit command on NT (1997) String manipulation in Webcatalog (2001) Setting up WebCatalog with Retail Pro data (1996) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Rumpus/Typhoon modules included in Typhoon ... (1997) Bug alert! (1997) WebCat2 - storing unformatted date data? (1997) WebCatalog Technical Reference (1997) WebCatalog stalls (1998) Search as error page (2002) New syntax feedback for 4.0 (2000)