how to add customer phone number in invoice

Min Lu asked on February 13, 2015 14:55

Hi, Guys

I wanna add customer phone number in my invoice. In e-commerce--orders--billing, when I click "edit", I can view the customer address and phone mnumber, but in e-commercie--configuration--invoice, the macro "{%BillingAddress.ApplyTransformation("Ecommerce.Transformations.Order_Address"#%}" only miss the phone number, so how can I add the phone number here?

Thank a lot

Correct Answer

benyamin jain answered on February 15, 2015 17:00

Hi lu

you can write your own macro(Custom macro).

1 votesVote for this answer Unmark Correct answer

Recent Answers

Min Lu answered on February 16, 2015 06:58

But how???could u show me the code?

0 votesVote for this answer Mark as a Correct answer

Zdeněk Cetkovský answered on March 12, 2015 15:51


you can either put the phone number into the invoice template directly with a macro, that could be e.g.:

{% BillingAddress.AddressPhone %}

or, you can add a phone number rendering to the transformation Ecommerce.Transformations.Order_Address, that is editable in Administration under special Page (document) type E-commerce - transformations, codename Ecommerce.Transformations under Transformations tab.

In the transformation, it could be simply:


Hope this helps.


0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.