Blog

Coding Guides

Tips, tutorials, and insights for Shopify development and ecommerce growth.

Caffeine & CommerceBlog

Your Shopify AI-Readiness Score, Explained

June 3rd, 2026
aiagentready

June 3rd, 2026

aiagentready

Your Shopify AI-Readiness Score, Explained

Installed AgentReady and got a grade? Here is exactly what the AI-readiness score measures, what each letter means, and how to raise it.

Caffeine & CommerceBlog

Lighthouse's New Agentic Browsing Score, and What It Means for Shopify

June 3rd, 2026
aiperformance

June 3rd, 2026

aiperformance

Lighthouse's New Agentic Browsing Score, and What It Means for Shopify

Google added an agentic browsing category to Lighthouse. The surprise is that it does not score your schema. Here is what it actually measures and what a Shopify store can do about it.

Caffeine & CommerceBlog

MCP for Shopify Stores: What It Is and Why It Matters

June 3rd, 2026
aiagentic-commerce

June 3rd, 2026

aiagentic-commerce

MCP for Shopify Stores: What It Is and Why It Matters

MCP lets an AI agent call your store like an API instead of scraping the page. Here is what MCP is, how it fits Shopify, and what to do so the answers agents get are actually good.

Caffeine & CommerceBlog

Shopify Scripts Is Retiring June 30, 2026: What It Means and What to Do

June 3rd, 2026
shopifyfunctions

June 3rd, 2026

shopifyfunctions

Shopify Scripts Is Retiring June 30, 2026: What It Means and What to Do

Shopify Scripts and the Script Editor stop working on June 30, 2026. Here is exactly who is affected, what breaks, and the steps to migrate to Shopify Functions before the deadline.

Caffeine & CommerceBlog

Free Gift With Purchase on Shopify Using Functions (Not Scripts)

June 1st, 2026
shopifyfunctions

June 1st, 2026

shopifyfunctions

Free Gift With Purchase on Shopify Using Functions (Not Scripts)

How to build a free gift with purchase on Shopify with a discount function, the modern replacement for the gift-with-purchase Scripts that stop working on June 30, 2026.

Caffeine & CommerceBlog

How to Tell If Your Store Still Uses Shopify Scripts

May 29th, 2026
shopifyfunctions

May 29th, 2026

shopifyfunctions

How to Tell If Your Store Still Uses Shopify Scripts

A two-minute check to see whether your Shopify store relies on Scripts, which stop working on June 30, 2026, plus what to do if you find any.

Caffeine & CommerceBlog

Replacing Shopify payment Scripts with payment customization Functions

May 27th, 2026
shopifyfunctions

May 27th, 2026

shopifyfunctions

Replacing Shopify payment Scripts with payment customization Functions

Payment Scripts that hide, rename, or reorder payment methods stop working on June 30, 2026. Here is how to move that logic to a Shopify payment customization function.

Caffeine & CommerceBlog

Measuring AI Agent Traffic to Your Shopify Store

May 26th, 2026
aianalytics

May 26th, 2026

aianalytics

Measuring AI Agent Traffic to Your Shopify Store

AI agents are visiting your store, but standard analytics hides them. Here is how to actually measure agent traffic and what to do with the numbers.

Caffeine & CommerceBlog

Replacing Shopify shipping Scripts with delivery Functions

May 25th, 2026
shopifyfunctions

May 25th, 2026

shopifyfunctions

Replacing Shopify shipping Scripts with delivery Functions

Shipping Scripts that hide, rename, or reorder rates stop working on June 30, 2026. Here is how to move that logic to a Shopify delivery customization function.

Caffeine & CommerceBlog

Replacing Shopify discount Scripts with discount Functions

May 22nd, 2026
shopifyfunctions

May 22nd, 2026

shopifyfunctions

Replacing Shopify discount Scripts with discount Functions

Automatic discount Scripts stop working on June 30, 2026. Here is how the same logic, cart-value tiers, returning-customer rewards, free gifts, moves to a Shopify discount function.

Caffeine & CommerceBlog

Shopify Scripts vs Shopify Functions: What Changed and Why It Is Better

May 20th, 2026
shopifyfunctions

May 20th, 2026

shopifyfunctions

Shopify Scripts vs Shopify Functions: What Changed and Why It Is Better

A plain comparison of Shopify Scripts and Shopify Functions, what is the same, what is different, and why the move (forced by the June 30, 2026 deadline) is an upgrade, not just a rewrite.

Caffeine & CommerceBlog

Migrating from Shopify Scripts to Checkout Functions: a practical guide

May 18th, 2026
shopifyfunctions

May 18th, 2026

