# WooCommerce Meta Fields

This shortcode allows you to fetch and display a WooCommerce user profile field for the currently logged-in user.

**Easy-to-use examples:**

\
Below are a few examples to get you started. Additional field names can be found using the reference provided below.

```
[sv slug="woocommerce" field="billing_first_name"]
[sv slug="woocommerce" field="billing_last_name"]
[sv slug="woocommerce" field="billing_company"]
[sv slug="woocommerce" field="billing_address_1"]
[sv slug="woocommerce" field="billing_address_2"]
[sv slug="woocommerce" field="billing_city"]
[sv slug="woocommerce" field="billing_postcode"]
[sv slug="woocommerce" field="billing_country"]
[sv slug="woocommerce" field="billing_state"]
[sv slug="woocommerce" field="billing_email"]
[sv slug="woocommerce" field="billing_phone"]
[sv slug="woocommerce" field="shipping_first_name"]
[sv slug="woocommerce" field="shipping_last_name"]
[sv slug="woocommerce" field="shipping_company"]
[sv slug="woocommerce" field="shipping_address_1"]
[sv slug="woocommerce" field="shipping_address_2"]
[sv slug="woocommerce" field="shipping_city"]
[sv slug="woocommerce" field="shipping_postcode"]
[sv slug="woocommerce" field="shipping_country"]
[sv slug="woocommerce" field="shipping_state"]
```

**Shortcode Arguments**

The shortcode supports the following arguments:

| Argument          | Description                                        | Options | Example                                                                                     |
| ----------------- | -------------------------------------------------- | ------- | ------------------------------------------------------------------------------------------- |
| field             | WooCommerce field to display e.g. billing\_address | text    | \[sv slug="woocommerce" field="billing\_phone"]                                             |
| message-not-found | Message to display if field is empty               | Text    | \[sv slug="woocommerce" field="billing\_phone" message-not-found="Phone number is missing"] |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yeken.gitbook.io/snippet-shortcodes/features/ready-made/premium/woocommerce-meta-fields.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
