learnshopify.dev/Workspace
ai output review

Review the AI's cross-sell section and make the call.

Prompt given to AI
“Write a Shopify product-page section titled 'Best paired with' that renders the products stored in the custom.pairs_with list metafield as cards: image, title, price, each linking to its product.”
AI Output (liquid)
<section class="pairs-with">
  <h2 class="pairs-with__heading">Best paired with</h2>
  <div class="pairs-with__grid">
    {% for pairing in product.metafields.custom.pairs_with %}
      <a class="pairs-with__card" href="{{ pairing.url }}">
        {{ pairing.featured_image | image_url: width: 300 | image_tag: alt: pairing.title }}
        <h3 class="pairs-with__title">{{ pairing.title }}</h3>
        <p class="pairs-with__price">{{ pairing.price | money }}</p>
      </a>
    {% endfor %}
  </div>
</section>
Your code review call:
0 / 1 task solved
northwind-coffee.com
Live Storefront