You can customize the cart notification popup for individual products by setting up metafields. These metafields will override the default section settings when a product is added to the cart.
Setting Up Metafields
All metafields use the namespace squiggle_and_code. To set these up in your Shopify admin:
- Go to Settings → Metafields
- Click Products
- Click Add definition
- Set the Namespace to:
squiggle_and_code - Set the Key and Type as specified below
Product Benefits Section
These metafields let you show up to 3 benefit points with icons for each product:
| Metafield Key | Type | Description |
|---|---|---|
cart_benefits_one_icon | File | Icon image for first benefit point |
cart_benefits_one_text | Single line text | Text for first benefit point |
cart_benefits_two_icon | File | Icon image for second benefit point |
cart_benefits_two_text | Single line text | Text for second benefit point |
cart_benefits_three_icon | File | Icon image for third benefit point |
cart_benefits_three_text | Single line text | Text for third benefit point |
Upsells Section
These metafields let you show up to 2 related products as upsells:
| Metafield Key | Type | Description |
|---|---|---|
cart_upsells_one | Product reference | First upsell product to display |
cart_upsells_two | Product reference | Second upsell product to display |
Reviews Section
These metafields let you show a customer review with star rating:
| Metafield Key | Type | Description |
|---|---|---|
cart_reviews_quote | Rich text | Customer review quote |
cart_reviews_name | Single line text | Customer name for the review |
cart_reviews_stars | Integer | Star rating (1-5) |
Content Section
These metafields let you add custom text and image content:
| Metafield Key | Type | Description |
|---|---|---|
cart_content_text | Rich text | Custom text content |
cart_content_image | File | Custom image to display |
How to Use
- Create the metafield definitions using the table above
- Go to any product in your admin
- Scroll down to the Metafields section
- Fill in the values for the sections you want to customize
- Save the product
Note: If you don't set a metafield value, the cart notification will use the default values from the section settings instead.