Sub topic 6
Price, Sale Price, and Availability
Assume you know what a SKU is, can read simple XML, and understand that a product page is the page where a shopper buys an item. This chapter uses a Google Merchant Center-style feed. The same principles apply to other shopping feeds.
Model the current offer
Shopping systems need to answer three related questions:
- What does the item normally cost?
- Is it discounted now?
- Can a shopper order it?
Use separate attributes for these facts:
| Attribute | Meaning | Example |
|---|---|---|
| `price` | Regular selling price | `89.00 USD` |
| `sale_price` | Temporary discounted price | `69.00 USD` |
| `sale_price_effective_date` | Start and end of the sale | `2026-11-01T00:00:00+00:00/2026-11-30T23:59:59+00:00` |
| `availability` | Whether the item can be ordered | `in_stock` |
The regular price should describe the offer when no sale applies. Add sale_price only when the customer can actually buy the item at that lower price. If the sale has a fixed period, include sale_price_effective_date.
Use a three-letter ISO 4217 currency code, such as USD, after the amount. Keep the number format consistent with the feed specification. Avoid adding currency symbols or thousands separators unless the specification allows them.
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
<channel>
<title>Example Store</title>
<link>https://www.example.com</link>
<description>Product feed</description>
<item>
<g:id>SKU-1001-BLU-M</g:id>
<g:title>Acme Trail Runner Jacket, Blue, Medium</g:title>
<g:description>Water-resistant running jacket.</g:description>
<g:link>https://www.example.com/p/jacket?color=blue&size=m</g:link>
<g:image_link>https://www.example.com/img/jacket-blue.jpg</g:image_link>
<g:price>89.00 USD</g:price>
<g:sale_price>69.00 USD</g:sale_price>
<g:sale_price_effective_date>2026-11-01T00:00:00+00:00/2026-11-30T23:59:59+00:00</g:sale_price_effective_date>
<g:availability>in_stock</g:availability>
<g:condition>new</g:condition>
</item>
</channel>
</rss>Represent stock states precisely
Use the availability value that matches the order flow:
in_stock: the shopper can order the item now.out_of_stock: the shopper cannot order it now.preorder: the item is not released, but orders are accepted.backorder: the item is temporarily unavailable, but orders are accepted.
Do not use out_of_stock merely because delivery takes several days. Do not use in_stock when the page disables checkout. For preorder or backorder items, provide an expected availability date when the specification supports it.
Keep every source synchronized
AI shopping systems may combine feed data, page markup, and merchant-account settings. A mismatch can cause a warning, a disapproval, or an answer that shows an outdated offer.
At the same time, the following values should agree for the same variant:
- The feed's
price,sale_price, andavailability. - The product page's visible price and stock message.
- The page's
OfferJSON-LD values, includingprice,priceCurrency, andavailability. - The checkout's actual payable price and order status.
A scheduled sale creates a common failure mode. The feed may activate the sale at midnight UTC while the storefront uses a local time zone. Choose one source of truth and test the boundary before publishing.
Validate before submission
At minimum, check that:
sale_priceis lower thanprice.- Both prices use the same currency.
- The sale date has a valid start and end.
- Availability uses an allowed value.
- The product page shows the same current state.
- Variant prices and stock refer to the URL and SKU in that item.
Exercise
A feed says price is 100 USD, saleprice is 80 USD, and availability is instock. The product page shows 80 USD but says out of stock. What should you fix first?
Show answer
Fix the availability mismatch. Set both the feed and page to the real orderable state, then verify the price and structured data before resubmitting.