Re: Problem with textA

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34701
interpreted = N
texte = You need to wrap the text you are storing in [texta] with [URL][/URL] so that the entire text is stored. Imagine that you are adding a line to the cart like this: template.tpl?command=add&db=my.db&sku=[sku]&texta=[title]and that the [title] field contains Field & Stream in the my.db. The first pass WebCat does is to replace all database fields with their contents. So the above becomes: template.tpl?command=add&db=my.db&sku=12345&texta=Field & StreamWhen this is passed to the next page by the browser, the form variable textA contains Field and the rest of the line is lost. If you wrap [title] with [URL], then the line would look like this: template.tpl?command=add&db=my.db&sku=12345&texta=Field %26 Streamwhich will work fine. The & character is special within URL's and if you need to pass it, you must hide it by using [URL].HTHJohn Peacockmazher malik wrote: > > Hi there > > I am using [textA] in invoivc.tpl for product titles > and in AdministerwebMerchant Storefront the title is > truncated after the & sign whenever used in the > title. I saw the completedorders folder in webmerchant > and over there the title is complete. I am using > following tag in invoice.tpl > > [setlineitem > cart=[cart]&index=[lineindex]]quantity=[interpret][quantity[lineindex]][/interpret]&textA=[url][lookup > db=main18.db&lookinfield=sku&value=[url][sku][/url]&returnfield=title][/url][/setlineitem][/lineitems] > > Thanks > malik > > __________________________________________________ > Do You Yahoo!? > Get Yahoo! Mail – Free email you can access from anywhere! > http://mail.yahoo.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/------------------------------------------------------------- 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: Problem with textA (John Peacock 2000)
  2. Problem with textA (mazher malik 2000)
You need to wrap the text you are storing in [texta] with [url][/URL] so that the entire text is stored. Imagine that you are adding a line to the cart like this: template.tpl?command=add&db=my.db&sku=[sku]&texta=[title]and that the [title] field contains Field & Stream in the my.db. The first pass WebCat does is to replace all database fields with their contents. So the above becomes: template.tpl?command=add&db=my.db&sku=12345&texta=Field & StreamWhen this is passed to the next page by the browser, the form variable textA contains Field and the rest of the line is lost. If you wrap [title] with [url], then the line would look like this: template.tpl?command=add&db=my.db&sku=12345&texta=Field %26 Streamwhich will work fine. The & character is special within URL's and if you need to pass it, you must hide it by using [url].HTHJohn Peacockmazher malik wrote: > > Hi there > > I am using [textA] in invoivc.tpl for product titles > and in AdministerwebMerchant Storefront the title is > truncated after the & sign whenever used in the > title. I saw the completedorders folder in webmerchant > and over there the title is complete. I am using > following tag in invoice.tpl > > [setlineitem > cart=[cart]&index=[lineindex]]quantity=[interpret][quantity[lineindex]][/interpret]&textA=[url][lookup > db=main18.db&lookinfield=sku&value=[url][sku][/url]&returnfield=title][/url][/setlineitem][/lineitems] > > Thanks > malik > > __________________________________________________ > Do You Yahoo!? > Get Yahoo! Mail – Free email you can access from anywhere! > http://mail.yahoo.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/------------------------------------------------------------- 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 Peacock

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:

Beta version-Mac? (was Emailer update for Mac?) (1998) Plugin or CGI or both (1997) Summing fields (1997) WCS Newbie question (1997) Upcoming 2.1 Release and PCS Committment (1997) Adding a product from another site (1997) Credit Card Verification.... (1998) MasterCounter and capitalization (1997) Hiding HTML and breaking the page (1997) Problem 2 of 2 (was: Shipping Confusion) (2000) BBEdit and WebCatalog 2.0? (1997) Country & Ship-to address & other fields ? (1997) So what ya working on? (or have you completed?) (2004) WebCat2 Append problem (B14Macacgi) (1997) autosensing lanague selection (1997) PSC recommends what date format yr 2000??? (1997) assigning a id no. (2000) Code shows all, but should not (2003) WebCat for Site Search? (1997) Database of Tax Rates? (1997)