# Update prices, stock and opening hours

- Check 38.04 · Freshness and accuracy · Important
- Source: https://checklist-seo-geo.com/en/freshness-accuracy/update-prices-stock-opening-hours
- Carry each change in price, stock or opening hours through to the site, structured data, the Merchant Center feed, caches and business listings.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/freshness-accuracy/update-prices-stock-opening-hours.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

A price, a stock level or an opening time never exists in a single copy: it is shown on the page, repeated in the structured data, sent in a product feed, copied into caches and published on business listings. Updating this data means making sure that a change decided at the source reaches all these locations, quickly and without contradiction. Once this is done, the page, the JSON-LD, Merchant Center and Google Business Profile all show the same value.

## Why it matters

Search engines cross-check these locations. To correct your products' price and availability automatically, Merchant Center reads the structured data on your pages; for this, Google requires the markup to match what the user sees and the JSON-LD to be present in the HTML returned by the server. A price that differs between the page and the feed can get the product disapproved in free listings and Shopping ads.

For opening hours, Google Business Profile shows “Open” or “Closed” based on what you entered. A forgotten public holiday sends customers to a closed door, then on to negative reviews.

Generative engines answer “how much does… cost” or “is it open on Sunday…” from the pages and listings they find: an outdated value online can be cited. No practice guarantees which value is picked up, but data that is consistent everywhere removes the opportunities for error.

## What it improves

- **Merchant listings and Shopping ads**: fewer products disapproved because of a price or availability mismatch.
- **Local visibility**: accurate opening hours on Google Maps, Bing and Apple Maps, including on public holidays.
- **AI answers**: fewer outdated prices and opening hours available, an indirect and non-guaranteed effect.
- **Conversion and legal risk**: no unpleasant surprise in the cart, no wasted trip; the displayed price is binding on the seller.
- **Rankings**: no proven direct effect; what is at stake is eligibility for rich results, and trust.

## How to check

**Price and availability of a product page**: compare the visible price with the one in the JSON-LD served by the server.

```bash
curl -s https://example.com/produit/the-sencha/ | grep -o -E '"(price|priceCurrency|availability|priceValidUntil)" *: *"?[^",}]*' 
```

Compliant result: the price shown on the page, a correct `priceCurrency`, availability consistent with the buy button, and no past `priceValidUntil` date. Check the same page in the Rich Results Test.

**Feed**: in Merchant Center, a price or availability mismatch shows up as an issue on the product.

**Cache**: change a test price and run the curl command again. If the old value comes back, a cache (plugin, server, CDN) has not been purged.

**Opening hours**: search for your business on Google Maps, Bing Maps and Apple Maps, and check the hours shown for the next public holiday. Compare them with the site footer and the JSON-LD:

```bash
curl -s https://example.com/contact/ | grep -o -E '"(opens|closes|dayOfWeek|validFrom|validThrough)" *: *[^,}]*'
```

## How to implement

### Before you start

