Skip to main content

color

Optional Field

This field is optional, but omitting it may leave out functionality on Prisjakt for your offers

Description

Describe your product's color. Using this attribute is strongly recommended for Fashion and Beauty categories. Add it to improve search results and listing.

Validation Rules

  • Up to three color strings separated by a forward slash is allowed

Best Practices

Do

  • Use the same color as in your product page

Don´t

  • Don't use numbers and HTML color coding
  • Don't use phrases describing other product properties like design, pattern, size etc

Example Values

Here are examples of how a valid color value should look like in XML and CSV (with header) respectively.

Valid Value
<g:color>red</g:color>
Click to show more valid XML examples
<g:color>red</g:color>
<g:color>green</g:color>
<g:color>blue</g:color>
<g:color>red/green/blue</g:color>
<g:color>RED/GREEN/BLUE</g:color>

Error Codes

Below you will find possible error codes generated when validating this field alongside with an example in XML and CSV that would trigger the code. Please refer to the validation rules to understand the cause.

<g:color>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (more than 40 characters value)</g:color>
<g:color>black/mint/blue/white</g:color>

Properties

PropertyValueDescription
Data TypestringClosest data type in code
NestedFalseDefines if this field consists of one or more sub-fields
Case SensitiveFalseIf small or large letters matter for this field
RepeatableTrueIf you can supply multiple items of this field (it´s a list)
Repeatable limit3If a list, this specifices the max number of items

Changelog

📅 2022-12-07

Added

Initial definition

References