sale_price
Optional Field
This field is optional, but omitting it may leave out functionality on Prisjakt for your offers
Description
It should be the same as the currently active sales price on your product page. If the sales is inactive it should be empty or sale_price_effective_date
attribute should be used.
Related Fields
Validation Rules
- Must be a number (value) followed by a space and a currency (unit)
- Number may have two decimals, separated by a
.
(dot) - Currency must be three upper case characters and a valid ISO 4217 currency
- Zero prices are not allowed
- Must be lower than
price
Best Practices
Do
- Price sent in feed should be the same as the price value on your product page
- Currency sent in feed should match currency on your product page
Don´t
- Do not include extra charges in the cost (such as shipping cost)
- Do not use thousand separators or similar in the value (while we may handle some of these cases we recommend you to just send plain numbers like
10000.50 SEK
)
Example Values
Here are examples of how a valid sale_price value should look like in XML and CSV (with header) respectively.
- XML
- CSV
Valid Value
<g:sale_price>99.99 SEK</g:sale_price>
<g:price>3200000 SEK</g:price>
Click to show more valid XML examples
<g:sale_price>99.99 SEK</g:sale_price>
<g:price>3200000 SEK</g:price>
<g:sale_price>100 SEK</g:sale_price>
<g:price>3200000 SEK</g:price>
<g:sale_price>SEK 100</g:sale_price>
<g:price>3200000 SEK</g:price>
<g:sale_price>99,99 SEK</g:sale_price>
<g:price>3200000 SEK</g:price>
<g:sale_price>10,000.00 SEK</g:sale_price>
<g:price>3200000 SEK</g:price>
<g:sale_price>10 000.00 SEK</g:sale_price>
<g:price>3200000 SEK</g:price>
<g:sale_price>10.000 SEK</g:sale_price>
<g:price>3200000 SEK</g:price>
<g:sale_price>1.144.000 SEK</g:sale_price>
<g:price>3200000 SEK</g:price>
Valid Value
sale_price,price
99.99 SEK,3200000 SEK
Click to show more valid CSV examples
sale_price,price
99.99 SEK,3200000 SEK
sale_price,price
100 SEK,3200000 SEK
sale_price,price
SEK 100,3200000 SEK
sale_price,price
"99,99 SEK",3200000 SEK
sale_price,price
"10,000.00 SEK",3200000 SEK
sale_price,price
10 000.00 SEK,3200000 SEK
sale_price,price
10.000 SEK,3200000 SEK
sale_price,price
1.144.000 SEK,3200000 SEK
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:sale_price>100$</g:sale_price>
<g:price>3200000 SEK</g:price>
<g:sale_price>SEK</g:sale_price>
<g:price>3200000 SEK</g:price>
<g:sale_price>10.0.00.00 SEK</g:sale_price>
<g:price>3200000 SEK</g:price>
<g:sale_price>10.0.00.00 SEK</g:sale_price>
<g:price>3200000 SEK</g:price>
<g:sale_price>foo SEK</g:sale_price>
<g:price>3200000 SEK</g:price>
<g:sale_price>-10 SEK</g:sale_price>
<g:price>3200000 SEK</g:price>
<g:sale_price>0 SEK</g:sale_price>
<g:price>3200000 SEK</g:price>
<g:sale_price>1000000000 SEK</g:sale_price>
<g:price>3200000 SEK</g:price>
<g:sale_price>100 SEK</g:sale_price>
<g:price>100 SEK</g:price>
<g:sale_price>100 SEK</g:sale_price>
<g:price>50 SEK</g:price>
<g:sale_price>$100</g:sale_price>
<g:price>3200000 SEK</g:price>
danger
danger
danger
validation_not_number
sale_price,price
10.0.00.00 SEK,3200000 SEK
sale_price,price
10.0.00.00 SEK,3200000 SEK
sale_price,price
foo SEK,3200000 SEK
danger
danger
danger
validation_sale_price_is_not_lower_then_price
sale_price,price
100 SEK,100 SEK
sale_price,price
100 SEK,50 SEK
danger
Properties
Property | Value | Description |
---|---|---|
Data Type | price | 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 | False | If you can supply multiple items of this field (it´s a list) |
Repeatable limit | 0 | If a list, this specifices the max number of items |
Changelog
📅 2022-12-07
Added
Initial definition