Skip to content
Discussion options

You must be logged in to vote

Hello @donhello,

I would suggest using the script context as outlined in our background filtering docs:
https://searchspring.github.io/snap/#/integration-backgroundFilters

Here is a liquid snippet that our Implementation team commonly use on Shopify integrations:

{%- if customer -%}
{% capture ss_shopper_config %}
shopper = { id: "{{ customer.id }}" };
{% endcapture %}
{%- endif -%}

{% assign ss_defer_config = ' defer' %}
{%- if collection.handle and template contains 'collection' -%}
{% assign ss_defer_config = '' %}
{%- if collection.handle != settings.ss_collection_handle -%}
{% capture ss_collection_config %}
collection = { id: "{{ collection.id }}", name: "{{ collection.title | repl…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@donhello
Comment options

@korgon
Comment options

Answer selected by korgon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants