Re: orderfile headers (was: 2nd Request for help/adviceonvariable pricing)

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34992
interpreted = N
texte = Oops...Steven Jarvis wrote:> John, > > > John Butler wrote: > > > > So say the user comes to a form for the first time and one of the inputs is > > this- > > > > and say at that moment 'header14' has not yet been given a value in that > > orderfile. So then the HTML that is returned to the browser is- > > > > (since in orderfile contexts > > undefined headers act like variables assigned to the null string - same > > behavior as db fields with no value.) > > > > Which means the user sees an input with no predefined value. Perfect since > > this is his 1st visit. > > > > Now say he fills in the form and submits it so now he is on the next page > > where you do error checking. He goofed up something so you instruct him to go > > back and check his form values and submit the form again after he corrects his > > errors. He uses a link which goes back to that page where the form is, and > > now the HTML that is returned to his browser is- > > > > (if he had input yes for the 'whatever' text input-) > > > > > > Okay, just to make sure I understand this, when the customer enters data in > the form and submits it and the form field was styled: > > > > where [Header14] was empty, whatever data he submitted would be placed in > [Header14] of his cart, yes?I'm sorry, I misled you with an error on my part. For the ordefile header [header14] to get a value you would need to use [SetHeader] or (more on the context of what we have been talking) else form input would need to have the name header14. - > > > If that's the case, what if I have a field that is filled by the user > selecting a predefined value from a popup menu, such as: > > > > Do I need to put value=[HeaderN] in the > selection?if you mean that you want the user to have his popup already selected to the option that he chose before coming back to this page, then you would do this kind of thing- > > > * * * > > I tried the above by using the following pages: > > --------- classified0.tpl : welcome page -------------- > > Just has some welcome text plus a form that takes the customer to the next > page: > >
METHOD=GET> > > >
> > --------- classified1.tpl : ad entry page -------------- > > This page has the following at the top: > > > > > =
>
>
> [cart] >
> [orderfile cart=[cart]] > > [/orderfile] > > I'm not passing any formvariables, so none are showing up, but the cart > value is printing, then I get: > > Error: Can't open order file. Ignoring [OrderFile] context > > Do I need to use an ADD context or command in order to get something to the > orderfile and/or shopping cart?The orderfile does not get created in the ShoppingCarts folder until you change the value of one of the headers or lineitems' values. There are numerous ways to change one of those values (like the add command is one of them, yes)------------------------------------------------------------- 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:

    
  1. Re: orderfile headers (was: 2nd Request for help/adviceonvariable pricing) (John Peacock 2000)
  2. Re: orderfile headers (was: 2nd Request for help/adviceonvariable pricing) (John Butler 2000)
  3. Re: orderfile headers (was: 2nd Request for help/adviceonvariable pricing) (John Butler 2000)
  4. Re: orderfile headers (was: 2nd Request for help/adviceonvariable pricing) (John Peacock 2000)
  5. Re: orderfile headers (was: 2nd Request for help/adviceonvariable pricing) (John Butler 2000)
  6. Re: orderfile headers (was: 2nd Request for help/adviceonvariable pricing) (John Butler 2000)
  7. Re: orderfile headers (was: 2nd Request for help/adviceonvariable pricing) (John Peacock 2000)
Oops...Steven Jarvis wrote:> John, > > > John Butler wrote: > > > > So say the user comes to a form for the first time and one of the inputs is > > this- > > > > and say at that moment 'header14' has not yet been given a value in that > > orderfile. So then the HTML that is returned to the browser is- > > > > (since in orderfile contexts > > undefined headers act like variables assigned to the null string - same > > behavior as db fields with no value.) > > > > Which means the user sees an input with no predefined value. Perfect since > > this is his 1st visit. > > > > Now say he fills in the form and submits it so now he is on the next page > > where you do error checking. He goofed up something so you instruct him to go > > back and check his form values and submit the form again after he corrects his > > errors. He uses a link which goes back to that page where the form is, and > > now the HTML that is returned to his browser is- > > > > (if he had input yes for the 'whatever' text input-) > > > > > > Okay, just to make sure I understand this, when the customer enters data in > the form and submits it and the form field was styled: > > > > where [Header14] was empty, whatever data he submitted would be placed in > [Header14] of his cart, yes?I'm sorry, I misled you with an error on my part. For the ordefile header [header14] to get a value you would need to use [setheader] or (more on the context of what we have been talking) else form input would need to have the name header14. - > > > If that's the case, what if I have a field that is filled by the user > selecting a predefined value from a popup menu, such as: > > > > Do I need to put value=[HeaderN] in the > selection?if you mean that you want the user to have his popup already selected to the option that he chose before coming back to this page, then you would do this kind of thing- > > > * * * > > I tried the above by using the following pages: > > --------- classified0.tpl : welcome page -------------- > > Just has some welcome text plus a form that takes the customer to the next > page: > >
[random][random][random] > METHOD=GET> > [cart]> > >
> > --------- classified1.tpl : ad entry page -------------- > > This page has the following at the top: > > > > > =
>
>
> [cart] >
> [orderfile cart=[cart]] > > [/orderfile] > > I'm not passing any formvariables, so none are showing up, but the cart > value is printing, then I get: > > Error: Can't open order file. Ignoring [orderfile] context > > Do I need to use an ADD context or command in order to get something to the > orderfile and/or shopping cart?The orderfile does not get created in the ShoppingCarts folder until you change the value of one of the headers or lineitems' values. There are numerous ways to change one of those values (like the add command is one of them, yes)------------------------------------------------------------- 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

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:

searchable list archive (1997) [isfile] ? (1997) WebCat cannot handle compatible search parameters? (1997) Authorize.net and AIM (2003) Protect (1997) [searchString] (1997) extending webcatalog (1997) No luck with taxes (1997) information on Vieworders.tpl (1998) Pre-flight public flag (1997) Search design (1997) [WebDNA] listwords words=GastlyAmount (2009) [/application] error? (1997) Add message to Order (1997) Frames and WebCat (1997) Running _every_ page through WebCat ? (1997) [WebDNA] Middle Question (2015) WebCat Code and WebStar Search? (2000) can WC render sites out? (1997) Resume Catalog ? (1997)