SHORTCODE

In both the free and pro versions, our plugin supports external shortcodes. You can build your shortcode, it’ll show the value if the shortcode is built correctly.

For how to build a shortcode, you may visit this documentation.

 

In the pro version, the plugin provides shortcodes for metadata

  • Get customer order meta

[wec_order_meta meta_customer_order="yes" key='META_KEY_NAME']

    • meta_customer_order: Use this parameter to get the user meta: meta_customer_order="yes"
    • key: Get the correct user meta key (it is not the order meta key). For example: key='first_name' or key='last_name'
      • with 'first_name' can be changed by other user meta key.
  • Get order meta

    • In email content: [wec_order_meta key='']

Add meta key name to display custom value. For example: [wec_order_meta key='META_KEY_NAME']

However, as the meta data is saved as an array, you’ll need to specify the array key in the placeholder to ensure its value functions correctly.

      • key: Get the correct order meta key. For example: key='_billing_first_name' or key='_billing_last_name'
        • with _billing_first_name can be changed by other order meta key
    • In email subject: [wec_order_meta_subject key=""]

Add meta key name to display custom value. For example: [wec_order_meta key='META_KEY_NAME'] this works the same as In email content.

This article is an example of creating a shipment tracking number placeholder for major WooCommerce shipping tracking plugins, then generating your own placeholder for any plugin, in particular with the WooCommerce Email Template Customizer plugin by VillaTheme without requiring any developer expertise or coding skills.