Note: this feature is available in Pro, Expert and Enterprise plans.


First of all, enable the wisepops() function on your shop by following this article.
Then, in wisepops.liquid, copy the following code at the end of the file, before the closing </script>  tag:

   * Define custom properties
  wisepops('properties', {
    customerTags: '{{ customer.tags | join: ',' }}',
    productTags: '{{ product.tags | join: ',' }}',
    productPrice: {{ product.price | default: 0 }} / 100,
    productInventoryManagement: '{{ product.variants.first.inventory_management }}',
    productInventoryQuantity: {{ product.variants.first.inventory_quantity | default: 'null' }},
    cartTotalPrice: {{ cart.total_price | default: 0 }} / 100,

Trigger a popup when cart value is below X

Step 1: Open your popup in the editor.
Step 2: Click "Display" and select "Custom properties"

Step 3
: Click "Add more rules" 

Step 4: input cartTotalPrice in the condition field, select "Less than" and input your condition.

Trigger a popup when item inventory is below X

Note: this works only if Shopify is managing your inventory

Same steps as in the first example. But replace cartTotalPrice by productInventoryQuantity:

Trigger a popup when item has specific tags

Use productTags to create your condition:

Trigger a popup when a customer has specific tags

Use customerTags to create the condition:

Trigger a popup when item price is above X

Use productPrice to create your condition:

Use other Liquid variables

You're free to use other Liquid variables in your targeting. To do so, update the script provided at the beginning of this tutorial. Each Liquid variable must be declared as follows:

NameOfTheVariableInWisePops: {{ LiquidVariableName | default: "null" }},

Visit Shopify website to get the full list of Liquid variables. And feel free to contact us if you need help with the setup.

Did this answer your question?