Third-Party Integrations
Junip Reviews
Purpose: Product ratings, review summaries, and full review display on PDPs.
Implementation
Junip is integrated through three custom snippets and Shopify app blocks:
| File | Purpose |
|---|---|
snippets/junip-store-key.liquid | Outputs the store key and configuration from shop.metafields.junip |
snippets/junip-product-summary.liquid | Renders star ratings and review count on PDP pages (fallback for blended-reviews) |
snippets/junip-product-review.liquid | Renders the full review widget (junip-product-review span) |
Store Key Configuration
The store key is read from Junip's app metafields:
shop.metafields.junip.store_key-- API keyshop.metafields.junip.onsite_enabled-- Enable/disable onsite reviewsshop.metafields.junip.review_count_enabled-- Show review countshop.metafields.junip.star_color-- Star color (default:#FDB600)
Product Summary (Star Ratings)
The PDP summary under the title is rendered by snippets/blended-reviews.liquid (see Blended Reviews). The on-site junip-product-summary.liquid snippet is the fallback, used when a product has no blended review metafields. It reads:
product.metafields.junip.rating_average-- Average ratingproduct.metafields.junip.rating_count-- Total review count
It prints the summary in the same format as the rest of the site: 4.5 ★★★★★ (3,600) -- the average via helper-review-rating, the count in parentheses via helper-review-count. Stars use custom SVG icons: outlined stars in #9FAEA7 (gray-green) and filled stars in #80BD42 (green). The summary includes a hover-expandable review distribution panel.
A scrollToAnchor() JavaScript function scrolls to the full review section when the rating is clicked.
Full Review Widget
The full Junip review widget is added to PDP templates via Shopify app blocks:
"type": "shopify://apps/junip/blocks/junip-product-review/dc14f5a8-ed15-41b1-ad08-cfba23f9789b"This appears on all five product templates (product.json, product.pdpv2.json, product.pdpv2-nonhemp.json, product.pdp-buttons.json, product.pdpv3-price-day.json), with sortOrder: "mostRecent".
The widget's Write a review button (.junip-write-review-cta) is styled like the theme's purple "wave button" in src/entrypoints/main.scss.
Product Cards (Vue)
On PLP cards, carousels and the Quick Add popup, ratings come from the Vue <junip> component (src/vue/components/Junip/index.vue). When the card data has blendedCount > 0 it shows the blended numbers and skips the Junip API call; otherwise it fetches from api.juniphq.com. Formatting comes from the src/vue/mixins/reviewFormat.js mixin (formatRating, formatReviewCount → 3.6k).
Blended Reviews (Amazon + Chewy)
Purpose: Show one combined rating and review count across the website, Amazon and Chewy.
Data source
Product metafields in the reviews namespace, written by an external daily sync (not by the theme):
| Metafield | Purpose |
|---|---|
reviews.blended_rating | Combined average rating |
reviews.blended_count | Combined review count |
reviews.sources | Comma-separated list of sources |
reviews.amazon_reviews / reviews.chewy_reviews | Review counts per marketplace |
reviews.amazon_url / reviews.chewy_url | Links for the "Read on Amazon" / "View on Chewy" buttons |
Files
| File | Purpose |
|---|---|
snippets/blended-reviews.liquid | Reusable summary. mode: 'compact' → 4.4 ★★★★☆ (3,600) (PDP under the title, product cards); mode: 'full' → card with stars, "N verified reviews across all platforms" and marketplace buttons. count_format: 'short' prints 3.6k. Falls back to junip-product-summary when blended data is missing. |
snippets/helper-review-count.liquid | Count formatting: full → 3,600, short → 3.6k |
snippets/helper-review-rating.liquid | Rating formatting: one decimal, truncated (4.55 → 4.5) to match Junip's widget |
sections/section-blended-review-widget.liquid | "Blended Review Widget" section (see below) |
src/vue/mixins/reviewFormat.js | Vue twin of the two helpers -- keep in sync |
snippets/helper-featured.liquid, snippets/helper-best-sellers.liquid | Pass blendedRating / blendedCount to Vue product cards |
Stars fill proportionally to the rating (4.4 fills 88% of the row), not to the nearest half star.
Blended Review Widget section
Section file: sections/section-blended-review-widget.liquid
The section outputs only a script that overrides Junip's own review summary once Junip has rendered it: the average, the star fill (--junip-star-fill) and the count ("3,600 Reviews across all platforms") are replaced with the blended values, and Junip's per-star distribution bars are hidden (no per-star data exists for blended totals). It only runs when the product has Amazon or Chewy reviews, which is exactly when the "across all platforms" disclaimer is true.
| Setting ID | Type | Label | Default |
|---|---|---|---|
padding_top | range | Padding top | 48 |
padding_bottom | range | Padding bottom | 48 |
custom_class | text | Custom CSS class | -- |
Currently placed on product.pdp-buttons.json only (before the Junip app block).
Review Disclaimer
A global disclaimer is injected below the review section title via CSS ::after on .junip-product-review-title in sections/main-product.liquid. The text is sourced from settings.review_text (see Theme Settings > PDP Settings).
Klaviyo
Purpose: Email marketing, newsletter signup popups, and customer engagement.
Implementation
- Global list ID is configured in Theme Settings > Klaviyo Email List (
settings.klaviyo_id). - Footer trigger: The "Follow Us!" button in the footer opens a Klaviyo popup form:javascript
window._klOnsite.push(['openForm', '{{ settings.klaviyo_id }}']); - Klaviyo's JavaScript SDK is loaded via Shopify's
content_for_header(installed as a Shopify app).
Where Klaviyo Appears
| Location | Behavior |
|---|---|
| Footer | "Follow Us!" button triggers Klaviyo form popup |
| Newsletter sections | Standard Shopify customer form (can be extended with Klaviyo) |
Wholesale Gorilla (WSG)
Purpose: B2B wholesale portal with custom pricing, registration forms, and quick order functionality.
Implementation Files
| File | Purpose |
|---|---|
snippets/wsg-custom.liquid | Core WSG JavaScript and CSS customization |
sections/wsg-custom-fields.liquid | Custom registration form fields |
sections/wsg-registration-settings.liquid | Registration page settings |
templates/page.wsg-proxy-template.liquid | WSG proxy page template |
templates/page.wsg-registration-form.liquid | WSG registration form template |
templates/product.wsg-json.liquid | WSG product JSON template |
Core Functionality (wsg-custom.liquid)
This snippet is loaded in layout/theme.liquid via {% render 'wsg-custom' %} inside <head>. It:
- Detects wholesale customers via
window.isWsgCustomer. - For wholesale customers:
- Redirects the cart icon to
/cart(bypasses mini-cart). - Hides Shopify Pay / additional checkout buttons.
- Shows elements with the
.showWsgclass.
- Redirects the cart icon to
- For retail customers:
- Hides elements with
.showWsgclass (default CSS setsdisplay: none).
- Hides elements with
- Styles the WSG proxy container, Quick Order Form tables, and form inputs.
- Runs a
MutationObserveron.wsg-proxy-containerto apply custom JS once WSG content loads.
Registration Form Fields (wsg-custom-fields.liquid)
The registration form supports the following block types:
| Block Type | Name | Limit |
|---|---|---|
text_block | Text Input | Unlimited |
phone_block | Phone | 1 |
textarea_block | Multi-line text area | Unlimited |
terms_block | Terms & Conditions | 1 |
marketing_opt_in_block | Marketing Opt-in | 1 |
upload_file_block | Upload File | 1 |
company_block | Company | 1 |
dropdown_block | Select dropdown | 1 |
Each field can be marked as required. Custom fields are stored as customField_[label] in the customer's data.
Registration Settings (wsg-registration-settings.liquid)
| Setting ID | Type | Label | Default |
|---|---|---|---|
page-title | text | Page Title | "Apply for a Wholesale Account" |
description | richtext | Description | "Use this form to apply for a wholesale account." |
image | image_picker | Image | -- |
custom-html | html | Custom HTML | -- |
Current values (in settings_data.json): page title "Create a Wholesale Account", empty description, and a Custom HTML block with the Antelope Pets retail-partner copy ("A wholesale relationship with Antelope Pets is more than just a transaction...", fit criteria, "What happens next?"). Section-level custom CSS adds bullet styling and limits .wsg-one-half to 685px.
App Block Configuration
The Wholesale Gorilla app block is registered in settings_data.json as an embedded header bar:
"type": "shopify://apps/wholesale-gorilla/blocks/wsg-header/c48d0487-dff9-41a4-94c8-ec6173fe8b8d"Configured with blue background (#50a2d8) and white text (#FFFFFF).
Current Registration Fields
The WSG custom fields section has 4 blocks configured:
- Website (text, optional)
- Phone Number (phone, optional)
- Tax ID/ABN/VAT Number (text, optional)
- Note (textarea, optional) -- "Tell us a little about yourself so that we can verify your business identity"
Intelligems
Purpose: Price testing and optimization platform.
Loaded as a render-blocking module script in layout/theme.liquid:
<script type="module" blocking="render" fetchpriority="high"
src="https://cdn.intelligems.io/esm/899d4b12440a/bundle.js" async>
</script>This enables A/B testing of product pricing across the storefront.
Intelligems is also used for theme tests: traffic is split between the live Theme A (176347447603, branch master) and the unpublished Theme B (173548077363, branch staging). See Deployment & Branching.
Hotjar
Purpose: Session recording, heatmaps, and user behavior analytics.
Tracking code is embedded in layout/theme.liquid with site ID 5068335:
h._hjSettings = {hjid: 5068335, hjsv: 6};ReCharge (Subscriptions)
Purpose: Subscribe-and-save functionality for recurring product purchases.
Implementation
- The subscription widget is rendered via the
<results>Vue component insnippets/product-form.liquid. settings.subscribe_textprovides the subscription benefits copy (configured in Theme Settings > PDP Settings).- Products can disable subscriptions individually via the metafield
product.variants.first.metafields.custom.disable_subscription. - The
snippets/products-hidde-subscription.liquidfile builds a JavaScript array (window.Shopify.hide_product_ids) of variant IDs that should not show the subscription widget. - When a product has
disable_subscription == true, the.disable-subscriptionCSS class hides the results container. - The same subscription widget (
<results>) is used inside the PLP Quick Add popup. - In the cart, each line can switch selling plans, and one-time lines get an "+ Upgrade to Subscription and Save 10%" link that picks the 4-week plan. See Subscriptions in the Cart.
- Quick-add buttons do not attach a
_sellingPlansline property, so orders in the admin carry no such property. - Subscription portal: the login page's "Manage My Subscription" button and the account page's "Manage subscriptions" link go to
/tools/recurring/get-subscription-access. See Account Pages. - GWP does not count subscription lines towards its threshold.
Checkout Savings (Checkout UI Extension)
Purpose: Show subscription buyers how much they save, inside Shopify checkout.
The custom app Checkout Savings adds a Subscription savings block to checkout. It is documented in Checkout Savings. The theme side (the _theme_id cart attribute written by src/vue/store/cart.js, and why accelerated checkout buttons must stay off) is documented in Cart & Checkout → Checkout Savings.
The theme writes the _theme_id attribute on Theme B (staging) only.
Pinpoint Store Locator
Purpose: Store locator map on the store locator page.
The page.custom-store-locator.json template contains an apps section with the Pinpoint Store Locator app block:
"type": "shopify://apps/pinpoint-store-locator/blocks/locator/019fd12c-653c-7cce-a605-afd3a5e788ba"Block settings: map_tag: "m_8yuz6eure6", feature_color: "#93297a", layout: "side", panel_width: 360, min_height: 560, scroll_zoom: false. Store locations are managed in the Pinpoint app, not in the theme. See Store Locator Page.
Pet Profile (Customer Accounts App)
The Antelope Pet Profile app adds a "My pet" card to the customer account Profile page and stores pet name, species, breed, birthday and photo as customer metafields (custom.pet_*). It is a customer-account UI extension, so it needs Shopify's new customer accounts. The app's repository has an app record config only for Antelope Pets; there is none for Super Snouts (supersnoutshempcompany.myshopify.com). The theme itself does not read these metafields. See Pet Profile and Account Pages.