This is an info Alert.
xpay
  • Product
    • Become Agent-Ready
      • Merchants
        Agentic Commerce — list your store across ChatGPT, Gemini, Claude & Perplexity
      • Publishers
        Monetize your content when AI agents read, cite, or train on it
      • SaaS Companies
        Treat AI agents as first-class customers with agent-priced checkout
    • Monetize
      • Monetize MCP Server
        Charge per call on any MCP server in 2 minutes
      • Monetize AI Agents
        Turn n8n, Zapier, Activepieces workflows into revenue
  • Resources
    • xpay Ecosystem
      • xpay✦ Tools
        1,000+ pay-per-use tools for your AI agents
      • Agent-Ready SaaS Index
        25,481 SaaS scored on agent-buyability
      • SaaS Pricing Database
        Pricing pages indexed across 1,000+ categories
      • Shopify Apps Directory
        Every Shopify app, with its full review history
      • WooCommerce Plugins Directory
        Every WooCommerce plugin, scored on how well it is maintained
      • GitHub
        Open source repositories
    • Agent Building
      • Agent Frameworks
        AI frameworks for building multi-agent systems
      • x402 Integration
        AI frameworks with x402 payment integration
      • Networks
        Blockchain networks supporting x402
    • Company
      • About xpay✦
        Our mission, products, and protocols
      • Blog
        Latest insights and updates
      • Docs
        Complete xpay documentation
  • Pricing
  • Blog
  • Docs
Get Started
  1. xpay✦ Commerce

  2. Directory

  3. WooCommerce plugins

  4. Product Code for WooCommerce

Product Code for WooCommerce

This plugin will allow a user to add up to two additional internal product identifiers to the order process in addition to the GTIN, EAN, SKU, or UPC.

1K+ active installs
4.9
(29 ratings)
Free on WordPress.org
View on WordPress.orgSupport forum
Will this break my store?

What the WordPress.org registry says about keeping Product Code for WooCommerce running.

WordPress compatibility
Tested to 6.9.7 — 2 branches behind 7.1
A branch or two behind — normal for a plugin between releases.
Last updated
8 months ago
At least 6.6 releases a year since launch. WordPress.org only lists versions still available for download, so the real number may be higher.
Requires PHP
7.4
Your host must be running at least this version.
Requires WordPress
5.8
Contributors
3

1K+ active installsWordPress.org reports installs in bands, not exact counts.
Maintenance & trust

Scored on how Product Code for WooCommerce is looked after — not on how many stores run it.

79

out of 100
SolidSome ratings or support history.

Maintenance
26 / 35
Updated 235 days ago.
WordPress compatibility
14 / 20
Tested to WP 6.9.7, 1 branch(es) behind.
Support responsiveness
Not enough data
Only 0 support thread(s) — not enough to judge.
Merchant satisfaction
13 / 15
4.9/5 across 29 rating(s).
Listing transparency
10 / 10
Provides: screenshots, description, homepage
1 of 5 measures had too little evidence to score. They are left out of the total rather than counted as zero — otherwise a plugin would be marked down for being small rather than for being poorly kept.Measured 2026-09-06 from the WordPress.org plugin registry.
Ratings

4.9

29 ratings
5★28
4★0
3★0
2★0
1★1
Every rating WordPress.org holds for this plugin, not a sample. Written reviews live in the plugin's WordPress.org reviews forum.

This user-friendly plugin is what many website designers, developers, and business owners look for when they need an additional product code field in WooCommerce. It is often used as an inventory control number, an internal stock number, or a bin location. The plugin allows you to add a product identifier to each variable or single item in WooCommerce. The custom field value can be passed through during order fulfillment and referenced from each item ordered. The field value can be viewed on the user side or turned off if desired.

Throughout the order process, a unique product code is often added in addition to the GTIN, EAN, SKU, and UPC. However, all current plugins that might address this need require complex setups and functions, resulting in increased memory usage, system conflicts, and frequent updates. This plugin eliminates all those hurdles by providing a simple solution without the bloat, without sacrificing the options WooCommerce doesn’t offer.

WooCommerce’s built-in product fields lack the flexibility many businesses require. This plugin fills those gaps with granular display controls—show codes to admins only, hide them on product pages while keeping them in cart and checkout, or hide them from customers entirely while preserving visibility on invoices and packing slips. A secondary code field accommodates businesses that need both a customer-facing code and an internal reference, such as a bin location. Customizable labels let you rename fields to match your workflow, and the option to hide empty fields keeps your product pages clean.

