Shopify Built-In Properties

Lisa Fockens Updated by Lisa Fockens

Important note: If you installed our Shopify app before April 22, 2020, please install the app again from your Wisepops settings (click on Setup code, then Install on Shopify).


Built-in properties can be used in your display scenario or to add dynamic content to your popups.

Let's have a look at the properties.

Product properties

product.available

Definition: This property is equal to false when the product can’t be purchased.

Use cases: Display a popup on products that are out of stock to push alternative products.

product.price

Definition: This property contains the price of the item currently being viewed.

Use cases: Display a popup with the phone number of your customer support team for expensive items.

product.total_inventory_quantity: 

Definition: This property recalls all stock variants of the product currently viewed.

Use cases: Display a popup on soon-to-be out-of-stock items to create a sense of urgency.

product.tags: 

Definition: This property contains a list of the tags associated with the product currently being viewed.

Use cases: Display a coupon on all the product pages associated with a specific tag.

Cart properties

cart.discount_code

Definition: This property returns the name of the coupon code applied to the cart.

Use cases: Display a popup confirming that a coupon code has been applied.

cart.item_count: 

Definition: This property returns the number of items inside the cart.

Use cases: Encourage your visitors to add more products to their cart.

cart.total_price: 

Definition: This property contains the value of your visitor’s cart.

Use cases: Display a popup that is triggered when your visitors haven’t reached the free shipping threshold.

Customer properties

The properties that follow are applicable to logged-in users only.

customer.accepts_marketing:

Definition: This property is equal to true when your customer accepts marketing.

Use cases: You can create an email popup with the condition “customer.accepts_marketing is false” to invite your existing customers to subscribe to your newsletter.

customer.is_logged_in

Definition: This property is equal to true when the visitor is logged in. It's equal to false if the user is logged out (she has no account or is logged out).

Use cases: invite your logged-out users to create an account.

customer.last_order.created_at: 

Definition: This property returns the date of the last order placed by the customer.

Use cases: Create a reactivation popup for your clients who haven’t purchased in a while.

customer.orders_count:

Definition: This property returns the total number of orders a customer has placed.

Use cases: Display a VIP popup for your customers who have placed more than five orders.

customer.tags: 

Definition: This property contains all the tags associated with your client.

Use cases: Create a popup for your VIP customers.

customer.total_spent:

Definition: This property returns the total amount spent on all orders.

Use cases: Create a popup for the customers who have spent a certain amount in your shop.

Debug properties

Are you having a hard time getting a popup to show?

To check the values of the different properties, follow these steps:

  • Open your website in Chrome
  • In Chrome's menu, click on More tools > Developer Tools

  • Open the console tab

  • Copy and paste the following code and press Enter
window[WisePopsObject]('log')

  • Now you'll be able to see the values of the different properties.

If you're still having trouble and you've tried these tips, get in touch via chat.

How did we do?

How To Test Your Custom Properties

How to Target (or Exclude) Visitors Who Have Seen a Specific URL

Contact