# Bathroom

<figure><img src="https://3878901611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEwt3moGlRvU11oa7qXGc%2Fuploads%2FdVLoDhPJPo9nhtxDlo7y%2Fimage.png?alt=media&#x26;token=585c8994-358e-433e-a7f1-745952e3a2d4" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3878901611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEwt3moGlRvU11oa7qXGc%2Fuploads%2FrqDfCGukhwIFcEdgeZJu%2Fimage.png?alt=media&#x26;token=e9fb7651-f07c-4822-8067-e3754eac1ebc" alt=""><figcaption></figcaption></figure>

## Step 1: Create metafield object.

1.  From your Shopify admin, go to **Content** -> **Metaobjects**.



    <figure><img src="https://nouthemes-1.gitbook.io/~gitbook/image?url=https%3A%2F%2F3848569118-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAQ4fEPyV7SCBRuJIDpdT%252Fuploads%252FyT70h8TD6v2Jnz7OMBfd%252Fimage.png%3Falt%3Dmedia%26token%3Dfecf217f-b095-4ec3-9568-65473227a3d8&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=a872c7f0&#x26;sv=1" alt=""><figcaption></figcaption></figure>
2.  Click **Add definition**.



    <figure><img src="https://nouthemes-1.gitbook.io/~gitbook/image?url=https%3A%2F%2F3848569118-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAQ4fEPyV7SCBRuJIDpdT%252Fuploads%252FFRz16GQMs03YuZnMSLgQ%252Fimage.png%3Falt%3Dmedia%26token%3D036bbecf-a256-4c25-9599-d899aba5d628&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=c1147e6c&#x26;sv=1" alt=""><figcaption></figcaption></figure>
3. Add metaobject definition.

> **Note:** The name of the metaobject and the names of the fields must exactly match the names specified in the setup guide below. If you name them incorrectly, the functionality will not work.

**Name:** Bathroom

| Fields | Name            | Type             |
| ------ | --------------- | ---------------- |
| Field  | Number Bathroom | Single line text |

After you have finished creating, you will have a result similar to the attached image below.

<figure><img src="https://3878901611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEwt3moGlRvU11oa7qXGc%2Fuploads%2FfMCAYnib4wGPeanJgytB%2Fimage.png?alt=media&#x26;token=4d186c4d-cf10-43fc-bbfb-e7cbc751b3b9" alt=""><figcaption></figcaption></figure>

## Step 2: Add content to the field.

After you have completed step 1, you will have a metaobject. Next, you will 'Add entry' and enter content for each field.

1. From your Shopify admin, navigate to '**Content'** -> '**Metaobjects'**.
2. Select the '**Definition name**' you wish to set up.
3. Click '**Add entry**'.
4. Add content to each created field.
5. Click '**Save**'.

<figure><img src="https://3878901611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEwt3moGlRvU11oa7qXGc%2Fuploads%2Fxv2YR5pwOhmVePl9Y8jk%2Fimage.png?alt=media&#x26;token=daa513b8-86b1-41cf-8a3e-8b5b94ae1b28" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3878901611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEwt3moGlRvU11oa7qXGc%2Fuploads%2FNKXaIXLno2xwMAKh3Fda%2Fimage.png?alt=media&#x26;token=be01a7c4-b1f9-4962-b873-a97bf870a79c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3878901611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEwt3moGlRvU11oa7qXGc%2Fuploads%2FgwQxzA9yKDrhOp35i7Bq%2Fimage.png?alt=media&#x26;token=3390f86d-fe16-40a3-932a-3fc8ce5eefa1" alt=""><figcaption></figcaption></figure>

## Step 3: Create metafield.

1. From your Shopify admin, go to **Settings** -> **Custom data**.
2.  Click **Products → Add Definition.**

    <figure><img src="https://3878901611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEwt3moGlRvU11oa7qXGc%2Fuploads%2FrlYA1Zr0gHmVz0mSQL4u%2F3.gif?alt=media&#x26;token=65c82966-7f3c-46e1-a3ca-017cc8f110a4" alt=""><figcaption></figcaption></figure>
3. Please enter correct **Namespace and Key** as we noted below.

> **Note:** The name of the metaobject and the names of the fields must exactly match the names specified in the setup guide below. If you name them incorrectly, the functionality will not work.

```
Name: Bathroom
Namespace and key: custom.bathroom
Select content type: Metaobject
Reference: List of entries
```

<figure><img src="https://3878901611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEwt3moGlRvU11oa7qXGc%2Fuploads%2FtdgK09nlp884wGIh0RZP%2Fimage.png?alt=media&#x26;token=41255fbb-1c6e-4ce8-9a32-454adbcc3cd1" alt=""><figcaption></figcaption></figure>

## Step 4: Add the metaobject to the product.

1. From your Shopify admin, go to **Products -> All products**.
2. Find and choose the product that you want to edit.
3. In the **Metafields**, please insert content for "**Bathroom**" field.

<figure><img src="https://3878901611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEwt3moGlRvU11oa7qXGc%2Fuploads%2Fe8S0piuW9WooZ1n7TpSB%2F3.gif?alt=media&#x26;token=10144771-5a33-44a0-afdb-4e6f6b0e60b0" alt=""><figcaption></figcaption></figure>

