Image URLs
The Komerza API returns image filenames rather than full URLs. All user-generated content is served from a single CDN:Building Image URLs
Product Images
Products have animageNames array containing filenames:
Variant Images
Variants also have their ownimageNames array:
Store Logo and Banner
For store images, use the built-in helper functions instead:Image Helper Function
Create a reusable helper for your storefront:Example: Product Gallery
Example: Product Card
Handling Missing Images
Always handle cases where images may not exist:Image Types
| Source | Property | Type |
|---|---|---|
| Product | imageNames | string[] |
| Variant | imageNames | string[] |
| Store | Use getStoreLogoUrl() | Helper function |
| Store | Use getStoreBannerUrl() | Helper function |