Re: question: writing files textb in webmerch
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 12792
interpreted = N
texte = >I having a hard time understanding how webmerch copies to the webdelivery>folder, a file that href links to the serial number file, which has been>dynamically [append]ed to the [cart].tmpl file which I have [writefile]ed>to the stockroom folder.>>As it is now, here is the order I have things done in the thankyou.tmpl:>>1. [Writefile] [cart].tmpl to stockroom - (says) Thanks for your order>2. [Appendfile] [cart].tmpl to stockroom - (says) the serial number>3. [Writefile] [cart].tmpl to webdelivery- (says) Please wait while your cc>clears.>>How can I copy 1 and 2 over to webdelivery folder when the cc clears and>have it overwrite 3?When we originally designed the StockRoom concept, we didn't expect the files in the stockroom to change very often. If you were selling pictures or software, there would just be the one copy that gets sent to the WebDelivery folder.So the simplest answer here is for you to pre-create files in your stockroom that are each named the same as the serial number you are selling. So if there are 1000 serial numbers, then there are 1000 files in the stockroom.Or, if you want to do what you described in 1,2,3 above, you can store the text [cart].tmpl into textA, and change your WebMerchant preference so that it uses textA for the WebDelivery file name. The preference is a popup at the bottom of WebMerchant's prefs dialog.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:
>I having a hard time understanding how webmerch copies to the webdelivery>folder, a file that href links to the serial number file, which has been>dynamically
[append]ed to the
[cart].tmpl file which I have
[writefile]ed>to the stockroom folder.>>As it is now, here is the order I have things done in the thankyou.tmpl:>>1.
[writefile] [cart].tmpl to stockroom - (says) Thanks for your order>2.
[appendfile] [cart].tmpl to stockroom - (says) the serial number>3.
[writefile] [cart].tmpl to webdelivery- (says) Please wait while your cc>clears.>>How can I copy 1 and 2 over to webdelivery folder when the cc clears and>have it overwrite 3?When we originally designed the StockRoom concept, we didn't expect the files in the stockroom to change very often. If you were selling pictures or software, there would just be the one copy that gets sent to the WebDelivery folder.So the simplest answer here is for you to pre-create files in your stockroom that are each named the same as the serial number you are selling. So if there are 1000 serial numbers, then there are 1000 files in the stockroom.Or, if you want to do what you described in 1,2,3 above, you can store the text
[cart].tmpl into textA, and change your WebMerchant preference so that it uses textA for the WebDelivery file name. The preference is a popup at the bottom of WebMerchant's prefs dialog.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:
logic help (1998)
Search design (1997)
Separate SSL Server (1997)
[isfolder] and [filename] (1997)
Sitebuilder (2004)
[WebDNA] XML Help (2009)
AuthorizeNet Declines (2005)
Pithy questions on webcommerce & siteedit (1997)
Showif, Hideif reverse logic ? (1997)
Problem 2: Prefs file... (1997)
2.0 Info (1997)
Storefornts (1997)
WebDNA 6 (2004)
migrating from MacOS to unix (2000)
Encrypt (1999)
[include] affect on filepaths for links? (1997)
AAgghh!! Help, please. SSL strikes again. (1997)
problems with 2 tags shakur (1997)
Multiple Users.db Possible? (1997)
Running 2 two WebCatalog.acgi's (1996)