Re: Anyone using Verisign's Payflow Link for payment processing?
This WebDNA talk-list message is from
2000
It keeps the original formatting.
numero = 35858
interpreted = N
texte = > Okay, I think I understand now. I thought that [cart] was like [ipaddress]> in that you couldn't set it anything.cart passes around just like any other variable. And it displays just like any otherformvariable -([cart] is replaced with the value for 'cart' that was passed in)with the exception being that if [cart] is on a page, and *no value* is being passedin, then [cart] is replaced with a new unique string.>>> I think what I'm really asking is whether I can access the Shopping Cart> that has the same number/name as the value of [cart] (before going to> versign) and/or [user1] (on return from Verisign)?yes. You can access the data in the ordefile named after a cart # anytime you want.(assuming you have things set up to work normally). This is precisely how storebuilderand other standard webcat stores work... The orderfile is a text file with 2 minidatabases inside it... the headers (single record db) and the lineitems (as manyrecords as there are items in the cart). The orderfile gets created the first timesomething in the orderfile needs to get edited (edited from nothing to something, orfrom something to something else). Like when a user adds an item to his cart... thenan orderfile named after his cart number gets created in the shoippingcarts folder andthe lineitem is added. Or if he inputs his address via a form field named after theheader 'address1'... The way you access the orderfile data is simply to stick the name of the header youwant within square brackets on your page (like [address1]), or else a lineitem value(like [price]) within a [lineitems] loop. But they have to be within an orderfilecontext. You can stick an explicit [orderfile]...[/orderfile] context wherever youwant, but you do not need to do that when you are already inside an implicit[orderfile] context (which you are when viewing a page that used one of the shoppingcommands in getting there). Like the page viewed thru the following URL would bewrapped inside an implicit orderfile context-..somepage.tpl?command=showcart&var3=value9....and a page loaded after a form submit that had an equivelent hidden field would alsofire the implicit orderfile context-http://betadoc.smithmicro.com/OrderFileFormat.htmlIf this explains things to the point that you now get it, could you please answer thenext time somone asks a question that needs to get answered with this understanding? Ihave written this nearly-exact-same post at least 5 times already.... (I swear someoneshould just put it up on their private site and then we can just post the URL the nexttime... ;-)HTH-John> If I stop passing the> initial [cart] value from page to page, what happens to that cart? Is it> still somewhere that I can access the information inside it? If I can get to> it, how do I do that? I'm getting the suspicion that this is easier than> I'm making it!>> Thanks,>> Steve-------------------------------------------------------------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:
> Okay, I think I understand now. I thought that [cart] was like [ipaddress]> in that you couldn't set it anything.cart passes around just like any other variable. And it displays just like any otherformvariable -([cart] is replaced with the value for 'cart' that was passed in)with the exception being that if [cart] is on a page, and *no value* is being passedin, then [cart] is replaced with a new unique string.>>> I think what I'm really asking is whether I can access the Shopping Cart> that has the same number/name as the value of [cart] (before going to> versign) and/or [user1] (on return from Verisign)?yes. You can access the data in the ordefile named after a cart # anytime you want.(assuming you have things set up to work normally). This is precisely how storebuilderand other standard webcat stores work... The orderfile is a text file with 2 minidatabases inside it... the headers (single record db) and the lineitems (as manyrecords as there are items in the cart). The orderfile gets created the first timesomething in the orderfile needs to get edited (edited from nothing to something, orfrom something to something else). Like when a user adds an item to his cart... thenan orderfile named after his cart number gets created in the shoippingcarts folder andthe lineitem is added. Or if he inputs his address via a form field named after theheader 'address1'... The way you access the orderfile data is simply to stick the name of the header youwant within square brackets on your page (like [address1]), or else a lineitem value(like [price]) within a [lineitems] loop. But they have to be within an orderfilecontext. You can stick an explicit [orderfile]...[/orderfile] context wherever youwant, but you do not need to do that when you are already inside an implicit[orderfile] context (which you are when viewing a page that used one of the shoppingcommands in getting there). Like the page viewed thru the following URL would bewrapped inside an implicit orderfile context-..somepage.tpl?command=showcart&var3=value9....and a page loaded after a form submit that had an equivelent hidden field would alsofire the implicit orderfile context-http://betadoc.smithmicro.com/OrderFileFormat.htmlIf this explains things to the point that you now get it, could you please answer thenext time somone asks a question that needs to get answered with this understanding? Ihave written this nearly-exact-same post at least 5 times already.... (I swear someoneshould just put it up on their private site and then we can just post the URL the nexttime... ;-)HTH-John> If I stop passing the> initial [cart] value from page to page, what happens to that cart? Is it> still somewhere that I can access the information inside it? If I can get to> it, how do I do that? I'm getting the suspicion that this is easier than> I'm making it!>> Thanks,>> Steve-------------------------------------------------------------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 Butler
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...