# Template shortcodes

The VendorFuel plugin uses the following shortcode:

```
[vf-template name="shortcode-name"]
```

Each of the following template shortcode names correspond to a WordPress page.

| Title           | Shortcode name  | Parameters                                                                                                                      |
| --------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| Account         | account         |                                                                                                                                 |
| Addresses       | addresses       |                                                                                                                                 |
| Cart            | cart            |                                                                                                                                 |
| Catalog         | catalog         | <p><strong>cat\_id</strong> <em>(number) (Optional)</em><br>Using a cat\_id will return only products within that category.</p> |
| Checkout        | checkout        | <p><strong>po\_prefix</strong> <em>(string) (Optional)</em><br>Prefixes the purchase order.</p>                                 |
| Favorites       | favorites       |                                                                                                                                 |
| Forgot Password | forgot-password |                                                                                                                                 |
| Group Account   | group-account   |                                                                                                                                 |
| Group Orders    | group-orders    |                                                                                                                                 |
| Login           | login           |                                                                                                                                 |
| Order by SKU    | order-by-sku    |                                                                                                                                 |
| Orders          | orders          |                                                                                                                                 |
| Product Detail  | product-detail  | **product\_id** *(number) (Required)*                                                                                           |
| Punchout Return | punchout-return |                                                                                                                                 |
| Register        | register        | **customer\_role** *(number) (Optional)*                                                                                        |
| Reset Password  | reset-password  |                                                                                                                                 |
| Saved Cart      | saved-cart      |                                                                                                                                 |
| Saved Carts     | saved-carts     |                                                                                                                                 |
| View Order      | view-order      |                                                                                                                                 |

{% hint style="info" %}
Wherever a shortcode name is used (usually on the corresponding WordPress page), the matching template content is imported from `includes/templates`. For example, using `[vf-template name="login"]`will result in the content from `includes/templates/login.html` to be imported.
{% endhint %}


---

# 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://docs.vendorfuel.com/templates/template-shortcodes.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.
