Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-beeclever committed Sep 29, 2024
1 parent 2b971fa commit 00e1d06
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions layout/theme.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
{% render "preload-fonts" %}

{% render "theme-styles" %}
{% render "theme-js" %}
{{ "critical.css" | asset_url | stylesheet_tag }}

{% assign skin = "modern" %}
Expand Down
29 changes: 29 additions & 0 deletions snippets/theme-js.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<script>
window.Shopify = window.Shopify || {}
Shopify.shopID = {{ shop.id }}
Shopify.routes = {
accountAddressesUrl: "{{ routes.account_addresses_url }}",
accountLoginUrl: "{{ routes.account_login_url }}",
accountLogoutUrl: "{{ routes.account_logout_url }}",
accountRecoverUrl: "{{ routes.account_recover_url }}",
accountRegisterUrl: "{{ routes.account_register_url }}",
accountUrl: "{{ routes.account_url }}",
allProductsCollectionUrl: "{{ routes.all_products_collection_url }}",
cartUrl: "{{ routes.cart_url }}",
cartAddUrl: "{{ routes.cart_add_url }}",
cartChangeUrl: "{{ routes.cart_change_url }}",
cartClearUrl: "{{ routes.cart_clear_url }}",
cartUpdateUrl: "{{ routes.cart_update_url }}",
collectionsUrl: "{{ routes.collections_url }}",
predictiveSearchUrl: "{{ routes.predictive_search_url }}",
productRecommendationsUrl: "{{ routes.product_recommendations_url }}",
rootUrl: "{{ routes.root_url }}",
searchUrl: "{{ routes.search_url }}"
}
Shopify.currency = Shopify.currency || {}
Shopify.currency.moneyFormat = {{ shop.money_format | json }};
Shopify.theme = Shopify.theme || {}
Shopify.theme.cart = Shopify.theme.cart || {}
Shopify.theme.cart.action = '{{ settings.add_to_cart_action }}'
</script>

0 comments on commit 00e1d06

Please sign in to comment.