shopifyfunctions

Migrating from Shopify Scripts to Checkout Functions: a practical guide

Shopify Scripts retires June 30, 2026. Here is how to move your discount, shipping, and payment logic to Shopify Functions, with a direct map from each Script type to its replacement.

Caffeine & CommerceBlog

Do Shopify Functions Require Shopify Plus?

May 15th, 2026
shopifyfunctions

May 15th, 2026

shopifyfunctions

Do Shopify Functions Require Shopify Plus?

A clear answer on whether you need Shopify Plus to use Shopify Functions, and what changes now that Scripts (which was Plus-only) retires on June 30, 2026.

Caffeine & CommerceBlog

How to Filter by Size In Stock on Shopify Collection Pages (2026 Update)

May 13th, 2026
shopifymerchandising

May 13th, 2026

shopifymerchandising

How to Filter by Size In Stock on Shopify Collection Pages (2026 Update)

The modern way to let shoppers filter a Shopify collection to only the sizes that are actually in stock, using native variant filters in Online Store 2.0, with no tags and no jQuery.

Caffeine & CommerceBlog

Preparing Your Catalog for AI-Driven Commerce: ACP, MCP, and Agentic Checkout

May 12th, 2026
ai

May 12th, 2026

ai

Preparing Your Catalog for AI-Driven Commerce: ACP, MCP, and Agentic Checkout

A grounded look at the new agentic commerce protocols, what they need from your catalog, and the work that pays off no matter which ones win.

Caffeine & CommerceBlog

Shopify Agentic Commerce: The Complete Guide for 2026

May 11th, 2026
aiseo

May 11th, 2026

aiseo

Shopify Agentic Commerce: The Complete Guide for 2026

What agentic commerce means for Shopify merchants, why AI shopping agents are a new discovery channel, and exactly how to make your store readable, parseable, and recommendable by ChatGPT, Claude, Perplexity, and Google.

Caffeine & CommerceBlog

Image SEO on Shopify: Alt Text, File Names, and AI Vision

April 28th, 2026
seoai

April 28th, 2026

seoai

Image SEO on Shopify: Alt Text, File Names, and AI Vision

Image SEO on Shopify covers more than alt text now. Here is what matters for search, accessibility, and the AI models that read images directly.

Caffeine & CommerceBlog

Making Shopify Collection Pages SEO-Friendly

April 14th, 2026
seo

April 14th, 2026

seo

Making Shopify Collection Pages SEO-Friendly

Collection pages are the most underused SEO asset on a Shopify store. Here is how to make them rank without creating a mess of duplicate, thin URLs.

Caffeine & CommerceBlog

FAQ Schema on Shopify: Rich Results and Answer Engines

March 31st, 2026
structured-dataseo

March 31st, 2026

structured-dataseo

FAQ Schema on Shopify: Rich Results and Answer Engines

How to add valid FAQPage structured data on Shopify, what changed with Google rich results, and why it matters more for AI assistants now.

Caffeine & CommerceBlog

A Shopify Technical SEO Checklist: Canonicals, Sitemaps, and Crawl Budget

March 17th, 2026
seo

March 17th, 2026

seo

A Shopify Technical SEO Checklist: Canonicals, Sitemaps, and Crawl Budget

The technical SEO issues that are specific to Shopify, why they happen, and how to handle canonicals, sitemaps, and crawl budget the right way.

Caffeine & CommerceBlog

Product Descriptions That Rank and That AI Agents Can Parse

March 3rd, 2026
contentai

March 3rd, 2026

contentai

Product Descriptions That Rank and That AI Agents Can Parse

How to write Shopify product descriptions that work for shoppers, search engines, and the AI assistants that now read your catalog.

Caffeine & CommerceBlog

Core Web Vitals for Shopify in 2026: What Actually Moves the Needle

February 17th, 2026
performanceseo

February 17th, 2026

performanceseo

Core Web Vitals for Shopify in 2026: What Actually Moves the Needle

A practical guide to the three Core Web Vitals on Shopify, what actually causes failures, and the fixes that are worth your time.

Caffeine & CommerceBlog

What Is llms.txt, and Should Your Shopify Store Have One?

February 3rd, 2026
aiseo

February 3rd, 2026

aiseo

What Is llms.txt, and Should Your Shopify Store Have One?

A plain explanation of the llms.txt standard, what it is good for, what it is not, and how to publish one for a Shopify store.

Caffeine & CommerceBlog

Structured Data for Shopify: A Practical Product Schema Guide

January 20th, 2026
structured-dataseo

January 20th, 2026

structured-dataseo

Structured Data for Shopify: A Practical Product Schema Guide

