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 answeryou. 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:
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 answeryou. 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:
turning every 5th line red (1999)
searching for items that begin with a number (2004)
my price won't move (1997)
Displaying text and populating form fields (2005)
Execute Applescript (1997)
OT - Dig Sigs (2004)
[WebDNA] [BULK] 7.x and 6.x on same server (2012)
Field name-subcategory (1997)
Emailer Question (1998)
ups quickcost [repost] (1999)
Problems appending to database (1997)
Spiders and Bots (2000)
WebCatalog 2.0 b 15 mac (1997)
[include] and not found (2005)
[WebDNA] How to create a MD5 hash & decrypt it (2011)
Location of Browser Info.txt file (1997)
[WebDNA] Problem with Sendmail (2012)
SendMail question (2004)
Graphing Modules (2004)
[WebDNA] a major shift in strategy? (2008)