> For the complete documentation index, see [llms.txt](https://knowledgebase.ajaxsearchpro.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.ajaxsearchpro.com/miscellaneous/woocommerce/get-formatted-price-in-result-title-or-in-content.md).

# Get formatted price in result title or in content

&#x20;The plugin allows displaying custom field contents within results, it also recognizes the WooCommerce price custom field, and prints the formatted price as result.

![](https://i.imgur.com/Mchf9c0.png)

These fields allow displaying custom field values, such as the WooCommerce price ‘\_price’ field to display the product price. For example, inputting:

```
{titlefield}[ - Price: {_price}]
```

..into the title field, will result in:

![](https://i.imgur.com/2CTEob9.png)

In case of WooCommerce, the following custom fields can be used for price display:

* \_price
* \_price\_html
* \_tax\_price
* \_regular\_price
* \_sale\_price

For example, you can combine the \_regular\_price and \_sale\_price to display a sale:

```
{titlefield}[ - Now only: {_sale_price} instead of][ - {_regular_price}]
```

..which results in:

![](https://i.imgur.com/ds9ZDzx.png)

For more examples & to learn more about the advanced title and content fields, please check the following resources:

* [Documentation: Advanced title & Content fields](https://wpdreams.gitbooks.io/ajax-search-pro-documentation/content/advanced/advanced_title_and_description_fields.html)
