Skip to main content
StorePolicyCheck
All Free GMC Tools

2026 GMC NEXT & AI SHOPPING SPEC · US, UK, EU, CA & AU

Free Shopify ProductGroup, Return & Shipping Liquid JSON-LD Generator

Legacy Shopify themes often output only the cheapest variant price in structured data or omit 2026 Google Merchant Center Next MerchantReturnPolicy and OfferShippingDetails objects. Configure your real shipping and return rules below to generate a drop-in .liquid snippet with exact ?variant= parity.

Shipping Rate & Delivery Window (USD)

MerchantReturnPolicy Rules

snippets/storepolicycheck-gmc-schema.liquid
{% comment %}
  StorePolicyCheck — Google Merchant Center Next (2026) ProductGroup + Return & Shipping Schema Patch
  Target Market: US (USD) | Domain: yourstore.com
  Installation:
  1. Shopify Admin -> Online Store -> Themes -> "..." -> Edit code
  2. Under "Snippets", create "storepolicycheck-gmc-schema.liquid" and paste this entire file.
  3. Open "layout/theme.liquid", paste {% render 'storepolicycheck-gmc-schema' %} right above </head>, and Save.
{% endcomment %}
{% if request.page_type == 'product' and product %}
<script type="application/ld+json">
{
  "@context": "https://schema.org/",
  "@type": "ProductGroup",
  "@id": "{{ shop.url }}{{ product.url }}#product-group",
  "name": {{ product.title | json }},
  "description": {{ product.description | strip_html | truncatewords: 120 | json }},
  "url": "{{ shop.url }}{{ product.url }}",
  "productGroupID": "{{ product.id }}",
  "brand": {
    "@type": "Brand",
    "name": {{ product.vendor | default: shop.name | json }}
  }{% if product.featured_image %},
  "image": "https:{{ product.featured_image | image_url: width: 1500 }}"{% endif %},
  "hasMerchantReturnPolicy": {
        "@type": "MerchantReturnPolicy",
        "applicableCountry": "US",
        "returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow",
        "merchantReturnDays": 30,
        "returnMethod": "https://schema.org/ReturnByMail",
        "returnFees": "https://schema.org/ReturnFeesCustomerResponsibility"
      },
  "hasVariant": [
    {% for variant in product.variants %}
    {% assign variant_price_major = variant.price | divided_by: 100.0 %}
    {% assign clean_barcode = variant.barcode | strip %}
    {% assign barcode_len = clean_barcode | size %}
    {
      "@type": "Product",
      "@id": "{{ shop.url }}{{ product.url }}?variant={{ variant.id }}#variant",
      "name": {{ product.title | append: ' - ' | append: variant.title | json }},
      "sku": {{ variant.sku | default: variant.id | json }}{% if barcode_len == 8 or barcode_len == 12 or barcode_len == 13 or barcode_len == 14 %},
      "gtin": {{ clean_barcode | json }}{% endif %}{% if variant.featured_image %},
      "image": "https:{{ variant.featured_image | image_url: width: 1500 }}"{% elsif product.featured_image %},
      "image": "https:{{ product.featured_image | image_url: width: 1500 }}"{% endif %},
      "offers": {
        "@type": "Offer",
        "url": "{{ shop.url }}{{ product.url }}?variant={{ variant.id }}",
        "price": "{{ variant.price | divided_by: 100.0 }}",
        "priceCurrency": {{ cart.currency.iso_code | json }},
        "availability": "https://schema.org/{% if variant.available %}InStock{% else %}OutOfStock{% endif %}",
        "itemCondition": "https://schema.org/NewCondition",
          "shippingDetails": {
            "@type": "OfferShippingDetails",
            "shippingRate": {
              "@type": "MonetaryAmount",
              "value": "{% if variant_price_major >= 50 %}0.00{% else %}6.95{% endif %}",
              "currency": {{ cart.currency.iso_code | json }}
            },
            "shippingDestination": {
              "@type": "DefinedRegion",
              "addressCountry": "US"
            },
            "deliveryTime": {
              "@type": "ShippingDeliveryTime",
              "handlingTime": {
                "@type": "QuantitativeValue",
                "minValue": 1,
                "maxValue": 2,
                "unitCode": "DAY"
              },
              "transitTime": {
                "@type": "QuantitativeValue",
                "minValue": 3,
                "maxValue": 7,
                "unitCode": "DAY"
              }
            }
          }
      }
    }{% unless forloop.last %},{% endunless %}
    {% endfor %}
  ]
}
</script>
{% endif %}