Simply install, enter your product codes within each product post (variation or single), and publish. There is nothing more to it than that! If you don’t want customers to see the unique product code, you can disable the user-side display in setup. The field label can also be easily changed in setup to read ISBN, Bin Number, Stock Number, EAN, or JAN. Any value can be created and entered as a single new field.

The added fields are compliant with mappable data import and export schemes. This exact compliance allows the fields to be included in a Google Merchant product feed using custom mapping. It also supports Schema.org/Product with an option to choose the property name (GTIN, EAN, UPC, ISBN) to set inside the structured data.

You can also search product codes using the WordPress default search from the user side and from the administrator WooCommerce product list page on the backend. It is compatible to search product codes using the popular Relevanssi, SearchWP and, Ajax Search Pro.

Translations

All text strings use WordPress translation functions. Includes complete translations for English, Spanish, French, German, Portuguese, Dutch, Polish, Finnish, and Russian. Any edits to the PO files or additional languages are welcome.

Donations

If this free effort assists you, please consider making a small donation from the main plugin page, found on the lower right. All funds assist orphans in destitution.

Version Changes

As of version 1.3.1, the Product Code primary field is now displayed by default in the WooCommerce product panel, and can be toggled off from the top tab dropdown if desired. If your second Product Code field is activated from settings, it will appear to the right of the Product panel. Additionally, the Product Code primary field now appears in the WooCommerce Quick Edit panel. Turn on the second Product Code, which will display after the primary field in the Quick Edit panel. Make sure you clear your caches (website and browser) if you are updating from the previous plugin.

As of version 1.4.1, an administrator can choose to hide the default and secondary product code from the user-side product posts while the other display injections still work (checkout, cart, and receipts).

Technical Details for Release 1.5.11

Load time: 0.294 s; Memory usage: 3.63 MiB
PHP up to tested version: 8.3.29
MySQL up to tested version: 8.4.7
MariaDB up to tested version: 12.1
cURL up to tested version: 8.18.0, OpenSSL/3.6.0
PHP 7.4, 8.0, 8.1, 8.2, and 8.3 compliant. Not tested on 8.4 yet.

Using in Multisite Installation

  1. Extract the zip file contents into the wp-content/mu-plugins/ directory of your WordPress installation. (This is not created by default. You must create it in the wp-content folder.) The ‘mu’ does not stand for multi-user as it did for WPMU; it stands for ‘must-use,’ as any code placed in that folder will run without needing to be activated.
  2. Access the Plugins settings panel named ‘Product Code for WooCommerce’ under options.
  3. Enter the Product Code from either Variable or Simple products under the SKU.

Configuration with Relevanssi plugin

  1. Open up Indexing tab from Settings->Relevanssi page.
  2. From the Post Type select “Product” and “Product Variation”.
  3. From the Custom fields dropdown select “Some” and add custom fields “_product_code” and “_product_code_second” and save.
  4. Move to Searching tab and unselect checkbox “Respect exclude_from_search” and save.
  5. Access Indexing tab, click button “Build the Index” and save.

Configuration with SearchWP plugin

  1. SearchWP requires the SearchWP WooCommerce Integration addon.
  2. Open up Settings Tab from Settings->SearchWP page.
  3. Add post type “Product” if not added by clicking “Add Post Type”.
  4. Click “Add Attributes”, select “Custom Fields” and add “_product_code” and “_product_code_second” fields from the dropdown box. Move slider to right on both toward “Max”.
  5. Lastly click “Save Engines” and then click “Rebuild Index”.

Configuration with Ajax Search Pro plugin

  1. Open up “Ajax Search Pro” settings page via admin menu.
  2. Create/Edit the search instance.
  3. Add “Products[product]” and “Variation[product_variation]” from the post types list.
  4. Add “_product_code” and “_product_code_second” fields from the custom fields list and save.
  5. If you have selected “Index table engine” for the search engine then index it again.

Is this plugin frequently updated to WordPress compliance?

Yes, attention is given on a staged installation with many other plugins via debug mode.

Is the plugin as simple to use as it looks?

Yes. No other plugin exists that adds an additional custom product code so simply.

Has there ever any compatibility issues?

Point of Sale for WooCommerce 0.426 has been known to result in conflicts, but it cannot be replicated on a clean WooCommerce install with conflicting plugins present.

Can the custom Product Code field be fed to Google Merchant?

We can’t possibly assure compatibility with every feed manager, but the properly built ones find the field correctly. We suggest using YITH Google Product Feed for WooCommerce Premium. The custom field appears as ‘Product Id [id]’ right on top of the custom field selections.

How do I export the Product Code field from WooCommerce?