For each piece of data, map the propagation chain and record it in the [data register](https://checklist-seo-geo.com/en/freshness-accuracy/list-data-that-changes-over-time):

| Data | Source of truth | Page | Structured data | Feed | External listings | Caches to purge |
|---|---|---|---|---|---|---|
| Product price | back office or ERP | product page, category, comparisons | `Offer.price` | Merchant Center, marketplaces | — | page, CDN |
| Stock | back office | buy button, availability notice | `Offer.availability` | Merchant Center | — | page, CDN |
| Service rate | approved price list | service page, pricing page, FAQ, PDF | `Offer` if marked up | — | Google Business Profile (services) | page, CDN |
| Opening hours | manager | footer, contact page | `openingHoursSpecification` | — | Google Business Profile, Bing Places, Apple Business Connect, directories | page, CDN |

Common rule: the value is entered once, at the source, and everything else follows from it. The owner of each row is designated in the check [assign an owner to each piece of content](https://checklist-seo-geo.com/en/freshness-accuracy/assign-owner-each-piece-content).

### Prices

- **Identical page and markup**: the JSON-LD carries the price actually paid, discount included, with a period as the decimal separator and `priceCurrency` as an ISO 4217 code (`EUR`).
- **Strikethrough price**: express the old price with `priceSpecification` and a `UnitPriceSpecification` of the strikethrough price type, as documented by Google. In France, a price reduction announcement must refer to the lowest price charged in the previous 30 days (article L112-1-1 of the French Consumer Code): check the applicable rule with the DGCCRF (the French Directorate General for Competition, Consumer Affairs and Fraud Control).
- **Dated promotions**: schedule the start and end in the back office rather than changing them by hand. `validFrom` and `validThrough` describe the sale period.
- **`priceValidUntil`**: optional. Only fill it in if the price has a real end date; a past date can prevent the merchant listing from showing.
- **Services**: a rate written as text (“from €129”) must also be corrected in the FAQ, PDFs and the services on the business listing.

```json
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Sencha green tea, 100 g",
  "sku": "SEN-100",
  "offers": {
    "@type": "Offer",
    "url": "https://example.com/produit/the-sencha/",
    "price": 9.50,
    "priceCurrency": "EUR",
    "availability": "https://schema.org/InStock",
    "itemCondition": "https://schema.org/NewCondition"
  }
}
```

### Stock

- **Temporarily out of stock**: keep the page online with a 200 status code, set `availability` to `OutOfStock` (or `BackOrder` if ordering is still possible, `PreOrder` for a pre-order) and show the restock date if you know it. Deleting the page throws away its history for a few days without stock.
- **Permanent withdrawal**: this is a different case, covered in [manage permanently discontinued products](https://checklist-seo-geo.com/en/e-commerce-seo/manage-permanently-discontinued-products).
- **Consistency**: the buy button, the availability notice, the JSON-LD and the feed all say the same thing.
- **Cache**: availability changes with orders, not only with back-office edits. Check that your cache is also purged when a sale makes a product go out of stock, or shorten the cache lifetime of product pages.

Full synchronization between site, feeds and markup is covered in [sync prices and stock across site, feeds and markup](https://checklist-seo-geo.com/en/e-commerce-seo/sync-prices-stock-across-site-feeds-markup).

### Opening hours

**On the site**, display opening hours from a single reused block (footer, contact page) and repeat them in the `LocalBusiness` JSON-LD. Special hours are added with `validFrom` and `validThrough`; a closure is written with `opens` and `closes` set to `00:00`:

```json
{
  "@context": "https://schema.org",
  "@type": "Plumber",
  "name": "Plomberie Garnier",
  "telephone": "+33240000000",
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
      "opens": "08:00",
      "closes": "18:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "opens": "00:00",
      "closes": "00:00",
      "validFrom": "2026-12-24",
      "validThrough": "2026-12-26"
    }
  ]
}
```

**On Google Business Profile**, open your profile (from Google Search or [business.google.com](https://business.google.com/)), then `Edit profile > Hours`. In the “Business hours” section, click the edit icon next to “Special hours”, add the date (or use “Review” for a date suggested by Google), check “Closed” or enter the hours, then save. These hours only show if the profile is set to “Open with main hours”. Google reviews edits before publishing them: enter them several days in advance.

**On Bing Places and Apple Business Connect**, copy the same regular and special hours. The initial setup of these listings is covered in the check [set up Bing Places and Apple Business Connect](https://checklist-seo-geo.com/en/local-seo/set-up-bing-places-apple-business-connect).

**Calendar**: at the start of the year, put the eleven French national public holidays, the annual closure and summer hours in the owner's calendar, with a reminder one week before.

### Merchant Center

- **Automatic item updates**: they correct price, sale price, availability and condition from the structured data on your pages. They are on by default; check them in [Merchant Center](https://merchants.google.com/), `Products` menu, `Automations` tab. They work poorly for products whose price or availability changes more than once a day: in that case, send each change through the API or a frequent feed.
- **Expiry**: products submitted through a feed or the API expire 30 days after their last update. Schedule a daily fetch of the feed file, or let your CMS extension sync continuously.
- **Server-side rendering**: the JSON-LD must be in the initial HTML, not added by JavaScript.

### WordPress

Versions: WordPress 6.4 and later, WooCommerce 9 and 10.

WooCommerce itself outputs a `Product` JSON-LD with the price and availability of each product page. If an SEO plugin adds its own product markup, make sure only one remains, consistent with the page.

- **Stock**: in `WooCommerce > Settings > Products > Inventory`, enable stock management. In each product, in the `Product data > Inventory` box, turn on stock quantity tracking: the status switches to out of stock automatically at zero.
- **Promotions**: in `Product data > General`, enter the sale price, then “Schedule” to set the start and end dates.
- **Feed**: the official Google for WooCommerce extension syncs products with Merchant Center.
- **Cache**: check that your cache plugin (WP Rocket, LiteSpeed Cache, W3 Total Cache…) purges the product page after an edit and after a sale that changes the stock. Otherwise, exclude availability from the cache or shorten the lifetime of product pages.
- **Opening hours**: there is no native field. Put them in a synced pattern (reusable block) shown in the footer and on the contact page.

### Shopify

Versions: Shopify admin, all plans, November 2026.

Shopify updates the page as soon as the price or stock changes in the admin, and recent themes generate the product JSON-LD from the same data. Nothing to purge.

- **Feed**: the Google & YouTube app syncs products with Merchant Center; check in the app that syncing is active and error-free.
- **Opening hours**: Shopify has no dedicated field. Create an “Opening hours” metaobject (`Settings > Metafields and metaobjects`) and display it in the footer and on the contact page, through dynamic sources in the theme editor or in Liquid with the `shop.metaobjects` object: a single entry for every location.

### PrestaShop

Versions: PrestaShop 8 and 9.

- **Price and stock**: on the product page (`Catalog > Products`), in the pricing and stock tabs. Specific prices let you schedule a discount with start and end dates.
- **Opening hours**: `Shop Parameters > Contact > Stores`, opening hours of each store.
- **Structured data**: check your theme's markup with the Rich Results Test; some older themes do not expose availability.
- **Cache**: after a bulk change, `Advanced Parameters > Performance > Clear cache`.

### Cloudflare

Versions: Cloudflare dashboard, all plans, November 2026.

If product page HTML is cached, purge the affected URLs after each price change: [Caching > Configuration](https://dash.cloudflare.com/?to=/:account/:zone/caching/configuration), “Custom Purge”, then paste the URLs. To automate this, call the purge API from your back office (see the Laravel section) with a token limited to the cache purge permission.

### Laravel

Versions: Laravel 11 to 13.

Declare the credentials in `config/services.php`:

```php
'cloudflare' => [
    'zone_id' => env('CLOUDFLARE_ZONE_ID'),
    'token' => env('CLOUDFLARE_PURGE_TOKEN'),
],
```

Then purge the application cache and the CDN when a product's price or stock changes, in the `app/Models/Product.php` model:

```php
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Http;

protected static function booted(): void
{
    static::saved(function (Product $product): void {
        if (! $product->wasChanged(['price', 'stock'])) {
            return;
        }

        Cache::forget("product.{$product->id}");

        $zoneId = config('services.cloudflare.zone_id');

        Http::withToken(config('services.cloudflare.token'))
            ->post("https://api.cloudflare.com/client/v4/zones/{$zoneId}/purge_cache", [
                'files' => [route('products.show', $product)],
            ]);
    });
}
```

On a large catalog, put the purge in a queued job.

### Next.js

Versions: Next.js 15 and 16 (App Router).

Expose a route that the back office calls on every price or stock change, in `app/api/revalidate/route.ts`:

```ts
import { revalidatePath } from 'next/cache';
import { NextRequest } from 'next/server';

export async function POST(request: NextRequest) {
  if (request.headers.get('x-revalidate-secret') !== process.env.REVALIDATE_SECRET) {
    return Response.json({ revalidated: false }, { status: 401 });
  }

  const { slug } = await request.json();

  revalidatePath(`/produit/${slug}`);

  return Response.json({ revalidated: true });
}
```

Generate the JSON-LD in the page's server component, from the same data as the displayed price, so that it is present in the initial HTML.

## Common mistakes

- **Entering the price in two places** (back office and hand-written JSON-LD or text): the second one ends up diverging.
- **Forgetting PDFs and visuals**: a PDF price list or a “from €99” banner survives every update.
- **Deleting a temporarily out-of-stock product page**: set it to `OutOfStock`, do not delete it.
- **Leaving a past `priceValidUntil` date** in a template: every product page loses eligibility at once.
- **Updating only Google Business Profile**: Bing Places, Apple Business Connect, the site and directories keep the old hours.
- **Purging only the product page**: the category and comparison pages show the price too.

## Frequently asked questions

### Must the price in structured data match the displayed price?

Yes. The JSON-LD price must be the one the visitor sees and pays, discount included, in the same currency. Google requires the markup to match the visible content in order to use Merchant Center's automatic item updates, and a mismatch between the page, the markup and the feed can get the product disapproved. Generate both from the same back-office data rather than entering them separately.

### What should I do with a temporarily out-of-stock product page?

Keep the page online with an HTTP 200 status code and set availability to OutOfStock in the structured data and the feed, or to BackOrder if ordering is still possible. Show clearly that the product is out of stock and, if you know it, the restock date. Deleting the page for a few days without stock throws away its history and links; deletion is only justified for a permanent withdrawal.

### How do I tell Google about a public holiday closure?

In Google Business Profile, open Edit profile, then Hours, and add special hours for the date in question with Closed checked. Do it several days ahead, because Google reviews edits before publishing them. Carry the same closure over to the site, in the JSON-LD with validFrom and validThrough, as well as to Bing Places and Apple Business Connect.

## Resources

- [Google Search Central: Merchant listing structured data](https://developers.google.com/search/docs/appearance/structured-data/merchant-listing?hl=en)
- [Google Search Central: LocalBusiness structured data](https://developers.google.com/search/docs/appearance/structured-data/local-business?hl=en)
- [Merchant Center Help: Automatic item updates](https://support.google.com/merchants/answer/3246284?hl=en) and [required markup](https://support.google.com/merchants/answer/7353427?hl=en)
- [Merchant Center Help: Product expiry](https://support.google.com/merchants/answer/6324499?hl=en)
- [Google Business Profile Help: Special hours](https://support.google.com/business/answer/6303076?hl=en)
- [Cloudflare: Purge cache by single file](https://developers.cloudflare.com/cache/how-to/purge-cache/purge-by-single-file/)
- [Next.js: revalidatePath](https://nextjs.org/docs/app/api-reference/functions/revalidatePath)

Next steps: [update contact details](https://checklist-seo-geo.com/en/freshness-accuracy/update-contact-details) and [update dateModified](https://checklist-seo-geo.com/en/freshness-accuracy/update-datemodified).
