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

Setup:

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', {
  productPrice: {{ product.price | default: 'null' }},
  productTags: '{{ product.tags | join: ',' }}',
  productInventoryManagement: '{{ product.variants.first.inventory_management }}',
  productInventoryQuantity: {{ product.variants.first.inventory_quantity | default: 'null' }},
  cartTotalPrice: {{ cart.total_price | default: 'null' }}
});

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 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?