WordPress maintenance or security needs? Reach out!
TLDWP

Plugin: product-code-for-woocommerce (Used by 27 domains)

Product Code for WooCommerce

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.
DomainExposuresHeadersLast Checked
c*s*y*a*c*w*r*.cz (WP 7.0.2) F Aug 4, 2026
f*x*a*i*g*a*a*i.com B Jul 31, 2026
d*s*o*n*t*r*s*a*i.com B Jul 23, 2026
h*r*i*h*w*i*.com B Jul 22, 2026
k*b*r*h*w*i*.com B Jul 21, 2026
s*v*r*k*h*w*i*.com B Jul 18, 2026
v*r*m*t*r*h*w*i*.com B Jul 16, 2026
t*i*l*i*e*h*w*i*.com B Jul 16, 2026
v*r*i*o*o*o*s*a*a*i.com B Jul 15, 2026
y*d*a*a*a*i.com B Jul 14, 2026
t*i*l*a*i.com B Jul 14, 2026
a*a*o*i*d*.com (WP 6.9.4) F Jul 13, 2026
a*t*s*i*m*h*w*i*.com B Jul 12, 2026
a*t*s*a*a*i.com B Jul 12, 2026
a*t*s*b*k*h*w*i*.com B Jul 12, 2026
b*a*k*o*k*b*k*s.com B Jul 12, 2026
a*p*n*s*a*s*a*a*i.com B Jul 11, 2026
e*o*o*s*a*a*i.com B Jul 9, 2026
t*n*o*h*w*i*.com B Jul 6, 2026
s*r*o*m*u*.com B Jul 5, 2026
s*r*o*h*w*i*.com B Jul 5, 2026
e*i*e*-*s*.com B Jul 4, 2026
s*r*r*n*a*i.com B Jul 4, 2026
s*r*r*n*i.com B Jul 4, 2026
e*h*r*m*u*.com B Jul 3, 2026
e*v*h*c*e*s*.com B Jul 3, 2026
a*e*t*o*i*a*i*g*n*x*r*.org D Jun 30, 2026

Top 50 Plugins

Plugin Count
elementor 1,769,546
contact-form-7 1,749,981
elementor-pro 1,052,223
woocommerce 816,082
revslider 607,977
jetpack 454,169
js_composer 419,320
wp-rocket 341,914
essential-addons-for-elementor-lite 264,421
gravityforms 256,924
complianz-gdpr 256,737
google-site-kit 232,875
cookie-law-info 227,814
instagram-feed 224,435
sitepress-multilingual-cms 210,461
header-footer-elementor 206,426
google-analytics-for-wordpress 205,227
bluehost-wordpress-plugin 192,353
elementskit-lite 179,948
gutenberg 167,312
cookie-notice 148,571
litespeed-cache 144,502
gtranslate 124,687
wpforms-lite 123,530
the-events-calendar 122,126
astra-sites 112,994
popup-maker 109,488
woocommerce-payments 109,111
gutenberg-core 103,132
tablepress 102,372
honeypot 97,721
astra-addon 93,680
wp-smushit 90,667
duracelltomi-google-tag-manager 90,296
layerslider 89,062
all-in-one-seo-pack 88,933
bb-plugin 86,786
coblocks 86,664
akismet 84,909
premium-addons-for-elementor 84,280
cleantalk-spam-protect 82,390
ml-slider 82,251
mailchimp-for-wp 81,565
megamenu 80,147
woocommerce-gateway-stripe 79,293
jet-engine 77,971
fusion-builder 76,925
ewww-image-optimizer 76,777
wp-pagenavi 76,482
smart-slider-3 76,014

Top 50 Themes

Theme Count
hello-elementor 620,559
Divi 495,186
astra 413,486
flatsome 139,309
Avada 120,788
generatepress 114,633
oceanwp 80,215
kadence 78,625
pub 72,283
enfold 68,633
salient 65,039
twentyseventeen 54,205
bb-theme 53,345
betheme 52,372
twentytwentyfour 52,317
blocksy 50,753
cocoon-master 49,244
dt-the7 45,391
twentytwentyfive 44,990
woodmart 43,696
neve 38,026
Avada-Child-Theme 36,901
gox 36,289
h4 36,036
bridge 31,221
twentytwentyone 30,243
lightning 30,028
twentytwenty 28,729
swell 28,063
bricks 26,498
Impreza 26,031
Newspaper 24,165
twentytwentythree 22,103
epik-redesign 19,110
twentytwentytwo 18,748
uncode 18,454
pro 17,625
twentysixteen 17,590
sydney 16,367
storefront 16,296
Total 14,353
hello-theme-child-master 14,025
factory-templates-4 13,734
themify-ultra 12,929
extendable 12,681
hestia 12,551
yootheme 12,472
yith-wonder 12,080
porto 11,949
twentyfifteen 11,850