Re: Purchase *file=* Solved (and *SCOTT* notice pls - Feature
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 53365
interpreted = N
texte = Along with what John stated, I had another problem relatingto a site transfer (was actually editing (via old FTP)old temps and checking the results on the "new" temps :-)However, when the FTP thing was fixed, I still ran into whatJohn was talking about. I solved this with an edited Alainsnippet that I found in the docs (below). (*Note - I wasn't sureif [purchase] performed *only* the action of [movefile].. other-wise I would have used [movefile]*)[!]*********START purchase cart (put in thankyou.tpl)********[/!][!] alains TCP connect [/!][!] ## Set the CR/LF combination for use further down --[/!][text]crlf=[unurl]%0D%0A[/unurl][/text][!] ## split the URL ready for connect --[/!][!] *****Edit below to your domain and purchase template****** [/!][text]the_url=www.yourdomain.com/yourpurchasetemp.tpl?thecart=[cart][/text][text]host=[middle startafter=&endbefore=/][the_url][/middle][/text][if "[the_url]"^"/"][then][text]path=[middle startafter=/&endbefore=][the_url][/middle][/text][/then][else][text]path=[/text][/else][/if][!] ## Do the actual connection with split paths --[/!][tcpconnect host=[host]&port=80][tcpsend skipheader=T][!][/!]GET /[path] HTTP/1.0[crlf][!][/!]Referer: http:/[thisURL][crlf][!][/!]Host: [host][crlf][!][/!][crlf][!][/!][/tcpsend][/tcpconnect][!]****************END purchase cart********************[/!]The "Purchase template" only has the following in the body:--[hideif __[raw][thecart][raw]_^_[thecart]_][purchase cart=[thecart]]
Cart: [thecart] purchased[/hideif]--This is nice because because you can place the tcpconnectcode in your thankyou page no matter where you are in sub-directoriesand then have the tcpsend results included in your thankyou page...in this case: "Cart: 123412341234 purchased". (its also very portable)Finally,I would like to see this become a standard feature if [purchase] is differentthan [movefile] AND see the cart tools better fitted towards site designs usingcommen sense directory heirarchy formats.Developers, how many times have you worked for a clientthat has a laborinth of templates in one directory?. These templates needfolder heirarchy for clarity! WebDNA should be able to do the following:1.) have [purchase] work like [movefile] in the way that you can specifywhere the "orders" directory is.. can default to current state.(null if [purchase] only performs a movefile since one can use movefile instead)2.) Have the ability to designate a Formulas.db from any of the cart tools.(ie [addlineitem file=../ShoppingCarts/[cart]&db=products.db&formulapath=../]I say "any of the cart tools" because there are aspects in the orderfile that are usedby other contexts.. shipping,tax etc..Thanks for listening.DonovanDonovan Brooke wrote:> Hello,> > I am in a sub-directory of where the "shoppingcarts" and "orders" > folders are.> > ie:> > index.html> [orders]> [shoppingcarts]> [dir]> thepage.html> > > In thepage.html I am abble to do all the addlineitem, setlineitem> etc. with the "file=../shoppingcarts/[cart]" call. However,> when I do a "purchase file=../shoppingcarts/[cart]" the file doesn't> end up in the "orders" directory. It is not in the Pending/completed or> problems directories either.> > Any ideas on where it goes because it> *disappears* from the ShoppingCarts directory.?> > Donovan> > -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design WWW Developer / Consultant <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 email:> dbrooke(AT)euca.us Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
|
- Re: Purchase *file=* Solved (and *SCOTT* notice pls - Feature ( Donovan Brooke 2003)
|
Along with what John stated, I had another problem relatingto a site transfer (was actually editing (via old FTP)old temps and checking the results on the "new" temps :-)However, when the FTP thing was fixed, I still ran into whatJohn was talking about. I solved this with an edited Alainsnippet that I found in the docs (below). (*Note - I wasn't sureif [purchase] performed *only* the action of [movefile].. other-wise I would have used [movefile]*)[!]*********START purchase cart (put in thankyou.tpl)********[/!][!] alains TCP connect [/!][!] ## Set the CR/LF combination for use further down --[/!][text]crlf=[unurl]%0D%0A[/unurl][/text][!] ## split the URL ready for connect --[/!][!] *****Edit below to your domain and purchase template****** [/!][text]the_url=www.yourdomain.com/yourpurchasetemp.tpl?thecart=[cart][/text][text]host=[middle startafter=&endbefore=/][the_url][/middle][/text][if "[the_url]"^"/"][then][text]path=[middle startafter=/&endbefore=][the_url][/middle][/text][/then][else][text]path=[/text][/else][/if][!] ## Do the actual connection with split paths --[/!][tcpconnect host=[host]&port=80][tcpsend skipheader=T][!][/!]GET /[path] HTTP/1.0[crlf][!][/!]Referer: http:/[thisurl][crlf][!][/!]Host: [host][crlf][!][/!][crlf][!][/!][/tcpsend][/tcpconnect][!]****************END purchase cart********************[/!]The "Purchase template" only has the following in the body:--[hideif __[raw][thecart][raw]_^_[thecart]_][purchase cart=[thecart]]Cart: [thecart] purchased[/hideif]--This is nice because because you can place the tcpconnectcode in your thankyou page no matter where you are in sub-directoriesand then have the tcpsend results included in your thankyou page...in this case: "Cart: 123412341234 purchased". (its also very portable)Finally,I would like to see this become a standard feature if [purchase] is differentthan [movefile] AND see the cart tools better fitted towards site designs usingcommen sense directory heirarchy formats.Developers, how many times have you worked for a clientthat has a laborinth of templates in one directory?. These templates needfolder heirarchy for clarity! WebDNA should be able to do the following:1.) have [purchase] work like [movefile] in the way that you can specifywhere the "orders" directory is.. can default to current state.(null if [purchase] only performs a movefile since one can use movefile instead)2.) Have the ability to designate a formulas.db from any of the cart tools.(ie [addlineitem file=../ShoppingCarts/[cart]&db=products.db&formulapath=../]I say "any of the cart tools" because there are aspects in the orderfile that are usedby other contexts.. shipping,tax etc..Thanks for listening.DonovanDonovan Brooke wrote:> Hello,> > I am in a sub-directory of where the "shoppingcarts" and "orders" > folders are.> > ie:> > index.html> [orders]> [shoppingcarts]> [dir]> thepage.html> > > In thepage.html I am abble to do all the addlineitem, setlineitem> etc. with the "file=../shoppingcarts/[cart]" call. However,> when I do a "purchase file=../shoppingcarts/[cart]" the file doesn't> end up in the "orders" directory. It is not in the Pending/completed or> problems directories either.> > Any ideas on where it goes because it> *disappears* from the ShoppingCarts directory.?> > Donovan> > -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design WWW Developer / Consultant <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 email:> dbrooke(AT)euca.us Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------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://webdna.smithmicro.com/
Donovan Brooke
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:
Missing contexts on NT (1997)
SKU lookup (1997)
Erotic Sites (1997)
Database field limit? (1998)
Just Testing (1997)
Beta 18 (1997)
Re:2nd WebCatalog2 Feature Request (1996)
Text data with spaces in them... (1997)
Auto Wrap Text in (2004)
A little help on e-mail (HELP!!! :-) ) (1998)
[SHOWIF]s and empty arguments (1997)
[WebDNA] Bug reporting (2009)
Re[2]: running WebCatalog under Apache on NT? (2000)
Verifying both name and password (was: New Problem) (1997)
help with writefile (1998)
Max Record length restated as maybe bug (1997)
pc (1997)
Concatenating Form Variables (1998)
Add to Cart & List of Products (1997)
Keyword search (2004)