# Dynamic Content

Allows you to add variables to your Cart Context.

## Add Dynamic Content

* Select the block to which you wish to add Dynamic Content.
* Click the Dynamic Values icon in the toolbar to open the Dynamic Content panel.

### Source

* Set Source to WooCommerce.

### WooCommerce

* Set WooCommerce to  required Cart context Variable in the dropdown in the following categories: Pricing, Weight and Dimensions, Description, Stock, Date, Meta, Reviews, Misc.).

<details>

<summary>Cart Context Variables</summary>

Cart

* Cart Items Count
* Cart Shipping Total
* Cart Subtotal
* Cart Total

Cart Items

* Cart Item Name
* Cart Item Description
* Cart Item Short Description
* Cart Item Quantity
* Cart Item Sale Percentage
* Cart Item Total
* Cart Item Price
* Cart Item Sale Price
* Cart Item Low Stock Quantity

Pricing

* Price
* Regular Price
* Sale Price
* Currency&#x20;
* Currency Symbol
* Sale Percentage

Weight and Dimensions

* Weight
* Height
* Width
* Length

Description

* Description
* Short Description

Stock

* Quantity in Stock
* Max Purchase Quantity
* Min Purchase Quantity

Date

* On Sale From
* On Sale To

Meta

* SKU

Reviews

* Rating Count
* Review Count
* Average Rating

Misc

* Total Sold
* Notice

</details>

### Type (Pricing)

The Type property allows you to choose  different price formatting, such as None, Formatted, Formatted Currency, Formatted Tax, Formatted Tax Currency.

* Select a Pricing variable  in the WooCommerce dropdown.
* Select required Type.

### Date (On Sale From, On Sale Too)

The Date property allows you to choose the time period for the item on sale.

* Select a Date variable in the WooCommerce dropdown.
* Select required time period&#x20;

### Static Text

Static Text, that is text that does not change, can be added before or after the required variable.&#x20;

Fallback Text can also be added to appear if no variable is available.

* Input Static Text to be added before or after the selected variable.
* Input Fallback Text as required.


---

# 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.cwicly.com/woocommerce/dynamic-content.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.
