Learning Center ยท Fix recipes

Fix recipes for WooCommerce

Step-by-step fixes for common AgentScore findings on WooCommerce, with who usually does the work and how to check it worked. For the bigger picture, read agent readiness on WooCommerce.

Give agents your price and stock on WooCommerce

Check: Product pages give price and stock in a form agents can readWho: DeveloperEffort: Days

AI shopping agents read price, currency and stock from the structured data in your product pages. Without them, assistants can't say what an item costs or whether it's in stock. WooCommerce outputs a Product block as JSON-LD, and SEO plugins often add a second one. Keep one block that carries all three values.

Steps

  1. Open a product page, choose View Page Source, and search for application/ld+json.
  2. Count the Product blocks. WooCommerce outputs one, and SEO plugins often add their own.
  3. If there are two, decide with your developer which one to keep, and turn off the other in the plugin or theme.
  4. Confirm the remaining block's offer gives a price, a currency and availability.
  5. Check variable products too. Where prices differ by size or color, ask your developer to describe each variant with its own offer.
  6. Make sure every value matches the visible page.

Check it worked

  • View the source of a simple product and a variable product, and find one Product block with price, priceCurrency and availability.
  • Paste a product URL into the Schema Markup Validator to check the markup is valid.
  • Rescan with AgentScore and confirm the product data check passes.

Watch out: For variable products, WooCommerce core outputs a single aggregated block with a price range, so agents don't see each variation's price from it.

Based on Agent readiness on WooCommerce, Agent readiness for WooCommerce stores: what you control, Product data that AI shopping agents can read, Prices AI agents can read. Official docs: Say hello to WooCommerce 3.0 (product data as JSON-LD) (WooCommerce), Google Product Feed: expanded structured data (WooCommerce).

Make price and stock agree everywhere on WooCommerce

Check: Price, stock and name agree everywhere agents read themWho: DeveloperEffort: Days

Agents read your price from your product data, the page and its sharing tags. When these disagree, assistants quote the wrong price or say an item is in stock when it isn't. On WooCommerce, the usual cause is two structured data blocks, one from WooCommerce and one from an SEO plugin. Keep one, generated from live product data.

Steps

  1. View the source of a product page and count the Product blocks. WooCommerce outputs one, and SEO plugins often add another.
  2. Compare price, currency, stock and name across each block, the visible page and the page's sharing tags.
  3. Keep one Product block, and turn off the duplicate in the SEO plugin or theme that adds it.
  4. Remove any hand-written or hard-coded JSON-LD so every value comes from the same product record.
  5. Check currency switchers and dynamic pricing plugins put the same price in the HTML that the page shows.

Check it worked

  • View the source of five product pages and confirm one Product block whose price and availability match the page.
  • Change a test product's price and check the page and its JSON-LD update together.
  • Rescan with AgentScore and confirm the consistency check passes.

Watch out: For variable products, WooCommerce core outputs one aggregated block with a price range, so check that range matches the prices the page shows.

Based on Agent readiness on WooCommerce, Agent readiness for WooCommerce stores: what you control, Product data that AI shopping agents can read, Prices AI agents can read, Product feeds and merchant listings for AI shopping. Official docs: Google Product Feed: expanded structured data (WooCommerce).

Let shoppers check out as guests on WooCommerce

Check: Shoppers can check out without an accountWho: E-commerce platform adminEffort: Days

An AI agent buying for someone can't create an account for them, so a forced account stops the order at the last step. WooCommerce has a setting for this. In WooCommerce > Settings > Accounts and Privacy, turn on "Enable guest checkout", and offer account creation after checkout if you want accounts.

Steps

  1. Go to WooCommerce > Settings > Accounts and Privacy.
  2. Turn on "Enable guest checkout" unless your business truly needs accounts.
  3. If you offer accounts, use the "After checkout" account creation option so buyers can create one once the order is placed.
  4. Read your cart page as an agent would, and remove any theme or plugin text saying shoppers must sign in to check out.
  5. Check no plugin adds a CAPTCHA to every order, whichever checkout you run, block or classic.

Check it worked

  • Open your store in a private window, add a product to the cart, and press checkout. You should reach a contact and delivery form with no password field.
  • Rescan with AgentScore and confirm the guest checkout check passes.

Watch out: WooCommerce notes that subscription purchases still require an account, so say so on those product pages so agents can tell the shopper up front.

Based on Agent readiness on WooCommerce, Agent readiness for WooCommerce stores: what you control, Guest checkout: why AI shopping agents need it. Official docs: Accounts and Privacy settings (WooCommerce).

Let AI assistants in through robots.txt on WooCommerce

Check: robots.txt lets AI assistants and search agents inWho: SEO or content teamEffort: Hours

If robots.txt shuts out AI assistants and AI search, they can't read your pages and leave you out of their answers. WordPress generates robots.txt, and SEO plugins often take it over and may add AI rules without anyone noticing. Find which plugin controls the file, then remove rules blocking assistants such as ChatGPT-User or Claude-User.

Steps

  1. Open yourstore.com/robots.txt and read every group, noting which agent names each applies to.
  2. Find out which plugin is in charge of the file before changing anything. WordPress generates it, and SEO plugins often take it over.
  3. Look for Disallow rules naming AI assistants or AI search agents, such as ChatGPT-User, Claude-User or OAI-SearchBot.
  4. Remove those rules in the plugin or code that adds them. Blocking only training crawlers is a business choice you can keep.
  5. If you add a group for one agent, copy into it every rule you want it to follow.

Check it worked

  • Reload /robots.txt and confirm no group blocks AI assistants or AI search agents from your product pages.
  • Rescan with AgentScore and confirm the robots.txt check passes.

Watch out: Plugins and themes can change robots.txt through WordPress's robots_txt filter, so a blocking rule may come from a plugin or theme you didn't expect.

Based on Agent readiness on WooCommerce, Agent readiness for WooCommerce stores: what you control, robots.txt for AI agents: who to allow and who to block. Official docs: robots_txt hook (WordPress).

Put prices in the page HTML on WooCommerce

Check: Prices are in the page HTMLWho: DeveloperEffort: Days

Most AI assistants read the HTML your server sends and never run JavaScript. If a price only appears after scripts run, they see a product with no price and often skip it. On WooCommerce, currency switchers and dynamic pricing plugins sometimes fill prices in with JavaScript. Check prices are in the HTML your server sends.

Steps

  1. Open a product page, choose View Page Source (not Inspect), and search for the price.
  2. If it's missing, check your currency switcher and dynamic pricing plugins, which sometimes fill prices in with JavaScript.
  3. Ask your developer or the plugin's vendor to output the price in the HTML and update it with JavaScript only when a shopper changes options.
  4. Show a currency code where the symbol could be unclear, such as "$18.00 USD".
  5. Label sale prices in words, such as "Was $24.00, now $18.00", and list variant prices in the option labels.

Check it worked

  • View the source of a product page and a sale product, and find each price with its currency.
  • Rescan with AgentScore and confirm the prices check passes.

Watch out: If a currency switcher changes the currency by visitor location, an agent may see a different currency from its user, so give each currency a stable URL or a visible switcher.

Based on Agent readiness on WooCommerce, Agent readiness for WooCommerce stores: what you control, Prices AI agents can read.