Usage Guide#
This guide explains how to set up and use the color display functionality in your Shopware store.
Setting Up Product Properties#
Step 1: Create Property Groups#
- Navigate to Catalogues > Properties in your Shopware Administration
- Click Add property group
- Enter a name for your color property group (e.g., "Product Colors", "Main Color", "Accent Color")
- Configure the group settings:
- Display type: Choose how properties should be displayed in filters
- Sorting type: Set how color options should be sorted
- Filterable: Enable if you want customers to filter by colors
Step 2: Add Color Properties#
- Open your newly created property group
- Click Add property to add individual color options
- For each color property:
- Name: Enter the color name (e.g., "Red", "Blue", "Forest Green")
- Color hex code: Optionally set a specific hex code (this overrides the plugin's built-in colors)
- Position: Set the display order
- Media: Optionally add a color swatch image
Step 3: Configure Plugin Settings#
- Go to Extensions > My Extensions > Topdata Colors > Configure
- In the Color Property Groups field, select the property groups you created
- Configure other settings as needed (see Configuration Settings guide)
- Save the configuration
Step 4: Assign Properties to Products#
- Edit a product in Catalogues > Products
- Go to the Properties tab
- Select the appropriate color properties for this product
- Save the product
Understanding Color Display Logic#
Basic Color Mapping#
The plugin automatically maps property names to colors using: 1. Built-in color database (200+ predefined colors) 2. Property hex codes (if set in the property configuration) 3. Custom color overrides (defined in plugin configuration)
Color Name Matching#
Color names are matched case-insensitively. These all work the same:
- "Red" → matches built-in red color
- "red" → matches built-in red color
- "RED" → matches built-in red color
Multi-Color Syntax#
The plugin supports advanced color combinations:
Count Prefixes#
3x red→ Displays 3 red dots2x blue→ Displays 2 blue dots
Color Combinations#
red+blue→ Displays red and blue dots togetherred/blue→ Alternative syntax for color combinationsred+blue+green→ Displays three colors together
Complex Examples#
2x red+blue→ Displays 2 combination dots (each with red and blue)3x multicolor→ Displays 3 multicolor dotsred, blue, green→ Displays separate color groups (comma-separated)
Product Setup Examples#
Example 1: Simple Single Color Product#
Product: Red T-Shirt Property Assignment: "Red" from "Product Colors" group Result: Single red dot displayed
Example 2: Multi-Color Product#
Product: Striped Shirt Property Assignment: "Red+Blue" from "Product Colors" group Result: Red and blue dots displayed together
Example 3: Product with Multiple Color Options#
Product: Available in multiple colors Property Assignment: "Red", "Blue", "Green" from "Product Colors" group Result: Three separate color dots displayed
Example 4: Product with Color Variations#
Product: Jacket with accent colors Property Assignment: - "Black" from "Main Color" group - "Red" from "Accent Color" group Result: Black dot and red dot displayed
Best Practices#
Property Naming#
- Use standard color names when possible (red, blue, green, etc.)
- Be consistent across your product catalog
- Use descriptive names for custom colors (e.g., "Forest Green" instead of "Green1")
- Consider translations if you operate in multiple languages
Property Group Organization#
- Create specific groups for different color types:
- "Main Color" for primary product colors
- "Accent Color" for secondary colors
-
"Pattern Colors" for multi-colored patterns
-
Keep groups focused - don't mix color properties with other attributes
- Use clear naming that makes sense to your team
Color Override Strategy#
- Start with built-in colors before adding custom overrides
- Document custom colors for your team
- Use hex codes consistently (#ff0000 format)
- Test color combinations before going live
Display Locations#
Colors automatically appear in:
Product Listing Pages#
- Category pages
- Search results
- Brand pages
- Tag pages
Product Detail Pages#
- Main product information area
- Variant selection (if applicable)
Cross-Selling Areas#
- Related products
- Recommended products
- Recently viewed products
Comparison Features#
- Product comparison popups
- Wishlist displays
Troubleshooting Common Issues#
Colors Not Appearing#
- Check property group selection in plugin configuration
- Verify property assignment to products
- Clear cache after configuration changes
- Check color name spelling against built-in database
Wrong Colors Displaying#
- Verify property names match color database entries
- Check custom color overrides for conflicts
- Review property hex codes in property configuration
- Test with simple color names first
Performance Optimization#
- Limit property groups to only those needed for colors
- Use simple color names instead of complex overrides when possible
- Avoid excessive custom SVG complexity
- Monitor page load times with many color properties
Advanced Usage#
Custom Color Definitions#
For colors not in the built-in database, add them to the color overrides:
Pattern and Gradient Colors#
Create special visual effects:
rainbow|linear-gradient(45deg, #ff0000, #00ff00, #0000ff)
stripes|repeating-linear-gradient(45deg, #000, #000 2px, #fff 2px, #fff 4px)
Multi-Language Support#
Define color names in multiple languages:
Integration with Themes#
The plugin works with most Shopware themes. If you need to customize the appearance:
- Override templates in your theme if needed
- Add custom CSS to style color displays
- Use provided CSS classes for styling:
.topdata-color- Main container.color- Individual color elements.group- Color group container
Testing Your Setup#
- Create test products with various color combinations
- Check different page types (listing, detail, search)
- Test with different devices and screen sizes
- Verify color accuracy matches your expectations
- Test performance with realistic product catalogs
By following this guide, you should be able to successfully implement and use the color display functionality throughout your Shopware store.