Syntax
- Liquid
Description
Thewishlist metafield contains an array of product variant GIDs (Global IDs) that the customer has added to their wishlist. This is automatically updated when customers add or remove items from their wishlist through the loyalty program.
The wishlist metafield contains a JSON array of Shopify product variant GIDs that must be parsed using Liquid’s
parse_json filter before accessing.Properties
Type:JSON Array
Namespace: lantern
Return Values
| Scenario | Value | Type |
|---|---|---|
| Customer has wishlist items | Array of variant GIDs | JSON Array |
| Customer has empty wishlist | [] (empty array) | JSON Array |
| Logged out | null | null |
Array Structure
The wishlist is an array of Shopify product variant Global IDs:[index](string): Shopify product variant GID (for examplegid://shopify/ProductVariant/123456789)