Element g:sale_price#
Basic information#
The g:sale_price element contains the final product price during a promotional sale. Google Shopping will then display the price from g:sale_price as the main price at which the product can be purchased.
You can specify the duration of the promotional sale using the g:sale_price_effective_date element.
The price in g:sale_price must include the currency in addition to the amount itself, for example: 150 CZK. For decimal values, use a period as the separator, rounded to a maximum of two decimal places, for example: 9.65 CZK.
Elements related to g:sale_price that can also be used in the feed:
- g:sale_price_effective_date — promotional sale period, i.e. how long the sale price in
g:sale_priceis valid - g:price — regular product price outside the sale, this element is required and must always be present for products
Frequently asked questions#
- How do I set the expiry date of the sale?
- Use the
g:sale_price_effective_dateelement, which contains both the start and end date and time in the format YYYY-MM-DDThh:mm, or the date, time, and time zone in the format YYYY-MM-DDThh:mm±hhmm. - The two timestamps are separated by a slash
/. A value would then look like this:2024-07-04T21:02+0100/2024-07-31T23:59+0100.
- Use the
- How do I create a date and time value for g:sale_price_effective_date in Mergado?
- You can build the values for
g:sale_price_effective_dateyourself. A helpful reference is the article Learn how to add date and time in Mergado. If you still need help, contact our technical support at mergado@mergado.com — we will try to assist based on your specific situation.
- You can build the values for
- If a product is on sale and I have g:sale_price in the feed, do I still need g:price?
- Yes.
g:priceis a required element and must not be missing for any product.g:priceshould contain the full product price (the regular, non-discounted price). During a sale, both price elements should be present in the feed:g:price→ containing the full product price without the discountg:sale_price→ containing the reduced product price during the sale
- Yes.
- How do I round the price in
g:sale_price?- Use the Round numbers rule. Note that the price in the output feed must match the price displayed in the online store. Use the same rounding method as your store. Select a period as the decimal separator in the rounding rule; Google Shopping allows a maximum of two decimal places.
- How do I convert a currency using an exchange rate, for example from EUR to CZK or from CZK to EUR, for Google Shopping?
- Use the Calculation rule with a fixed or dynamic coefficient (variable). A detailed guide is available in the article Convert currencies easily with Mergado on our blog.
- Does the
g:sale_priceelement need to include the currency?- Yes. Enter the currency in international format after the amount, for example CZK or EUR.
What Mergado Audit checks for the g:sale_price element#
- Whether the
g:sale_priceelement contains an invalid value — it must include both an amount (a positive number) and a currency (in international format, e.g. CZK).
If you need help, contact our technical support.