How it works
- At generation time, the plugin checks whether the asset is related to any Commerce variant or product.
- If a linked variant is found, its parent product is resolved automatically.
- The configured product fields — name, brand, color, material — are read and passed to the API as additional context.
- If no linked product or variant is found, generation proceeds as usual without any extra context.
Commerce settings
All Commerce settings are available under AltTextLab → Settings → Commerce.Product name for alt text
Controls which title is sent to the API as the product name:- Use product name (default) — uses the title of the linked product.
- Use variant title — uses the title of the linked variant. Useful when each variant represents a distinct version of the product, for example a city poster sold in multiple cities: “New York”, “Paris”, “Tokyo”. Falls back to the product title if no variant is linked.
Brand field handle
The handle of a Plain Text (or similar) field on the product that stores the brand name, for examplebrand. Leave empty to skip brand context entirely.
If your products have a field with handle
brand containing “Acme Co.”, enter brand here and the AI will receive that value as additional context.Color source
Determines which element the color field is read from:- Use product color field (default) — reads the color field from the product.
- Use variant color field — reads the color field from the variant. Useful for products where color is a variant-level attribute.
Color field handle
The handle of the field that stores the color value, for examplecolor. The field is read from the product or variant depending on the Color source setting. Leave empty to skip color context.
Material source
Determines which element the material field is read from:- Use product material field (default) — reads the material field from the product.
- Use variant material field — reads the material field from the variant.
Material field handle
The handle of the field that stores the material value, for examplematerial. The field is read from the product or variant depending on the Material source setting. Leave empty to skip material context.