# Variable Product

**Set global attributes**

Go to **Products > Attributes** to add, edit, and remove attributes.

Here you can quickly and easily add attributes and their terms.

* Add a **Name**.
* Add a **Slug**; (optional); this is the URL-friendly version of the name.
* **Enable Archives** if desired. If enabled, you can view a page with all products having this attribute. For example, if you have this enabled, and “black” is one of the options under “color”, you can add `http://yourstore.com/pa_color/black/` to your menu to only display black clothing – `pa` stands for “product attribute.”
* Select a **Default sort order**. Choose between “Name”, “Name (numeric)”, “Term ID” or “Custom ordering” where you decide by dragging and dropping the terms in the list when configuring the terms (see below). “Name (numeric)” is relevant if the values are numbers. If you select “Name”, it sorts alphabetically with 1 and 10 preceding 2. If you select “Name (numeric)” it sorts based on numerical value.

![](https://gblobscdn.gitbook.com/assets%2F-MP3iui8ZbvhbviSps3B%2F-MP71MHvhBglMZar7aDt%2F-MP71Vp2qD1dZuLDvfEu%2Fimage.png?alt=media\&token=32eef6af-1093-4597-a0d9-de9d3ec0c237)

Select **Add Attribute**.

The attribute is added in the table on the right, but without values.

**Select the “Configure terms”** text to add attribute values.

![](https://gblobscdn.gitbook.com/assets%2F-MP3iui8ZbvhbviSps3B%2F-MP71MHvhBglMZar7aDt%2F-MP71Y5v7CGAZ2tNiKTw%2Fimage.png?alt=media\&token=2a5902b2-686d-4f62-a9af-fd68aae287a6)

Next **Add New “Attribute name”**, where “Attribute name” automatically takes the name you gave the attribute in the previous step.

Add as many values as you wish. If you selected “Custom ordering” for the attribute, reordering your values can be done here.

**Add global attributes to product**

Add the created attributes to your products.

1. Go to: **Products > Add Product** (or edit an existing one).
2. Select the **Attributes** tab in the Product Data. There you can choose any of the attributes that you’ve created in the dropdown menu.
3. Select **Add**.

If you selected a global attribute that you previously created, you can select terms that you added previously.

![](https://4183399415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSYbDQmIYGkQKCdrFCleC%2Fuploads%2F3ZMH2XqyIeXQAjydQLY6%2Fimage%20\(1\).png?alt=media\&token=41ab671b-b2ca-4f48-a402-562a39196956)

**Add custom attributes**

Alternatively, add an attribute you only want to use for one product. This would only be ideal if you have a product with unique variations.

1. Go to: **Product > Add Product**.
2. Select the **Attributes** tab.
3. Select **Custom product attribute** in the dropdown and follow the above steps.


---

# 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://wpdocs.gitbook.io/xocora/woocommerce/variable-product.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.
