Page 1 of 1

How to extract userinfo?

Posted: Mon Nov 08, 2010 12:04 am
by MrConn
Hi,
How can I extract the info of a user and show to him on a page?
IE:
This is the information we have about you at the monment:
Name: John Doe
Phone: 99999999
Zip: 99999
City: SomeCity
Country: Somewhere

I dont want to extract the complete address, as I want this information (along with something more) to be shown in a module...

Re: How to extract userinfo?

Posted: Mon Nov 08, 2010 2:56 am
by billyggla
Can't they already see that in the my account area?

Re: How to extract userinfo?

Posted: Mon Nov 08, 2010 3:45 am
by MrConn
Yes, they can... But I need to show it somewhere else also, and I'm not able to "copy" the info from my account... :-/

Re: How to extract userinfo?

Posted: Mon Nov 08, 2010 5:12 am
by billyggla
You could query the database for the information.

Re: How to extract userinfo?

Posted: Mon Nov 08, 2010 10:27 am
by Qphoria
you can just query the customer class as well

Take a look at the API class list here:
http://forum.opencart.com/viewtopic.php ... 48&start=0

Check out the customer section. You can call those form anywhere, even directly from the tpl file

Re: How to extract userinfo?

Posted: Mon Nov 08, 2010 4:38 pm
by MrConn
Thank you! I've been looking for this list! :-D