Product Code for WooCommerce

from 0$

Product Code for WooCommerce is a WP Plugin Package from the Open Source WP Plugins range This plugin will allow a user to add a unique internal product identifier in addition…


For more information about a tailored WP Plugin Package like Product Code for WooCommerce please contact us directly.

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

A unique product code is often added in addition to the GTIN, EAN, SKU, and UPC throughout the order process. However, all current plugins that might address this need entail complex setups and functions which result in extra memory usage, system conflicts, and frequent updates. This plugin eliminates all those hurdles by providing a simple solution without excessive options.

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

As of version 1.3.1, the Product Code primary field is now displayed by default in the WooCommerce product panel, switchable to 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 Code primary field column. Additionally, the Product Code primary field now appears in the WooCommerce Quick Edit panel. Turn on the second Product Code and it 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 a previous plugin version!

The added fields are compliant with mappable data import and export schemes. This same compliance allows the fields to be included in a Google Merchant product feed using custom mapping. It also provides support for Schema.org/Product with an option to choose the property name (GTIN, EAN, UPC, ISBN) to set inside the structured data. The plugin’s languages include English, Spanish, and French.

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

Technical Details for Release 1.3.1

Load time: 0.280 s; Memory usage: 3.38 MiB
PHP up to tested version: 8.1.1
MySQL up to tested version: 8.0.26
cURL up to tested version: 7.81.0, OpenSSL/3.0.1
PHP 5.6, 7.3, 7.4, and 8.0 compliant.

Using in Multisite Installation

  1. Extract the zip file contents in 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 like 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 under the SKU from either Variable or Simple products.

Configuration with Relevanssi plugin

  1. Open up the 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 the 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 the 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 the “Ajax Search Pro” settings page via the 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.

Download & install the zip archive

The plugin package installer can be downloaded from the WP2E project tab called “code”.

1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.

2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.

3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.

Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.

Product Code for WooCommerce

typePlugin
version1.2.2
descriptionThis plugin will allow a user to add a unique internal product identifier in addition…