Skip to main content
The Shopify SDK provides Liquid snippets, theme app extensions, and cart integration for Shopify stores.

Installation

Install via the Shopify App Store or add the script tag to your theme:

Product page integration

Carbon badge

Add to your product template (product.liquid or theme block):

Impact score display

Cart integration

Automatically calculate and display the cart’s environmental impact:
The widget updates automatically when items are added or removed from the cart.

Comparison widget

Add product comparisons to collection pages:

Theme app extension

For Shopify 2.0 themes, use the Hey Chocolate theme app extension:
  1. Install the Hey Chocolate app from the Shopify App Store
  2. Go to Online Store > Themes > Customize
  3. Add Hey Chocolate blocks to any section:
    • Carbon Badge — Product sustainability score
    • Impact Calculator — Interactive calculation widget
    • Cart Impact — Shopping cart carbon footprint
    • Comparison Table — Product comparison widget

Webhook integration

Connect Shopify order webhooks to Hey Chocolate for automatic Scope 3 tracking:
Every Shopify order automatically gets a carbon footprint calculation, contributing to your CSRD/ESG reports.

Liquid variables

When using the app, the following variables are available in Liquid: