# Cross-sell snippet installation (Shopify 2.0)

**Step 1:–** Copy the Snippet code below

```
<div id="spicegemsCrossSellApp"></div>
```

**Step 2:-** Go to the **Online store** –> **Themes** under the **Shopify Admin**.

**Step 3:-** Select **Actions** (Current theme) and click **“Edit code”.**

<figure><img src="https://96401947-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfDDuyiCaGOF86uL6SMR0%2Fuploads%2FnQ8sELmVDADYnGoO9Chf%2Fimage.png?alt=media&#x26;token=8afcc936-9463-49fe-9b14-6bf73a689a65" alt=""><figcaption></figcaption></figure>

**Step 4:-** Find **Product.json** under the **Templates** folde&#x72;**.**

<figure><img src="https://96401947-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfDDuyiCaGOF86uL6SMR0%2Fuploads%2F5xFdiJ3pn3qD8MpB8Rph%2Fimage.png?alt=media&#x26;token=1ecd0677-0537-4283-966b-8a4d2f2b96ff" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note:**– In the **Shopify Online Store 2.0**, each page type is represented as a **.json** file within the Templates folder of the theme, they are just simply data files that indicate which **sections** will appear by default on a page, and in what order.\
\
In our theme, we can see that **product.json** file have a “**main**” property, which is the main section for that page, and the “**type**” property is used to identify the name of the included file.
{% endhint %}

**Step 5:-** Search for the **main** section file name **(main-product)** in the **Sections** folde&#x72;**.** In our theme, the file name is **“main-product.liquid“.** It may vary depending upon the them&#x65;**.**

<figure><img src="https://96401947-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfDDuyiCaGOF86uL6SMR0%2Fuploads%2Fk8EoBazkHNdIJQ60LFwy%2Fimage.png?alt=media&#x26;token=e40d7fe2-b84d-49c4-859d-77406a097c64" alt=""><figcaption></figcaption></figure>

**Step 6:-** Add the snippet at the bottom of this template file and save the changes.

<figure><img src="https://96401947-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfDDuyiCaGOF86uL6SMR0%2Fuploads%2FZGKN906paKAHw9JIwnWD%2Fimage.png?alt=media&#x26;token=cbd50cae-69dc-43e6-8c6f-c2b77e1fe1e4" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**If you can’t find the right place to install the snippet in your theme, please feel free to contact us on our email** [**help@spicegems.com**](mailto:help@spicegems.com) **for free installation support.**
{% endhint %}
