Post by MrConn » Mon Nov 08, 2010 12:04 am

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...

Image
Nemmelig.no - Billige Gadgets!


Active Member

Posts

Joined
Tue Mar 23, 2010 8:08 am

Post by billyggla » Mon Nov 08, 2010 2:56 am

Can't they already see that in the my account area?

Active Member

Posts

Joined
Mon Sep 20, 2010 7:05 am

Post by MrConn » Mon Nov 08, 2010 3:45 am

Yes, they can... But I need to show it somewhere else also, and I'm not able to "copy" the info from my account... :-/

Image
Nemmelig.no - Billige Gadgets!


Active Member

Posts

Joined
Tue Mar 23, 2010 8:08 am

Post by billyggla » Mon Nov 08, 2010 5:12 am

You could query the database for the information.

Active Member

Posts

Joined
Mon Sep 20, 2010 7:05 am

Post by Qphoria » Mon Nov 08, 2010 10:27 am

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

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by MrConn » Mon Nov 08, 2010 4:38 pm

Thank you! I've been looking for this list! :-D

Image
Nemmelig.no - Billige Gadgets!


Active Member

Posts

Joined
Tue Mar 23, 2010 8:08 am
Who is online

Users browsing this forum: No registered users and 152 guests