FoxKit stops working

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)

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

Replace with

foxkitAppURL: {{ shop.metafields['foxecom-bs-kit'].shop.value.foxkitAppURL | json }},
  • Search & open the file: snippets/foxkit-cart-goal.liquid

Find this line (Line 1)

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

Replace with

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

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

Find this line (Line 1)

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

Replace with

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

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

Find this line (Line 1)

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

Replace with

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

  • 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

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

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

Find this line (Line 1)

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

Replace with

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

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

Find this line (Line 1)

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

Replace with

{% assign f_messenger = shop.metafields.foxecom-bs-kit.messenger.value | default: shop.metafields.foxecom-bs-kit.messenger %}
  • Save file changes

If you are using Minimog v2.5.0, this is not necessary

Last updated