[ic] &and + require in profile.order, how ?

Kevin Walsh kevin at cursor.biz
Thu Apr 7 00:48:20 EDT 2005


ns [linux at post10.tele.dk] wrote:
> I am missing (some) understanding of how profile.order and [error ... ]
> is working together, and it didn't help looking in the mail archives.
> 
> mainly I have two fields on my checkout page 'fname' & 'lname'  (first &
> last name) in etc/profile.order I have something like
> 
> __NAME__                            order_profile
> fname=required Firstname
> lname=required Lastname
> address1=required
> city=required
> zip=required
> email=required
> phone_day=required
> &fatal=yes
> __END__
> 
> and the using in checkout.html
> [error name=fname std_label="Name" required=1] [value fname]
> [error name=lname std_label="Name" required=1] [value lname]
> 
> I get something like
> 
> Both values are entered:
> Name  ..a firstname..
> Name ..a lastname..
> 
> No first name are entered:
> Name (Firstname)     (written in red)
> Name .. a lastname ..
> 
> OK, what I really do want is
> Name ..a firstname.. ... a lastname..
> 
> and did expect to write something like in profile.order
> &and fname=required,lname=required Part of name is missing
> 
> and in checkout
> [error name=????? std_label="Name" required=1] [value fname] [value lname]
> 
> I have tried quite many different combinations, but nothing works,
> please tell me one way this can be done.....
> 
You probably want something like the following:

     [error name=fname std_label="Name" required=1]
     <input tag for the fname form field>
     <input tag for the lname form field>

And then the following in your profile:

    &and fname=required, lname=required Anonymity is overrated

Remember to restart/reconfig after changing the profiles.order file.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin at cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/



More information about the interchange-users mailing list