# Upsell

Upsell a product in the cart drawer (and the cart page) using a custom metafield definition. You can set different combinations for different products.

![](https://content.gitbook.com/content/6md3yH8BZZEemJndPcTN/blobs/ebR9xTYDcm6Lam5klhVh/cart-upsell-demo.jpg)

### Setting up the new metafield definition

This feature uses metafields so our first step is to create a new metafield definiton. The most important part is to use this namespace and key: `theme.upsell`&#x20;

![](https://content.gitbook.com/content/6md3yH8BZZEemJndPcTN/blobs/h04o0trlSyWHqpIU7qsK/theme-upsell-definition.png)

To start, navigate to your Shopify Admin -> Settings and choose Metafields from the left panel. Next, click on **Products** *(click images to zoom)*:

![Under 'Metafields', click on 'Products'](https://content.gitbook.com/content/6md3yH8BZZEemJndPcTN/blobs/UfOv1sQ1Bz4AgIv5AHFv/metafields-settings.jpg) ![Click on the 'Add definition' button](https://content.gitbook.com/content/6md3yH8BZZEemJndPcTN/blobs/KvYrdJvvT4woeD50Tr8j/add-definition-button.jpg)

Click the **Add definition** button to begin. Choose a name, we'll use '`upsell`'. Next, we will use a custom namespace. This is **required**.

A crucial step here is to change the **default namespace** (usually called '*my\_fields*') to **`theme`**

![](https://content.gitbook.com/content/6md3yH8BZZEemJndPcTN/blobs/CvARyq5j4gfgtb9juA4O/new-upsell-definition.gif)

Add a description *(this is optional)* then choose **Select content type**. Here, choose the **Product** type and **Save** your new definitions.

![](https://content.gitbook.com/content/6md3yH8BZZEemJndPcTN/blobs/vLiPxy2y9Ccxde6ZLcJf/select-product-type.gif)

### Product setup

Now that our custom metafield has been defined, the final step is to edit any of your products in the Shopify Admin -> Products and update the new `upsell` metafield.

All you need to do is scroll to the bottom of the product setup page and fill them in:

![](https://content.gitbook.com/content/6md3yH8BZZEemJndPcTN/blobs/SuQj5emS41T2REjVaoUZ/add-new-upsell-to-product.gif)

Don't forget to **Save** your product and preview it on the cart drawer (or cart page).

![](https://content.gitbook.com/content/6md3yH8BZZEemJndPcTN/blobs/VXkM9eIXr1kWUrSZCM6o/upsell-final.jpg)
