How to suppress sale price in JSON-LD product schema for compliance

Structured product data plays a critical role in how products appear in Google Search and Shopping results. However, ecommerce stores operating under Minimum Advertised Price (MAP) policies can encounter problems when sale pricing is exposed through product schema even though those prices are intentionally hidden from customers until checkout.

This guide explains how to suppress sale pricing within JSON-LD product schema while maintaining accurate structured data and search engine compliance.

Issue Background

Many WooCommerce and ecommerce websites use pricing strategies that allow customers to see discounted pricing only after adding products to their cart. This approach is commonly used to comply with MAP requirements imposed by manufacturers.

While frontend pricing may comply with these requirements, structured product data can sometimes expose hidden sale prices through JSON-LD schema markup.

When search engines detect discrepancies between visible pricing and schema pricing, product listings can fail validation or become ineligible for certain search and advertising features.

Diagnosis

Investigation revealed that products configured with a “Better Price in Cart” style pricing setup were outputting both regular and sale prices within their JSON-LD product schema.

Because the sale price was being assigned to the primary schema price field, search engines interpreted the structured data as inconsistent with the product page presentation.

This created compliance concerns and increased the risk of schema validation failures.

Resolution Steps

Review structured data output

The first step was examining the JSON-LD schema generated for affected products.

Products using hidden sale pricing were compared against standard products to identify differences in schema output.

Identify pricing logic

The product schema generation process was reviewed to determine how regular prices and sale prices were being assigned within structured data.

This allowed the pricing logic responsible for the incorrect output to be isolated.

Suppress sale price values

Custom schema logic was updated so that products utilizing Better Price in Cart functionality only output the regular price within JSON-LD markup.

Sale pricing remained available during the purchasing process but was excluded from structured product schema.

Test multiple product scenarios

Testing was performed across various product configurations to verify:

  • Products using hidden pricing displayed only regular prices in schema.
  • Standard sale products continued functioning normally.
  • Structured data remained valid.
  • Search engine requirements were satisfied.

Validate schema compliance

After implementation, the updated schema was reviewed using Google’s structured data validation tools to confirm proper formatting and compliance.

Any validation warnings or errors were addressed before deployment.

Final Outcome

By suppressing sale prices from JSON-LD product schema while preserving regular pricing information, the site maintained compliance with MAP-related pricing requirements and eliminated structured data inconsistencies.

Products successfully passed schema validation checks while continuing to support Better Price in Cart functionality for customers.

For ecommerce businesses that rely on WooCommerce, custom pricing logic, or MAP compliance strategies, careful management of structured data can help prevent search visibility issues and advertising disapprovals.

If you’re troubleshooting WooCommerce schema markup, Google Merchant Center issues, or structured data compliance problems, contact Freshy to discuss your project.