In this article you will learn how to show a member’s billing address in their PDF order, including a way to customize the layout of the billing address fields.
You may add in a predesigned layout of the default Paid Memberships Pro billing fields by adding the {{billing_address}}
variable to your PDF editor or HTML file directly.
To tweak what billing fields are shown, you may add each variable of the member’s address individually to the PDF layout:
Field | Variable |
---|---|
First Name | {{pmpro_bfirstname}} |
Last Name | {{pmpro_blastname}} |
Address 1 | {{pmpro_baddress1}} |
Address 2 | {{pmpro_baddress2}} |
City | {{pmpro_bcity}} |
State | {{pmpro_bstate}} |
Zip Code | {{pmpro_bzipcode}} |
Phone | {{pmpro_bphone}} |
Country | {{pmpro_bcountry}} |
In the above table, you can see that the variable is the meta key (user meta) of the default Paid Memberships Pro billing field. The PDF layout will automatically try to replace all variable values that are between two curly braces with dynamic data – generally custom user fields or custom data, as per this guide.
If you have any questions, do not hesitate to reach out to our support team.