A product can look correct in the theme editor and still show the wrong layout on the storefront. Before asking an AI coding tool to rewrite Liquid, check whether you are previewing an alternate template or actually using it for that product. Those are different operations.
Disclosure: AdsX may earn a commission from qualifying Shopify signup links. Official sources reviewed November 30, 2026. Examples are fictional; no hands-on store testing is claimed.
Original AdsX explanatory illustration.
This guide is an assignment review for a small catalog. It is useful when one item should have a different layout, or when a change intended for one product appears on several others. It does not generate a new theme or certify AI-generated code.
Start with the product and theme you are actually viewing
Record the product URL, the live theme's name, the theme open in the editor and the intended template name. Keep preview links separate from customer-facing URLs. A screenshot without that context can send a developer toward the wrong file.
Shopify's template documentation explains that editing a template affects every page using it. Previewing a product with another template does not assign that template to the product. Assignment options in admin come from the current live theme.
Those three facts explain several apparent code bugs. If your alternate template exists only in a draft theme, its absence from the live assignment selector does not by itself establish that the template is broken. Do not publish an unfinished theme just to make an option appear. Include template availability and assignment in the planned theme release instead.
Make an assignment worksheet before editing
Consider a fictional store with two products: a linen pouch and a gift set. The gift set needs a contents section; the pouch should keep its simpler layout.
| Item | Intended layout | Observation | Next check |
|---|---|---|---|
| Linen pouch | Default product | Gift contents section appears | Which other items share this template? |
| Gift set | Gift-set template | Editor preview looks correct | Is the saved product assignment correct? |
| Gift-set template | Available in planned theme | Only seen in draft editor | Is it included in the release being reviewed? |
This table separates observations from conclusions. “Editor preview looks correct” is evidence about that preview. It is not proof of a saved assignment or a customer-facing result.
For each item, record the actual saved value from admin. Avoid copying a whole catalog when three representative products will expose the issue. Include one product expected to change, one sharing its current template, and one expected to remain unaffected.
Choose the smallest correction
If the right template exists in the live theme and the product has the wrong assignment, review an assignment correction before changing code. Shopify documents selecting the product's Theme template in Products and saving the choice. Verify the storefront afterward.
If the assignment is correct but several products show the same unwanted section, inspect the shared template's configuration. A shared edit may be doing exactly what it was configured to do. Decide whether the content belongs in a separate template or in product-specific data before duplicating layouts indiscriminately.
If only the content is wrong, compare the underlying product facts too. The duplicate-product review handles inherited copy and identifiers. If a dynamic block is blank, use the metaobject block diagnostic. Neither problem is solved merely by renaming a template.
Give AI an evidence table, not store access
The following untested prompt is a read-only planning brief for an approved general assistant. It is not a Sidekick admin app, a Flow workflow or a command to deploy theme code.
Review the supplied product/template worksheet. Separate live theme, draft theme, editor preview selection and saved product assignment. Identify missing evidence and which products could be affected by a shared-template edit. Suggest checks in order, starting with assignment and configuration. Do not infer admin values, publish a theme, rewrite Liquid, or claim the storefront was tested. Return an observation, hypothesis and verification column.
Supply names and non-sensitive observations, not credentials or customer data. Read the output for unsupported certainty. If the model says “the template is definitely missing,” require evidence from the relevant theme before accepting that diagnosis.
A short manual review may be faster than using AI. The assistant earns its place only if it helps organize several conflicting observations; it does not replace checking the saved settings.
Verify the affected and unaffected products
After an authorized correction, open the customer-facing URLs again. Check the intended sections, product options, price and add-to-cart behavior. Review a narrow mobile viewport and a desktop layout. Then check the control product that was supposed to remain unchanged.
Before modifying theme configuration, follow Shopify’s theme duplication guidance to retain a backup copy. A theme backup is not a backup of the separate product assignment record.
Keep the prior assignment and a brief description of any theme configuration change in your release note. If the result is wrong, that record gives you a specific correction to reverse instead of relying on memory.
For code changes that remain necessary, continue with Liquid basics and the Claude Code theme guide. For a first-store sequence, use Start a Shopify Store. The merchant prompt library keeps this review brief available without an email signup.