I recognize that a few questions have been asked in regards to getting additional info into the print view, but I am struggling to figure out how specifically to get the customer name to show up in the invoice. I am not a drupal guru and could really use some handholding on how to do this. Frankly, I'm surprised this is turning out to be so hard! The shipping and billing info doesn't cut it for me because our commerce site is all pickup-and-pay-in-person so we don't use billing and shipping addresses which would have a name. Any help would be greatly appreciated.

Comments

Maestro232 created an issue. See original summary.

aramboyajyan’s picture

Assigned: Unassigned » aramboyajyan

Sorry for keeping you wait for so long; I'll get back to this these days. I'm assigning the issue to myself.

fibie’s picture

I achieved this using capfive's method here: https://www.drupal.org/node/1396814#comment-10136836

In my case I have a billing and shipping address but wanted to include additional information from the user's profile

If it will work for you to pull in the customer name from their user profile you can do this by adding an (Order) Commerce Order: Owner relationship to the commerce line item view. Then add the fields you want and set them to do not display. I already had additional payment information in the footer area of the view so added the additional profile information to the header area as a Global Text area. you need to check the box for Use replacement tokens from the first row and add the replacement patterns for each of your fields. you can add any HTML layout you want as well.

If placed in the header of the view they should nicely appear above the order information.

Hope that helps.