[wcj_order_billing_address]

Display formatted billing address

Description

[wcj_order_billing_address] shortcode displays WooCommerce order formatted billing address.

Args

order_id
(optional) The integer ID for an order.

Default: The current order ID, if exists
before
(optional) Text to place before the content. If content is empty this argument is ignored.

Default: None
after
(optional) Text to place after the content. If content is empty this argument is ignored.

Default: None

Usage Example

Shortcode is intended (but not limited) to use with PDF Invoicing and Packing Slips module.

Accessible through:
  • [wcj_order_billing_address]
Tested on WooCommerce 3.1.1 and WordPress 4.8.1
Plugin can be downloaded here. If there are any locked fields in the module, you will need to get Booster Plus to unlock them.

Leave a Reply

Comments

8 Comments

  1. Valerie Robinson November 19, 2016 at 4:00 am #

    I’m using this on a PDF invoice but I need to also show the billing email. Is there a way to add this to the PDF?

    Reply

    • Booster Support Team November 20, 2016 at 2:32 pm #

      Hi Valerie,

      Please try adding “Customer – Processing Order” to “Attach PDF to emails” option in “WooCommerce > Settings > Booster > PDF Invoicing & Packing Slips > Email Options”.

      Best regards,
      Tom

      Booster Support Team
    • Valerie Robinson November 21, 2016 at 12:34 am #

      Thanks–but I’m not sure you understood the question. If I choose this shortcode, it adds the customer’s billing address but it doesn’t include their email.

      Is there a way to also include their email address?

    • Booster Support Team November 21, 2016 at 10:54 am #

      Hi Valerie,

      I’ve reread your questions and, yes, you are correct. Don’t know why I did answer the way I did – probably was to tired, sorry for that. So to add billing email to PDF invoice, you should use [wcj_order_checkout_field] shortcode (http://booster.io/shortcodes/wcj_order_checkout_field/), something like that: [wcj_order_checkout_field field_id="billing_email"]. Hope I got it right this time.

      Best regards,
      Tom

      Booster Support Team
    • Valerie Robinson November 29, 2016 at 6:28 pm #

      I understand what you’re saying but if I put that email shortcode in my PDF template, it doesn’t result in anything. Can you test and see if you can get the email address to show?

      Thanks!

    • Valerie Robinson November 29, 2016 at 9:00 pm #

      I got [wcj_order_checkout_field field_id="billing_email"] to show the email after all.

      Thanks so much for the help!

    • Booster Support Team November 30, 2016 at 8:57 pm #

      Great, happy to help.

      Best regards,
      Tom

      Booster Support Team
  2. Tony May 17, 2017 at 5:00 pm #

    Do these shortcodes work after installing the plugin? Or do I have to enable them one by one?

    Reply