Displaying Accurate Price Ranges for Variable Products in WooCommerce + Algolia

If your WooCommerce store is showing incorrect or incomplete pricing for variable products—especially when integrated with Algolia search—you’re not alone. Many stores face issues where category pages display only the minimum price, leaving customers confused about the true cost range. Here’s how to fix it.

💡 What's the Issue?

Variable products are supposed to display a price range (e.g., $9.99 – $49.99) on category pages. But sometimes, especially with Algolia-powered search, only the lowest price appears. This happens when the min_price and max_price values aren’t being synced properly between WooCommerce and Algolia.

Other symptoms might include:

  • Missing or incorrect sale prices
  • Price formatting errors (like $108.5 instead of $108.50)
  • Products showing $0.00 due to stale or invalid data

🔧 How to Fix It

1. Update Your Algolia Index

Make sure min_price and max_price fields are being pushed to Algolia during product indexing. If they’re missing, category pages won’t be able to display the range.

Use bulk update methods like wp_update_post() or admin batch edits to trigger a full sync.

2. Fix the Price Template Logic

Edit your WooCommerce theme or builder templates so that:

  • The full price range displays when min and max values differ
  • Sale prices are shown clearly with correct formatting
  • Single-price products don’t show ranges unnecessarily
  • Decimal formatting stays consistent at two places

3. Improve Sale Price Sync

WooCommerce sometimes fails to notify Algolia when scheduled sales go live. Include sale_start_date and sale_end_date in the product index and modify your frontend logic to account for these dates instead of relying on default sale status.

4. Handle the Edge Cases

Look out for older product entries or database irregularities. Add logic to handle:

  • Missing price values
  • Outdated variations
  • Incorrect formatting caused by import or plugin issues

Clear all cache layers once the fixes are implemented to ensure changes appear live.

✅ What You'll Achieve

After fixing the indexing and display logic:

  • Your category pages will accurately reflect price ranges and sales
  • Customers won’t get confused by misleading pricing
  • Algolia and WooCommerce will stay properly synced—automatically

Need help cleaning up your price logic or syncing search with WooCommerce?

Need help improving your WordPress forms or custom workflows? We build clean, reliable, and growth-driven WordPress solutions—without breaking a sweat.

Let’s Talk

Other Resources Post

Fixing WordPress News Imports & Broken Links

Migrating legacy news posts to WordPress revealed messy data and broken links. With smart import tweaks and custom field logic, we transformed it into a clean, working archive.

Fix Missing UTM Tracking in GA4 & GTM

If your UTM tags show in URLs but not in GA4 reports, you're not alone. At Integriti Studio, we solved a real case where missing campaign data in GTM had a surprisingly simple fix.

Migrate WordPress—retain SEO.

Migrating your WordPress site doesn’t have to risk SEO—done right, it preserves rankings, traffic, and user experience while boosting performance, security, and reliability through
smart tools, and best practices.

Powered by Creativity,
Fueled by Caffeine.

Get Started