Re: WebDelivery Text

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 21396
interpreted = N
texte = >In the webdelivery.inc file, i'm trying to tell it to include a description >of the item the >user has purchased. Right now it just displays the SKU and when i try to >add a field >in for description, it physcally writes out [description].The reason is that you are in the context of [LineItems], which can only display information defined in the lineitems of the order file. Since [description] is not a field in the order file, it cannot be displayed as simply as that.If you're using the beta of WebMerchant 3.0, you can use WebDNA to [lookup] any info from a database you like. So I'd use something like[lookup db=../products.db&lookInField=SKU&value=[sku]&returnField=description]Older versions of WebMerchant would require that you store the description into one of the textA-E fields of the lineitems at the time you Add it to the cart.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. Re: WebDelivery Text (PCS Technical Support 1998)
  2. WebDelivery Text (Pete at Work 1998)
>In the webdelivery.inc file, i'm trying to tell it to include a description >of the item the >user has purchased. Right now it just displays the SKU and when i try to >add a field >in for description, it physcally writes out [description].The reason is that you are in the context of [lineitems], which can only display information defined in the lineitems of the order file. Since [description] is not a field in the order file, it cannot be displayed as simply as that.If you're using the beta of WebMerchant 3.0, you can use WebDNA to [lookup] any info from a database you like. So I'd use something like[lookup db=../products.db&lookInField=SKU&value=[sku]&returnField=description]Older versions of WebMerchant would require that you store the description into one of the textA-E fields of the lineitems at the time you Add it to the cart.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/ PCS Technical Support

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:

Another question (1997) Deadlock (1999) [OT] SSL (2003) WebCat & WebTen (1997) problem with [Format Days_To_Date] (2000) Webcat2, WebCommerce, Mod 10 etc. (1997) A question on sub-categories (1997) WebCat editing, SiteGuard & SiteEdit (1997) Summing fields (1997) IPTC to Image (2004) [WebDNA] Script choking on POP download (2010) Emailer or [sendmail] questions ... (1998) Unique SKU Numbers (2000) RE: New WebCatalog Version !!! (1997) Re:listfiles-looking for slick solution (1997) re: [addlineitem] working almost (1997) Different Tax levels (1998) newbie Q: [cart] documentation (1999) [REPLACE] inside [FOUNDITEMS] (1998) WebCat2: Items xx to xx shown, etc. (1997)