I want to display some info from the Customer Profile (Customer Number, Contact Number) whenever the shopping cart view displays. I can see these fields in 'People' but obviously they are -extended- fields... when I run this:
$my_user = user_load( $user->uid );
...I get the field names for the data I want, but not the values.
I -thought- I could do this...
$order = commerce_cart_order_load($user->uid);
...and then somehow get to the customer_profile like so:
commerce_customer_profile_load ($profile_id);
...but I have no idea how to connect the $order or the global $user->uid with the $profile_id
How does one do this?
Again, I just need to retrieve the string values of Customer Number and Contact Number.
TIA,
---JC