How to write correct Product JSON-LD on Shopify, including offers, variants, GTINs, and the mistakes that quietly disqualify you from rich results.

How AI Shopping Assistants Find Your Shopify Store

January 6th, 2026

seoai

How AI Shopping Assistants Find Your Shopify Store

A practical look at how ChatGPT, Perplexity, and Claude discover and recommend products, and what makes a Shopify store legible to them.

Caffeine & CommerceBlog

Black Friday Cyber Monday Shopify Scripts for Free Gifts

August 9th, 2024
shopifyscripts

August 9th, 2024

shopifyscripts

Black Friday Cyber Monday Shopify Scripts for Free Gifts

A Shopify script to offer a free gift when the cart is over a certain price. Supports up to 4 selectable free gift products.

Caffeine & CommerceBlog

Show Remaining Inventory of All Variants Combined for Product

June 18th, 2024
shopifyliquid

June 18th, 2024

shopifyliquid

Show Remaining Inventory of All Variants Combined for Product

How to display combined inventory quantities across all product variants on collection and product pages in Shopify.

Caffeine & CommerceBlog

How to Make Sure All External Links on Your Site Open in a New Tab

August 9th, 2022
shopifyjavascript

August 9th, 2022

shopifyjavascript

How to Make Sure All External Links on Your Site Open in a New Tab

A simple script to automatically add target='_blank' to every external link on your website.

Caffeine & CommerceBlog

Shopify Shipping Scripts to get you started

December 9th, 2021
shopifyscripts

December 9th, 2021

shopifyscripts

Shopify Shipping Scripts to get you started

I wanted to write a few scripts to help people get started with Shipping scripts. Let me know if you have any comments or want to see anything else for how these work. 1. Discounted Shipping if cart is over $X 2. Free shipping if the cart is over $X 3. Free shipping on rate based on the name of the rate

Caffeine & CommerceBlog

Free Shopify Scripts for Shopify Plus Stores

June 9th, 2021
shopifyscripts

June 9th, 2021

shopifyscripts

Free Shopify Scripts for Shopify Plus Stores

People are charging a lot to make these, so with the help of OnlyGrowth I worked to make a ton of these that people can copy and paste to use on their stores. This is for Shopify Plus only right now. 1. Getting started with Buy 2 Get 1 Free 2. Next we move on to Buy 1 Get 1 For $X 3. Want to give a % discount instead?

Caffeine & CommerceBlog

How to make a delivery date estimator that avoids weekends for a Shopify product page

April 28th, 2021
shopifyguides

April 28th, 2021

shopifyguides

How to make a delivery date estimator that avoids weekends for a Shopify product page

Hey, I've seen a lot of people looking for this online without a solution. I built this and am testing it out on The William Painter Sunglasses website. Here is a screenshot of how it looks. This uses javascript to show the estimated delivery date of your products with javascript by calculating todays date, adding two

Caffeine & CommerceBlog

How to add Realistic Snow onto your Shopify website for the Holidays!

November 20th, 2020
shopifyguides

November 20th, 2020

shopifyguides

How to add Realistic Snow onto your Shopify website for the Holidays!

Hey, here is a really easy way to add snow to your website that looks better than the free apps I have seen. Leave a comment if this works for you and you want to showoff your site! Just add this code at the bottom of your theme.liquid file above the closing

Caffeine & CommerceBlog

Give Returning Customers a Discount with Shopify Scripts

August 9th, 2019
shopifyscripts

August 9th, 2019

shopifyscripts

Give Returning Customers a Discount with Shopify Scripts

A Shopify script to automatically give discounts to returning customers based on their order history.

Caffeine & CommerceBlog

How to Give an Automatic Discount on Shopify Based on Cart Value

December 9th, 2018
shopifyscripts

December 9th, 2018

shopifyscripts

How to Give an Automatic Discount on Shopify Based on Cart Value

Two easy Shopify script examples for applying automatic discounts based on cart value - fixed threshold and tiered discounts.

Caffeine & CommerceBlog

Enable Smooth Scrolling on a Shopify Website

March 18th, 2018
shopifyjavascript

March 18th, 2018

shopifyjavascript

Enable Smooth Scrolling on a Shopify Website

A simple jQuery snippet to add smooth scrolling to anchor links on your Shopify store.

Caffeine & CommerceBlog

Show All Colors of a Product as Separate Products on the Collection Page

February 9th, 2018
shopifyliquid

February 9th, 2018

shopifyliquid

Show All Colors of a Product as Separate Products on the Collection Page

How to display individual product color variants as separate items on your Shopify collection page while keeping them as one product.