> For the complete documentation index, see [llms.txt](https://docs.spectrumcustomizer.com/integration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.spectrumcustomizer.com/integration/ecommerce/spectrum-and-shopify-integration/shopify-cart.md).

# Shopify Cart

It’s important to know a bit about how Spectrum stores information related to customization. We store all the interactions with a product in an object that we call the Recipe. Each customized product has a unique identifier (8 digit alpha-numeric) that is used throughout the customization process starting with add to cart. With a single recipe ID, we can do the following:

1. Create a customized image or video at any angle.
2. Get product detailed information
3. Align choices with product add-ons (see above)
4. Create production ready files for manufacturing or embellishment.

Spectrum used a standard add to cart method that is documented here: [Add to Cart](/integration/ecommerce/add-to-cart.md).

Many clients want to show the customized image in the cart and to do that, the unique recipe ID must be stored along with the product. Spectrum recommends storing the Recipe ID in a line item `_recipeId` property (the leading underscore hides the property from customers in Liquid; this is the default name used by the Spectrum Shopify App and is configurable per store). This way, the unique identifier is available for use in the cart and all the way through the order process. Later on, we’ll show how Spectrum can automatically fulfill orders based on the line item property.

Once the property is set, a simple Liquid snippet can be added to the cart template to show the customized image. The Spectrum render URL pattern is `https://api.spectrumcustomizer.com/api/assets/generated/recipeset/readable/{recipeId}/north` — see [Rendering](/integration/api/rendering.md) for transform/sizing options.

Note: Spectrum has an assortment of Shopify liquid code that can be used across implementations.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.spectrumcustomizer.com/integration/ecommerce/spectrum-and-shopify-integration/shopify-cart.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
