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:

DATES (2004) WebCat and image maps (1997) [shownext max=?] armed (1997) Images (2000) WebCat2b12--[searchstring] bug (1997) Server crash (1997) Sorting by date (1997) empty shopping cart message (1997) Developing for Phones/PDAs (2004) Date Calulation (1997) Search the same field twice? (2004) NT version (1997) emailer setup (1997) trouble updating records in database (1998) [Sum] function? (1997) RE: [WebDNA] ubuntu can't append db (2019) WebCat2 - [SendNews] (1997) Help! WebCat2 bug (1997) WebCatalog NT beta 18 problem (1997) Help! WebCat2 bug (1997)