Fix issue Fox Kit plugins stop working
Since Shopify changed the API of Metafield type, so if you are using an old theme version that is not v2.5.0, the Fox Kit app can be stopped working on your store, please follow instructions below to fix:
  • Go to Themes -> Actions -> Edit code
  • Search & open the file: snippets/theme-data.liquid
Find this line (Line 76)
1
foxkitAppURL: {{ shop.metafields['foxecom-bs-kit'].shop.foxkitAppURL | json }},
Copied!
Replace with
1
foxkitAppURL: {{ shop.metafields['foxecom-bs-kit'].shop.value.foxkitAppURL | json }},
Copied!
  • Search & open the file: snippets/foxkit-cart-goal.liquid
Find this line (Line 1)
1
{% assign f_cart_goal = shop.metafields.foxecom-bs-kit.cart-goal %}
Copied!
Replace with
1
{% assign f_cart_goal = shop.metafields.foxecom-bs-kit.cart-goal.value | default: shop.metafields.foxecom-bs-kit.cart-goal %}
Copied!
  • Search & open the file: snippets/foxkit-cart-countdown.liquid
Find this line (Line 1)
1
{% assign f_cart_countdown = shop.metafields.foxecom-bs-kit.cart-countdown %}
Copied!
Replace with
1
{% assign f_cart_countdown = shop.metafields.foxecom-bs-kit.cart-countdown.value | default: shop.metafields.foxecom-bs-kit.cart-countdown %}
Copied!
  • Search & open the file: sections/cart-drawer.liquid
Find this line (Line 1)
1
{% assign f_cart_countdown = shop.metafields['foxecom-bs-kit']['cart-countdown'] %}
Copied!
Replace with
1
{% assign f_cart_countdown = shop.metafields.foxecom-bs-kit.cart-countdown.value | default: shop.metafields.foxecom-bs-kit.cart-countdown %}
Copied!
  • Search & open the file: snippets/product-stock-countdown.liquid
Find this line (Line 1)
1
{% assign stock_countdown = shop.metafields['foxecom-bs-kit']['stock-countdown'] %}
Copied!
Replace with
1
{% assign stock_countdown = shop.metafields['foxecom-bs-kit']['stock-countdown'].value | default: shop.metafields['foxecom-bs-kit']['stock-countdown'] %}
Copied!
  • Search & open the file: snippets/check-preorder.liquid
Find this line (Line 1)
1
{%- assign preorder = product.metafields.foxkit.preorder %}
Copied!
Replace with
1
{%- assign preorder = product.metafields.foxkit.preorder.value | default: product.metafields.foxkit.preorder -%}
Copied!
  • Search & open the file: snippets/foxkit-messenger.liquid
Find this line (Line 1)
1
{% assign f_messenger = shop.metafields.foxecom-bs-kit.messenger %}
Copied!
Replace with
1
{% assign f_messenger = shop.metafields.foxecom-bs-kit.messenger.value | default: shop.metafields.foxecom-bs-kit.messenger %}
Copied!
  • Save file changes
You don't need to do this if you are using the version v2.5.0
Copy link