rfay: i did that but the customer wants the emailadres on the order page which is kind of useful ;) In the end i added the a field email address to the customer profile display using display suite!
Hi,
I want to achieve the same using commerce_email and anonymous users I would very much like to add the email to the orderpage like:
admin/commerce/orders/[nr]/view
Comments
try something like global
try something like
global $user;
$user_info = user_load($user->kid);
//then to get the user mail go for something like this
$user_info->mail;
i wouldn't touch the module itself but i would create a small block next to it that contains the code above. and fix the look via CSS.
hope this helps
Orders admin page is a view - just add the email
Just edit the orders page view and add "User: E-mail" to the view.
rfay: i did that but the
rfay: i did that but the customer wants the emailadres on the order page which is kind of useful ;) In the end i added the a field email address to the customer profile display using display suite!
[edit]
The field code:
<?php
$order = commerce_order_load(arg(3));
$customer_user= user_load($order->uid);
echo $customer_user->mail;
?>
Anonymous users and commerce_email module email to orderpage
Hi,
I want to achieve the same using commerce_email and anonymous users I would very much like to add the email to the orderpage like:
admin/commerce/orders/[nr]/view
How do I achieve this please?
Edit: found http://www.drupalcommerce.org/discussions/2370/additional-information-or...
Greetings, Martijn