{"id":89829,"date":"2018-08-09T20:57:20","date_gmt":"2018-08-09T20:57:20","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/product-gtin-ean-upc-isbn-for-woocommerce\/"},"modified":"2020-11-16T15:35:18","modified_gmt":"2020-11-16T15:35:18","slug":"product-gtin-ean-upc-isbn-for-woocommerce","status":"closed","type":"plugin","link":"https:\/\/vi.wordpress.org\/plugins\/product-gtin-ean-upc-isbn-for-woocommerce\/","author":8417129,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.1","stable_tag":"1.1.1","tested":"5.6.21","requires":"4.0.0","requires_php":"7.0","requires_plugins":"","header_name":"Product GTIN (EAN, UPC, ISBN) for WooCommerce","header_author":"Emanuela Castorina","header_description":"Add a Global Trade Item Number (EAN, UPC, ISBN, JAN, ITF-14) field to WooCommerce","assets_banners_color":"","last_updated":"2020-11-16 15:35:18","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/paypal.me\/pools\/c\/85ErI7sdcf","header_plugin_uri":"","header_author_uri":"https:\/\/emanuelacastorina.com\/","rating":3.6,"author_block_rating":0,"active_installs":4000,"downloads":56350,"num_ratings":0,"support_threads":2,"support_threads_resolved":1,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"kreamweb","date":"2018-08-09 21:31:13"},"1.0.1":{"tag":"1.0.1","author":"kreamweb","date":"2018-08-10 04:47:17"},"1.0.2":{"tag":"1.0.2","author":"kreamweb","date":"2018-08-17 20:28:09"},"1.0.3":{"tag":"1.0.3","author":"kreamweb","date":"2018-09-19 17:47:14"},"1.0.4":{"tag":"1.0.4","author":"kreamweb","date":"2018-10-26 17:08:06"},"1.0.5":{"tag":"1.0.5","author":"kreamweb","date":"2019-06-19 20:27:33"},"1.0.6":{"tag":"1.0.6","author":"kreamweb","date":"2020-01-05 13:35:50"},"1.0.7":{"tag":"1.0.7","author":"kreamweb","date":"2020-01-05 14:50:19"},"1.0.8":{"tag":"1.0.8","author":"kreamweb","date":"2020-01-06 07:53:40"},"1.0.9":{"tag":"1.0.9","author":"kreamweb","date":"2020-04-25 21:24:11"},"1.1.0":{"tag":"1.1.0","author":"kreamweb","date":"2020-10-25 15:23:57"},"1.1.1":{"tag":"1.1.1","author":"kreamweb","date":"2020-11-16 15:35:18"}},"upgrade_notice":[],"ratings":{"1":3,"2":2,"3":0,"4":0,"5":8},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":1922666,"resolution":"128x128","location":"assets","locale":""},"icon-64x64.jpg":{"filename":"icon-64x64.jpg","revision":1922666,"resolution":"64x64","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.1.0","1.1.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2222282,"resolution":"1","location":"assets","locale":""},"screenshot-10.png":{"filename":"screenshot-10.png","revision":1943826,"resolution":"10","location":"assets","locale":""},"screenshot-11.png":{"filename":"screenshot-11.png","revision":2222282,"resolution":"11","location":"assets","locale":""},"screenshot-12.png":{"filename":"screenshot-12.png","revision":2222282,"resolution":"12","location":"assets","locale":""},"screenshot-13.png":{"filename":"screenshot-13.png","revision":2222314,"resolution":"13","location":"assets","locale":""},"screenshot-14.png":{"filename":"screenshot-14.png","revision":2222314,"resolution":"14","location":"assets","locale":""},"screenshot-15.png":{"filename":"screenshot-15.png","revision":2222314,"resolution":"15","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2222282,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":1922551,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":1922551,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":1922551,"resolution":"5","location":"assets","locale":""},"screenshot-6.png":{"filename":"screenshot-6.png","revision":1922551,"resolution":"6","location":"assets","locale":""},"screenshot-7.png":{"filename":"screenshot-7.png","revision":1922551,"resolution":"7","location":"assets","locale":""},"screenshot-8.png":{"filename":"screenshot-8.png","revision":1943826,"resolution":"8","location":"assets","locale":""},"screenshot-9.png":{"filename":"screenshot-9.png","revision":1943826,"resolution":"9","location":"assets","locale":""}},"screenshots":{"1":"Settings Options Page of Product GTIN (EAN, UPC, ISBN) for WooCommerce.","2":"Product editor &gt; Inventory &gt; GTIN Code field.","3":"Product editor &gt; Variations &gt; GTIN Code field.","4":"GTIN Code in WooCommerce product detail page.","5":"GTIN Code in WooCommerce shop page.","6":"GTIN Code in WooCommerce cart page.","7":"GTIN Code in WooCommerce checkout page.","8":"GTIN code in WooCommerce Order Items.","9":"WooCommerce Product List Page with GTIN Code Column.","10":"Shortcode","11":"WooCommerce Export Products CVS file integration: settings","12":"WooCommerce Export Products CVS file integration: cvs sample","13":"WooCommerce Import products from a CSV file: settings","14":"WooCommerce Rest API product detail","15":"WooCommerce product structured data"}},"plugin_section":[],"plugin_tags":[11082,148700,6858,11083,54047],"plugin_category":[],"plugin_contributors":[158531],"plugin_business_model":[],"class_list":["post-89829","plugin","type-plugin","status-closed","hentry","plugin_tags-ean","plugin_tags-gtin","plugin_tags-isbn","plugin_tags-jan","plugin_tags-upc","plugin_contributors-kreamweb","plugin_committers-kreamweb"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/product-gtin-ean-upc-isbn-for-woocommerce.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/product-gtin-ean-upc-isbn-for-woocommerce\/assets\/screenshot-1.png?rev=2222282","caption":"Settings Options Page of Product GTIN (EAN, UPC, ISBN) for WooCommerce."},{"src":"https:\/\/ps.w.org\/product-gtin-ean-upc-isbn-for-woocommerce\/assets\/screenshot-2.png?rev=2222282","caption":"Product editor &gt; Inventory &gt; GTIN Code field."},{"src":"https:\/\/ps.w.org\/product-gtin-ean-upc-isbn-for-woocommerce\/assets\/screenshot-3.png?rev=1922551","caption":"Product editor &gt; Variations &gt; GTIN Code field."},{"src":"https:\/\/ps.w.org\/product-gtin-ean-upc-isbn-for-woocommerce\/assets\/screenshot-4.png?rev=1922551","caption":"GTIN Code in WooCommerce product detail page."},{"src":"https:\/\/ps.w.org\/product-gtin-ean-upc-isbn-for-woocommerce\/assets\/screenshot-5.png?rev=1922551","caption":"GTIN Code in WooCommerce shop page."},{"src":"https:\/\/ps.w.org\/product-gtin-ean-upc-isbn-for-woocommerce\/assets\/screenshot-6.png?rev=1922551","caption":"GTIN Code in WooCommerce cart page."},{"src":"https:\/\/ps.w.org\/product-gtin-ean-upc-isbn-for-woocommerce\/assets\/screenshot-7.png?rev=1922551","caption":"GTIN Code in WooCommerce checkout page."},{"src":"https:\/\/ps.w.org\/product-gtin-ean-upc-isbn-for-woocommerce\/assets\/screenshot-8.png?rev=1943826","caption":"GTIN code in WooCommerce Order Items."},{"src":"https:\/\/ps.w.org\/product-gtin-ean-upc-isbn-for-woocommerce\/assets\/screenshot-9.png?rev=1943826","caption":"WooCommerce Product List Page with GTIN Code Column."},{"src":"https:\/\/ps.w.org\/product-gtin-ean-upc-isbn-for-woocommerce\/assets\/screenshot-10.png?rev=1943826","caption":"Shortcode"},{"src":"https:\/\/ps.w.org\/product-gtin-ean-upc-isbn-for-woocommerce\/assets\/screenshot-11.png?rev=2222282","caption":"WooCommerce Export Products CVS file integration: settings"},{"src":"https:\/\/ps.w.org\/product-gtin-ean-upc-isbn-for-woocommerce\/assets\/screenshot-12.png?rev=2222282","caption":"WooCommerce Export Products CVS file integration: cvs sample"},{"src":"https:\/\/ps.w.org\/product-gtin-ean-upc-isbn-for-woocommerce\/assets\/screenshot-13.png?rev=2222314","caption":"WooCommerce Import products from a CSV file: settings"},{"src":"https:\/\/ps.w.org\/product-gtin-ean-upc-isbn-for-woocommerce\/assets\/screenshot-14.png?rev=2222314","caption":"WooCommerce Rest API product detail"},{"src":"https:\/\/ps.w.org\/product-gtin-ean-upc-isbn-for-woocommerce\/assets\/screenshot-15.png?rev=2222314","caption":"WooCommerce product structured data"}],"raw_content":"<!--section=description-->\n<p><strong>Product GTIN (EAN, UPC, ISBN) for WooCommerce<\/strong> lets you set the GTIN (Global Trade Item Number) for each product of your shop.\nBy default, WooCommerce allows to set the SKU custom field for a product, but sometimes the SKU isn't enough.\nGoogle and Amazon use global trade item numbers (GTINs) to group identical products.\nThe most common GTINs are:<\/p>\n\n<ul>\n<li>UPC: this is the primary GTIN in North America.<\/li>\n<li>EAN\/UCC: the major GTIN used outside of North America<\/li>\n<li>JAN: the Japanese GTIN<\/li>\n<li>ISBN: a GTIN for books<\/li>\n<\/ul>\n\n<p>Another type of Identification Number is the MPN (Manufacturer Part Number). This code is required for all products that do not have an assigned GTIN.\nThese type of codes are important both for selling and for tracking your products.<\/p>\n\n<h4>Main features of Product GTIN (EAN, UPC, ISBN) for WooCommerce:<\/h4>\n\n<ul>\n<li>Assign a name to the code (EAN, UPC, ISBN, JAN, ITF-14)<\/li>\n<li>Add a code for main products and for product variations.<\/li>\n<li>Extend the WooCommerce Product Search by GTIN Code.<\/li>\n<li>Add the GTIN code column inside the product list table.<\/li>\n<li>Search by GTIN inside the product list table.<\/li>\n<li>Option to show GTIN code in WooCommerce product detail page.<\/li>\n<li>Option to show GTIN code in WooCommerce shop page.<\/li>\n<li>Option to show GTIN code in WooCommerce cart page.<\/li>\n<li>Option to show GTIN code in WooCommerce checkout page.<\/li>\n<li>Option to show GTIN code in WooCommerce Order Items.<\/li>\n<li>Hide empty GTIN code in your WooCommerce shop.<\/li>\n<li>Shortcode available to show GTIN code for a specific product.<\/li>\n<li>Support for Schema.org\/Product with an option to choose the property name to set inside the structured data<\/li>\n<li>Option to choose the position of GTIN code inside the single product page<\/li>\n<li>Integrated with the WooCommerce Export Products CVS tool<\/li>\n<li>Integrated with the WooCommerce Import products from a CSV file tool<\/li>\n<li>WooCommerce Rest API Product integration: GTIN code is passed inside the 'ean_code' field<\/li>\n<\/ul>\n\n<h3>Suggestions<\/h3>\n\n<p>If you have any suggestions concerning how to improve Product GTIN (EAN, UPC, ISBN) for WooCommerce, you can contact @emanuelacastorina on <a href=\"https:\/\/make.wordpress.org\/chat\/\">Slack<\/a>.<\/p>\n\n<!--section=installation-->\n<p>Important: First of all, you have to download and activate the WooCommerce plugin, without which Product GTIN (EAN, UPC, ISBN) for WooCommerce cannot work correctly.<\/p>\n\n<ol>\n<li>Unzip the downloaded zip file.<\/li>\n<li><p>Upload the plugin folder into the <code>wp-content\/plugins\/<\/code> directory of your WordPress site, or install the plugin through the WordPress plugins screen.<\/p><\/li>\n<li><p>Activate <code>Product GTIN (EAN, UPC, ISBN) for WooCommerce<\/code> from the Plugins page<\/p><\/li>\n<\/ol>\n\n<h4>Configuration<\/h4>\n\n<p>Product GTIN (EAN, UPC, ISBN) for WooCommerce will add a new tab called \"Product GTIN\" in \"WooCommerce &gt; Settings\" page.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt><h3>How can I set a GTIN code for a product?<\/h3><\/dt>\n<dd><p>Inside the product editor page, open the \u201cInventory\u201d tab, and fill out the GTIN field.\nIf your product is variable, you can set a GTIN code for each variation; you can fill out the GTIN field that you'll find inside the variation detail panel.<\/p><\/dd>\n<dt><h3>How can I get a GTIN code for a product?<\/h3><\/dt>\n<dd><p>Since version 1.1.0 it is possible use the function wpm_get_code_gtin_by_product that need the product id or the product object.\nThe function returns the GTIN code as string.<\/p>\n\n<pre><code>$gtin = wpm_get_code_gtin_by_product($product_id);\n<\/code><\/pre><\/dd>\n<dt><h3>Where is stored the GTIN code ?<\/h3><\/dt>\n<dd><p>The GTIN code is a private custom field of product with <em>meta_key<\/em> <code>_wpm_gtin_code<\/code>\nIf you have the product object you can get the GTIN code in this way:<\/p>\n\n<pre><code>$gtin = $product-&gt;get_meta('_wpm_gtin_code');\n<\/code><\/pre><\/dd>\n<dt><h3>How can use the shortcode to show the GTIN code where I want?<\/h3><\/dt>\n<dd><p>The shortcode to show the GTIN code is <code>[wpm_product_gtin]<\/code> you can use these attributes:<\/p>\n\n<ul>\n<li><code>id<\/code> the product id<\/li>\n<li><code>label<\/code> the label that will be displayed before the code. By default is \"Code EAN:\", but this can be changed inside the settings panel.<\/li>\n<li><code>wrapper<\/code> you can wrap the label and GTIN code in div or span. By default is 'div' for the shop page and 'span' on the other pages.<\/li>\n<li><code>wrapper_code<\/code> the container of GTIN code. By default is a 'span'.<\/li>\n<li><code>class<\/code> the class of wrapper container. By default is 'wpm_gtin'.<\/li>\n<li><code>class_wrapper<\/code> the class of wrapper code container. By default is 'wpm_gtin_code_wrapper'.<\/li>\n<\/ul><\/dd>\n<dt><h3>How can use a different GTIN label for specific products?<\/h3><\/dt>\n<dd><p>Inside the product editor page, open the \u201cInventory\u201d tab, and fill out the field\n\"Override GTIN Code Label\"<\/p><\/dd>\n<dt><h3>How set GTIN code with WooCommerce REST API?<\/h3><\/dt>\n<dd><p>When you create or update a product via REST API it is possible set or update the custom meta:<\/p>\n\n<pre><code>  \"meta_data\": [\n      {\n        \"key\": \"_wpm_gtin_code\",\n        \"value\":\"123798123987132\"\n      }\n    ]\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.1 - Released: 16 Nov, 2020<\/h4>\n\n<ul>\n<li>New: Support for WordPress 5.6<\/li>\n<li>Dev: Added attribute product-id inside the wrapper of GTIN code to avoide some issue with Elementor Widget<\/li>\n<\/ul>\n\n<h4>1.1.0 - Released: 25 Oct, 2020<\/h4>\n\n<ul>\n<li>New: Support for WordPress 5.5<\/li>\n<li>New: Support for WooCommerce 4.7<\/li>\n<li>Dev: New function wpm_get_code_gtin_by_product to get the GTIN code by product id or product<\/li>\n<\/ul>\n\n<h4>1.0.9 - Released: 25 April, 2020<\/h4>\n\n<ul>\n<li>New: Support for WooCommerce 4.1<\/li>\n<\/ul>\n\n<h4>1.0.8 - Released: Jan 6, 2020<\/h4>\n\n<ul>\n<li>Fix: Fixed the PHP warning<\/li>\n<\/ul>\n\n<h4>1.0.7 - Released: Jan 5, 2020<\/h4>\n\n<ul>\n<li>New: Added the product GTIN field inside the \"WooCommerce Import products from a CSV file\" section. The name of the column is getting from your plugin settings.<\/li>\n<\/ul>\n\n<h4>1.0.6 - Released: Jan 5, 2020<\/h4>\n\n<ul>\n<li>New: Support for WordPress 5.3<\/li>\n<li>New: Support for WooCommerce 3.9<\/li>\n<li>New: Support for Schema.org\/Product, added a new option to choose the property name to set inside the structured data (thanks to @stroykamarketcom)<\/li>\n<li>New: New option in product editor Inventory to override the general code label<\/li>\n<li>New: New option to choose the product GTIN position inside the single product page<\/li>\n<li>New: Added the product GTIN field inside the \"WooCommerce Export Products CVS file\" section. The name of the column is getting from your plugin settings.<\/li>\n<\/ul>\n\n<h4>1.0.5 - Released: Jun 19, 2019<\/h4>\n\n<ul>\n<li>New: Support for WordPress 5.2.x<\/li>\n<li>New: Support for WooCommerce 3.6.x<\/li>\n<li>New: Integration with Google Product Feed, registers GTIN field from Product GTIN for WooCommerce plugin as a pre-population option (thanks to Lee Willis)<\/li>\n<li>Fix: Public label fix (thanks to davado)<\/li>\n<\/ul>\n\n<h4>1.0.4 - Released: Oct 26, 2018<\/h4>\n\n<ul>\n<li>New: Support for WooCommerce 3.5.x<\/li>\n<li>New: Added 'ean_code' in WooCommerce Rest product data<\/li>\n<li>Fix: Search by GTIN Code with Wordpress Search Widget<\/li>\n<\/ul>\n\n<h4>1.0.3 - Released: Sep 19, 2018<\/h4>\n\n<ul>\n<li>New: Option to show GTIN code in WooCommerce Order Items.<\/li>\n<li>Fix: Search by GTIN inside the product list table issue<\/li>\n<\/ul>\n\n<h4>1.0.2 - Released: Aug 17, 2018<\/h4>\n\n<ul>\n<li>Update: Added Settings Link on Action Links<\/li>\n<\/ul>\n\n<h4>1.0.1 - Released: Aug 10, 2018<\/h4>\n\n<ul>\n<li>Update: Text domain<\/li>\n<\/ul>\n\n<h4>1.0.0 - Released: Aug 9, 2018<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"The Product GTIN (EAN, UPC, ISBN) for WooCommerce plugin adds the Global Trade Item Number (EAN, UPC, ISBN, JAN, ITF-14) field to WooCommerce products &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/vi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/89829","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/vi.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/vi.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=89829"}],"author":[{"embeddable":true,"href":"https:\/\/vi.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/kreamweb"}],"wp:attachment":[{"href":"https:\/\/vi.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=89829"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/vi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=89829"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/vi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=89829"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/vi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=89829"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/vi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=89829"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/vi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=89829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}