Color Palettes Subtab
The properties on the Color Palettes subtab let you can configure the color palettes to use for facets. You can use images or any valid CSS color value. You can use the default color palettes listed in the Color Palettes subtab, or you can configure your own. Before setting up a color palette, make sure you’ve created a custom list of colors for your matrix items. For details, see Custom Lists.
To configure a color palette:
-
Go to Commerce > Websites > Configuration.
-
Select the website and domain.
-
Click Configure.
-
Select the Layout subtab.
-
Select the Color Palettes subtab.
-
Click a row in the list.
-
In the Palette ID field, enter an ID for the color. Default color palettes use the default ID. For custom palettes, use numbers 1 to 20.
Note:Most sites use only one color palette, so the palette ID is the same for every color. However, you can have use multiple color palettes by entering a different value in the Palette ID field for each color.
-
In the Color Name field, enter a color name that matches the name in your custom color list (Customization > Lists, Records & Fields > Lists).
-
In the Color Value field, enter a color value. This can be a color name, hex value, or gradient. For best results, use hex values.
Or
-
If you want a color option that doesn't have a hex value, such as an image of fabric, leave the Color Value field blank and set the following fields:
-
In the Image Source field, specify the image URL. For example,
/siteImgFolder/colorImage.jpg
. -
In the Image Height field, enter the image height in pixels.
-
In the Image Width field, enter the image width in pixels.
-
-
Click Add.
-
Repeat steps 6 to 11 for each color palette you want to add.
Note:To remove a color palette, click its row and select Remove.
-
Click Save.
-
Select the Shopping Catalog subtab.
-
Select the Facets subtab.
-
Select an item in the list.
-
In the Color Palette field, enter the palette id.
-
From the Template field, select facets_faceted_navigation_item_color.tpl.
-
Click OK.
-
Click Save.
Color Palettes Elbrus Release and Later
The Image fields above are available in Elbrus and later Commerce releases. For earlier versions, you can add the image as an object in the Color Value field. Set the type
(image), src
(URL), and width
and height
(in pixels).
{type: 'image', src: '/siteImgFolder/colorImage.png', width: 20, height: 20}
IDs |
|
IDs (pre-Elbrus)
Note:
These properties appear in the Shopping Catalog tab and Facet Color Palettes subtab in Vinson implementations of SCA. |
|
UI location |
Layout > Color Palettes |
Configuration file (pre-Vinson) |
SC.Shopping.Configuration.js |