Setting up fallback images for products and categories in Magento 2.x when default images are missing
Placeholder images ensure your PureClarity recommendations always display properly, even when products or categories don’t have images assigned. Configure fallback images to maintain visual consistency and professional appearance.
Purpose: Fallback image for products without images Format: Full URL to image file Fallback: Magento default placeholder if emptyThis image URL is sent to PureClarity when a product has no assigned image, ensuring recommendations always display product visuals.Best practices for product placeholders:
Consistent dimensions - Match your typical product image size
Brand appropriate - Use branded or neutral placeholder design
High quality - Ensure images look professional in recommendations
Optimized format - Use WebP or optimized JPG/PNG for performance
Purpose: Fallback image for categories without images Format: Full URL to image file Fallback: Magento default placeholder if emptyUsed when category-based recommendations require images but the category has no assigned image.Use cases for category placeholders:
Purpose: Fallback for category “Override Image” attribute Format: Full URL to image file Fallback: No value sent if emptyThis placeholder is used specifically when categories have no “Override Image” set in their PureClarity attributes.When this applies:
Custom templates - Using override images in PureClarity templates
Campaign-specific visuals - Different images for promotional periods
A/B testing - Alternative category representations
Secondary placeholders are only relevant if you’re using category override images in custom PureClarity templates. Most standard implementations won’t need this setting.