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.
- XML
- CSV
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>
Valid Value
color
red
Click to show more valid CSV examples
color
red
color
green
color
blue
color
red/green/blue
color
RED/GREEN/BLUE
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.
- XML
- CSV
<g:color>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (more than 40 characters value)</g:color>
<g:color>black/mint/blue/white</g:color>
danger
validation_invalid_length
color
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (more than 40 characters value)
danger
Properties
Property | Value | Description |
---|---|---|
Data Type | string | Closest data type in code |
Nested | False | Defines if this field consists of one or more sub-fields |
Case Sensitive | False | If small or large letters matter for this field |
Repeatable | True | If you can supply multiple items of this field (it´s a list) |
Repeatable limit | 3 | If a list, this specifices the max number of items |
Changelog
📅 2022-12-07
Added
Initial definition