We use WP All Export Pro by Soflyy which works great, but so does the free Advanced Order Export For WooCommerce By AlgolPlus.

  • Click “Export Orders” under WooCommerce.
  • Click to open “Set up fields to export”
  • On the right click “Products”
  • The field “[P] Product Id” is listed as the field to export from this plugin.

Can I rename the Product Code field to another title?

Previously, the function.php required a snippet addition to do so. As of version 1.0.6, in the settings panel, you will find an option to edit the field title with a limit of 18 characters, including spaces. Whatever title is entered will change on the user side and admin side, and throughout the order process.

Is there short code that allows inserting product code?

The shortcode to show the Product code is [pcfw_display_product_code] you can use these attributes:

• id the product id
• pc_label the product code label that will be displayed before the code. By default, it’s “Product Code:”, but this can be changed in the settings panel.
• pcs_label the product code second label that will be displayed before the code. By default is “Product Code Second:”, but this can be changed inside the settings panel.
• wrapper you can wrap the label and product code in div or span. By default is ‘div’ for the shop page and ‘span’ on the other pages.
• wrapper_code the container of product code. By default is a ‘span’.
• class the class of wrapper container. By default is ‘pcfw_code’.
• class_wrapper the class of wrapper code container. By default is ‘pcfw_code_wrapper’.

Note: For a variable product, you need to pass the variation product ID.

Is the code in the plugin proven stable?

Please click the following link to check the current stability of this plugin:
https://plugintests.com/plugins/product-code-for-woocommerce/latest

Plugin details
Version1.5.11
Last updated2026-01-14 3:21am GMT
Added2019-01-27
Requires WordPress5.8
Tested up to6.9.7
Requires PHP7.4

Tags on WordPress.org
bin number
order number
product code
product number
warehouse tracking
xpay

The agent-readiness stack for the AI shopping era — helping merchants, publishers and SaaS companies get discovered, cited and transacted with by ChatGPT, Perplexity, Claude, Gemini and the custom shopping agents underneath them.

CompanyAgentically Inc. (d/b/a xpay✦)1875 Mission St, Ste 103San Francisco, CA 94103, United Stateslegal@xpay.sh · privacy@xpay.sh
or ask your AI app
Company
About xpayAgency PartnersGitHubDiscordllms.txt
DevelopersDocumentationAPI ReferenceSDKs & LibrariesQuickstart GuideOpenAPI Spec
Stay Updated
Occasional product updates and agent-readiness playbooks from xpay (Agentically Inc.) — typically a couple of emails a month. Double opt-in: we email you a link to confirm before sending anything, and every email has one-click unsubscribe.
Social
  • For Publishers
    • News
    • Finance
    • Dev / Tech
    • Travel
    • View all verticals
  • Agent-Ready Index
    • SaaS Pricing Database
    • Agent-Ready SaaS Index
    • Verified band
    • AI & ML
    • Sales & CRM
  • Products
    • Pricing Widget
    • Monetize MCP Server
    • Paywall
    • Smart Proxy
    • Monetize AI Agents
    • xpay x402 Facilitator
  • Agentic Economy
    • Timeline
    • Resources
    • Manifesto
    • Stack
  • Agentic Commerce
    • Get listed
    • ChatGPT Ads
    • How ChatGPT Ads work
    • ChatGPT Ads · Apparel
    • ChatGPT Ads · Health & Beauty
    • xpay Listings · Amazon + Google
    • Pricing
    • Free audit
    • Shopify
    • WooCommerce
    • Apparel & Accessories
    • Health & Beauty
    • Overview
  • Commerce Index
    • Shopify apps directory
    • Agentic Commerce Ready Index
    • Methodology
    • Pet brands · WooCommerce
    • Pet brands · Shopify
  • Marketplace
    • 🛍️ xpay.deals — agentic storefront for deals
  • Protocols
    • Overview
    • x402
    • MPP
    • UCP
    • ACP
    • AP2
    • TAP
    • A2A
  • Agent Frameworks
    • Overview
    • LangChain
    • CrewAI
    • Claude MCP
    • AutoGPT
    • LangChain vs Mastra
    • LangGraph vs Pydantic AI
  • Company
    • About xpay
    • Blog
    • Docs
    • GitHub
  • Free prompts
    • Ecommerce prompts
    • Email marketing prompts
    • Product description prompts
    • Facebook ad prompts
    • Skincare prompts
    • Supplement prompts
    • Wine prompts
    • Electronics prompts

© 2025 Agentically Inc. All rights reserved.
Privacy PolicyTerms of UseAcceptable Use Policy