Re: Multiple serial numbers
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 12677
interpreted = N
texte = >This all works fine if the customer buys one serial number. I am having>difficulty figuring out how to have more than one serial number be dished>out at the same time and having the same serial numbers be bought.>>Perhaps something with [sku] and [quantity] can be done, but I cannot>figure how to do it.I'm not sure of exactly how your products are set up, so this is a big guess. You can use the [loop] context to do a search+replace as many times as the [quantity], so you can do more than one serial number.(not complete, but this is the idea)[lineitems] [loop start=1&end=[quantity]] [search for 1 unused serail#] [foundItems] [appendfile WebMerchant/WebDelivery/[cart].html]...here is a serial: [serial][/appendfile] [/founditems] [/search] [/loop][/lineitems]Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
>This all works fine if the customer buys one serial number. I am having>difficulty figuring out how to have more than one serial number be dished>out at the same time and having the same serial numbers be bought.>>Perhaps something with [sku] and [quantity] can be done, but I cannot>figure how to do it.I'm not sure of exactly how your products are set up, so this is a big guess. You can use the
[loop] context to do a search+replace as many times as the [quantity], so you can do more than one serial number.(not complete, but this is the idea)
[lineitems] [loop start=1&end=[quantity]] [search for 1 unused serail#]
[founditems] [appendfile WebMerchant/WebDelivery/
[cart].html]...here is a serial: [serial][/appendfile] [/founditems] [/search] [/loop][/lineitems]Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Grant Hulbert
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:
Where is f2? (1997)
Serving images from databases (1998)
Where is eudora plugin? (1998)
RAM variables (1997)
NT version and O'reily's WebSite (1997)
using cookies to prevent access (2000)
Grouping fields help (2004)
[WebDNA] WebDNA and PHP cohabitating? (2009)
Using Currencies other than Dollars (1997)
Running 2 two WebCatalog.acgi's (1996)
4.5 Upgrade (2003)
More on the email templates (1997)
Emailer (1997)
Setting up shop (1997)
Hiding HTML and page breaks (1997)
[SearchString] problem with [search] context (1997)
WebCatalog and barcodes (2000)
Error Lob.db records error message not name (1997)
Quit revisited (1997)
Crazy FROM Email Address with Orders, FIXED! (2004)