[ic] Re: address_book formating

Philip Alves interchange-users@icdevgroup.org
Sat Oct 5 17:15:01 2002


> Philip Alves writes:
>
> >> Hello all.  I've searched the dcs and the mailing list for some
insight,
> > and
> >> haven't gotten what I need.  In the address_book column of the userdb
> > table,
> >> what is the proper format for adding extra addresses manually in the
> >> userdb.txt file?  This is what I get in the admin UI after I added a
> > couple
> >> of addresses through ship_addresses.html:
> >>
> >> {'Store144' => {'state' => "ON",'country' => "CA",'address1' => "174
> > Street
> >> Ave.",'address2' => "",'mv_data_fields' => "username company fname
lname
> >> address1 address2 city state zip country phone_day",'city' =>
> >> "Toronto",'phone_day' => "416-555-5555",'lname' => "Jones",'fname' =>
> >> "Tom",'zip' => "H0H0H0",'company' => "Store 144",},'Store350' =>
{'state'
> > =>
> >> "ON",'country' => "CA",'address1' => "174 Street Ave.",'address2' =>
> >> "",'mv_data_fields' => "username company fname lname address1 address2
> > city
> >> state zip country phone_day",'city' => "Toronto",'lname' =>
> >> "Jones",'phone_day' => "416-555-5555",'fname' => "Steve",'zip' =>
> >> "H0H0H0",'company' => "Store 350",},'Store2' => {'state' =>
"ON",'country'
> >> => "CA",'address1' => "174 Street Ave.",'address2' =>
"",'mv_data_fields'
> > =>
> >> "username company fname lname address1 address2 city state zip country
> >> phone_day",'city' => "Toronto",'lname' => "Jones",'phone_day' =>
> >> "416-555-5555",'fname' => "Chuck",'zip' => "H0H0H0",'company' => "Store
> >> 2",},}
> >>
> >
>
> Hello, Phil !
>
> Your emails came all through to the list, but obviously no one bothered
> to answer this question. It is certainly possible to setup a custom
> IC page to edit these shipping addresses, but you need some Perl and
> IC knowledge to get this done. If this is out of your scope, you
> may consider professional help from one of the consultants roaming
> around here.
>
> Bye
>       Racke
>
> --

Racke!  Thanks for getting back to me!!!  Actually, I don't even need
anything that complex.  All I need to do is place the different shipping
addresses into a database, and then call them with a select box.  I know
this can be done right in the userdb, but I haven't been able to find
anything about how to properly format that information in userdb.txt.  I
need to put all the userdb information into userdb.txt so that the customer
won't have to.  The customer will not have the ability to create or change
any aspect of his/her account, except for password.

There must be a way to place the multiple shipping address information into
the userdb.txt (or another txt file) file without having to resort to
ship_addresses.html or the Admin UI...I hope.  I've tried creating a
shipto.txt file, but again with no luck.  Any thoughts?

Again, thanks for giving a guy hope to go on!!!

Phil