AeroCheckout- Custom WooCommerce Checkout Pages

  1. Home
  2. Docs
  3. AeroCheckout- Custom WooCommerce Checkout Pages
  4. Developer Docs
  5. How to display AeroCheckout form fields in Invoice template?

How to display AeroCheckout form fields in Invoice template?

 

If you want to display any AeroCheckout form field on Invoice you need to follow steps below:

Step1: Suppose if we want to display phone number on the invoice. Click on the “Phone” field and note down the ID of the field.

Step2: To display field label and it’s value we will use field ID copied from the previous step and place it in the shortcodes below where it’s written “my-checkout-field“:

For Field Label: [wfacp_order_custom_field field_id=”my-checkout-field” type=’label’]
For Field Value: [wfacp_order_custom_field field_id=”my-checkout-field” type=’value’]

This would be the final shortcode after editing
Label : [wfacp_order_custom_field field_id=“Phone Number” type=’label’]

Value : [wfacp_order_custom_field field_id=“billing_phone” type=’value’]

Step3: Now add these shortcodes to HTML template of your invoice where we need to display the field.

How can we help?