Pulling 'My order history' into a block, view or panel

Posts: 5
Joined: 07/04/2008

Hi There -

Would like to display the 'My order history' section that's currently on the profile in a panel on a dashboard and eventually in a service.

Unfortunately, I couldn't figure out how to make it into a view to bring it into a block or a pane in a panel. Is there a more elegant way to do this than digging around in the module and tables and recreating the database calls?

(I'm also needing to do this for buddylist management. So if someone knows how to do that too, I'd be grateful.)

The path is currently '/user/$uid/orders'

Thanks!

Posts: 61
Joined: 05/05/2008
Bug Finder

This should do it:

- Create a new block
- Set input format to PHP
- Use this:

<?php
global $user;
print
uc_order_history($user->uid);
?>

Posts: 5
Joined: 07/04/2008

Thanks!

Hope something terrific happens to you today!