# FoxKit stops working

<div data-full-width="true"><figure><img src="/files/1OZ2q7N6tFYitFzBKwTz" alt=""><figcaption><p><a href="https://foxecom.com/pages/affiliate?utm_source=minimog%2Bhelp%2Bcenter&#x26;utm_medium=banner&#x26;utm_campaign=foxaffiliatelaunch2024">Explore FoxEcom Affiliate Program now </a><span data-gb-custom-inline data-tag="emoji" data-code="2728">✨</span></p></figcaption></figure></div>

Shopify changed the API of Metafield type so if you are using an old theme version (before **v2.5.0**), FoxKit app can stop working on your store.

In this case, follow the instructions below:

* Go to **Themes -> Actions -> Edit code**
* Search & open the file: **snippets/theme-data.liquid**

Find this line (Line 76)

{% code overflow="wrap" %}

```
foxkitAppURL: {{ shop.metafields['foxecom-bs-kit'].shop.foxkitAppURL | json }},
```

{% endcode %}

Replace with

{% code overflow="wrap" %}

```
foxkitAppURL: {{ shop.metafields['foxecom-bs-kit'].shop.value.foxkitAppURL | json }},
```

{% endcode %}

![](/files/x7WOXFETgzDDyX4YucB5)

* Search & open the file: **snippets/foxkit-cart-goal.liquid**

Find this line (Line 1)

{% code overflow="wrap" %}

```
{% assign f_cart_goal = shop.metafields.foxecom-bs-kit.cart-goal %}
```

{% endcode %}

Replace with

{% code overflow="wrap" %}

```
{% assign f_cart_goal = shop.metafields.foxecom-bs-kit.cart-goal.value | default: shop.metafields.foxecom-bs-kit.cart-goal %}
```

{% endcode %}

* Search & open the file: **snippets/foxkit-cart-countdown.liquid**

Find this line (Line 1)

{% code overflow="wrap" %}

```
{% assign f_cart_countdown = shop.metafields.foxecom-bs-kit.cart-countdown %}
```

{% endcode %}

Replace with

{% code overflow="wrap" %}

```
{% assign f_cart_countdown = shop.metafields.foxecom-bs-kit.cart-countdown.value | default: shop.metafields.foxecom-bs-kit.cart-countdown %}
```

{% endcode %}

* Search & open the file: **sections/cart-drawer.liquid**

Find this line (Line 1)

{% code overflow="wrap" %}

```
{% assign f_cart_countdown = shop.metafields['foxecom-bs-kit']['cart-countdown'] %}
```

{% endcode %}

Replace with

{% code overflow="wrap" %}

```
{% assign f_cart_countdown = shop.metafields.foxecom-bs-kit.cart-countdown.value | default: shop.metafields.foxecom-bs-kit.cart-countdown %}
```

{% endcode %}

* Search & open the file: **snippets/product-stock-countdown.liquid**

Find this line (Line 1)

```
{% assign stock_countdown = shop.metafields['foxecom-bs-kit']['stock-countdown'] %}
```

Replace with

{% code overflow="wrap" %}

```
{% assign stock_countdown = shop.metafields['foxecom-bs-kit']['stock-countdown'].value | default: shop.metafields['foxecom-bs-kit']['stock-countdown'] %}
```

{% endcode %}

* Search & open the file: **snippets/check-preorder.liquid**

Find this line (Line 1)

```
{%- assign preorder = product.metafields.foxkit.preorder %}
```

Replace with

{% code overflow="wrap" %}

```
{%- assign preorder = product.metafields.foxkit.preorder.value | default: product.metafields.foxkit.preorder -%}
```

{% endcode %}

* Search & open the file: **snippets/foxkit-messenger.liquid**

Find this line (Line 1)

{% code overflow="wrap" %}

```
{% assign f_messenger = shop.metafields.foxecom-bs-kit.messenger %}
```

{% endcode %}

Replace with

{% code overflow="wrap" %}

```
{% assign f_messenger = shop.metafields.foxecom-bs-kit.messenger.value | default: shop.metafields.foxecom-bs-kit.messenger %}
```

{% endcode %}

* Save file changes

{% hint style="info" %}
If you are using Minimog v2.5.0, this is not necessary
{% endhint %}


---

# 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.foxecom.com/minimog-theme/troubleshooting/foxkit-stops-working.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.
