Shopify owners rarely start from a blank page. Current themes, Dawn included, already send a Product block with every product page. So your work is usually tidying, not building. Look at what the theme already sends, fill the holes, and clear away any second block an app has added. The catch is durability. Theme upgrades and fresh app installs can overwrite or duplicate your edits, so place your changes where they can survive both.
Platform screens change over time. If a menu name in this guide does not match what you see, check the vendor docs linked in Sources for the current path.
How Shopify handles this differently
Three platform facts shape the whole job, and the third one bites first.
Apps cause most of the trouble. SEO apps and review apps often send their own Product blocks, and a page carrying two blocks that disagree is the failure Shopify owners hit most often.
Then the theme. Shopify builds product pages on its own servers from Liquid templates, and the JSON-LD sits inside those templates. There is no settings panel that owns this, so the theme is where the markup lives.
And the access. You get no server access and no WordPress style plugin layer. Your levers are theme files, apps, and product details.
Work through it in this order
Look before you edit. Open a live product page and view the page source. Do not judge by the rendered page. Search the source for application/ld+json and count the Product blocks. Work out which block comes from the theme and which ones come from apps. Do this step before you change anything.
Improve the theme block, do not stack a new one beside it. When the theme already sends a block, extend that block in the theme code. In your Shopify admin, open Online Store, then Themes. Open the menu on your live theme and pick Edit code. Hunt for the product template. In most current themes it is a section file such as main-product.liquid, but names vary by theme, so search the theme for the application/ld+json script and edit where you find it.
A short addition inside the product template, using Liquid values so the markup tracks the page, looks like this:
{% if template.name == 'product' %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": {{ product.title | json }},
"brand": { "@type": "Brand", "name": {{ product.vendor | json }} },
"offers": {
"@type": "Offer",
"price": "{{ product.selected_or_first_available_variant.price | money_without_currency }}",
"priceCurrency": "{{ cart.currency.iso_code }}",
"availability": "https://schema.org/{% if product.available %}InStock{% else %}OutOfStock{% endif %}"
}
}
</script>
{% endif %}
Put the json filter on text values. Without it, a quote mark in a product title can break the JSON. Keep the business name, the stock status, and the currency pulled live from Liquid. A price typed straight into a template goes stale the moment you run a sale.
Only build a full block when the theme sends none. Older themes and heavily altered themes sometimes have the markup stripped out. In that case, add one complete Product block to the product template using the same Liquid values, then check it field by field against a full reference block.
Pick one owner and drop the other blocks. When a review app or an SEO app sends its own Product block, you hold two competing versions of the truth. Choose one. Either switch off the app's schema output, which most apps let you do with a toggle, or delete the theme block and let the app own it. Leaving both in place is not a safe middle ground.
Test the way a picky buyer would. Run a product address through Google's Rich Results Test and the Schema Markup Validator. Add a variant address and an out of stock product to the test set. Stock status is the field that drifts first, so the out of stock page deserves a direct check.
Write down what you changed. Hand edits do not travel with you to a new theme. Keep a short note of the file you edited and the fields you added, so the next redesign does not quietly lose the work.
A shop that fixed it without a third block
Imagine a paper goods shop on Shopify, Bluebird Paper Co., with about 50 products and a reviews app installed. The owner views a product page source and finds two blocks. The theme block carries price and stock status but no business name. The reviews app block carries the rating but formats the price differently. The answer is not a third block. The owner switches off the app's product schema output, keeps the theme block, and adds the business name and the rating fields to the theme template with Liquid values. One block remains, built from the same data that builds the page.
Two companions worth adding
Once the markup is valid, two more pieces help AI tools use it. An llms.txt file gives tools a short plain summary of what your business sells and where the key pages sit. Open crawler permissions in robots.txt make sure AI crawlers can reach the pages carrying the markup at all. Aizii Learn covers both topics in full, in separate guides.
What this guide leaves out
This guide covers getting valid markup onto Shopify product pages. It does not cover keeping that markup fresh as prices and stock move, which is ongoing monitoring work. It also does not cover getting AI crawlers past edge and CDN settings, or letting an AI tool finish a checkout, which is a separate transaction job.
Frequently Asked Questions
Must I write product schema from scratch on Shopify?
Mostly no. Current themes already send a Product block. Check the theme output first, then fill the gaps.
Why do two blocks cause so much trouble?
Tools see two versions of the same product and cannot tell which price or stock status to trust. They may pick one at random or drop both. One owner is the only clean setup.
Why do values need to come from Liquid variables?
Because a typed in price stays frozen while the shop moves on. Liquid values update when the product updates, so the markup and the page stay in step.
Will my edits survive a theme switch?
No. New themes bring their own templates. Your note of what changed and where is what lets you redo the work fast on the next theme.
Verified Sources & Technical Documentation
- Google Search Central, Product structured data Specific https://developers.google.com/search/docs/appearance/structured-data/product
- Shopify, customize robots.txt Specific https://shopify.dev/docs/storefronts/themes/seo/robots-txt
- Shopify developer docs, theme templates General Docs https://shopify.dev/docs/storefronts/themes/architecture/templates
- Schema.org, Product type General Docs https://schema.org/Product
links marked specific point to the page that supports the claim in this guide. Links marked general docs point to the vendor's general docs section for that topic, not to a page that proves every step. Check the vendor docs for the current path before relying on a menu name or click path in this guide.