Table of Contents
Settings
Once installed and activated you can access the plugin’s settings from “WooCommerce > Settings > EAN”.
Here is a list of all the sections under the settings, we will look at each option one by one.
EAN Options
Barcode Options
Print Options
Advanced Options
Shortcodes
There are three shortcodes available in the plugin:
[alg_wc_ean]
[alg_wc_ean_barcode]
[alg_wc_ean_barcode_2d]
[alg_wc_ean]
[alg_wc_ean]
shortcode outputs product’s EAN.
Attributes
- product_id
- (Optional) Product ID. If empty, will automatically retrieve the current product ID.
- before
- (Optional) Content to output before the EAN. E.g.
EAN:
. Default is empty. - after
- (Optional) Content to output after the EAN. Default is empty.
[alg_wc_ean_barcode]
and [alg_wc_ean_barcode_2d]
[alg_wc_ean_barcode]
and [alg_wc_ean_barcode_2d]
shortcodes output product’s 1D and 2D barcodes respectively.
Attributes
- product_id
- (Optional) Product ID. If empty, will automatically retrieve the current product ID.
- before
- (Optional) Content to output before the barcode. Default is empty.
- after
- (Optional) Content to output after the barcode. Default is empty.
- children
- (Optional) If set to
yes
, will output variations’ barcodes for a variable product. Default isno
. - glue
- (Optional) Used to “glue” the variations’ barcodes for a variable product. Used only if the
children
attribute is set toyes
. Default is empty. - w
- (Optional) Barcode width. Default is
2
. - h
- (Optional) Barcode height. Default is
30
for 1D barcodes, and2
for 2D barcodes. - template
- (Optional) Template. Default is
%barcode_img%
. Available placeholders:%barcode_img%
,%product_id%
,%product_title%
,%value%
. - content
- (Optional) Sets what have to be encoded in the barcode. Default is
ean
. Available values are:- ean
- Encode product EAN. You can override the product EAN with the
ean
attribute. - sku
- Encode product SKU.
- url
- Encode product URL.
- admin_url
- Encode product admin URL. Please note that it will encode parent (i.e. variable) product URL for the variations.
- admin_search
- Encode product admin search URL.
- increase_stock
- Encode product increase stock action. You can set quantity with the
stock_qty
attribute (default is1
).max_stock
attribute allows you to set limit for the action, i.e. action can’t increase the stock above themax_stock
. - decrease_stock
- Encode product decrease stock action. You can set quantity with the
stock_qty
attribute (default is1
).min_stock
attribute allows you to set limit for the action, i.e. action can’t reduce the stock below themin_stock
. - add_to_cart
- Encode product add to cart action. You can set quantity with the
qty
attribute (default is1
). You can set user with theuser_id
attribute (default is1
). - add_to_cart_url
- Encode product add to cart URL. Please note that there is no add to cart URL for a variable product, however, you can encode the add to cart URL for the variations.
- ean
- (Optional) Overrides product’s EAN. Used only if the
content
attribute is set toean
. Default is empty. - stock_qty
- (Optional) Used only if the
content
attribute is set todecrease_stock
orincrease_stock
. Default is1
. - min_stock
- (Optional) Used only if the
content
attribute is set todecrease_stock
. Default is empty. - max_stock
- (Optional) Used only if the
content
attribute is set toincrease_stock
. Default is empty. - qty
- (Optional) Used only if the
content
attribute is set toadd_to_cart
. Default is1
. - user_id
- (Optional) Used only if the
content
attribute is set toadd_to_cart
. Default is1
.
Examples
This will output the 2D barcode for the current product:
[alg_wc_ean_barcode_2d]
This will output the 2D barcode for the selected product:
[alg_wc_ean_barcode_2d product_id="123"]
This will output the 2D barcode for the predefined EAN:
[alg_wc_ean_barcode_2d ean="5901234123457"]
This will encode and output current product URL in 2D barcode:
[alg_wc_ean_barcode_2d content="url"]
Tools
Tools are located in “WooCommerce > Settings > EAN > Tools”. Check the box and “Save changes” to run the tool. Please note that there is no undo for these tools.
Product Tools
Please note that Generate and Copy tools will not overwrite EANs for products with existing EANs. You can use the Delete tool to clear the existing EANs before generating or copying.
- Generate
- Generate EAN for all products.
- Default:
no
- Default:
- Generate: Type
- Possible values: EAN-8; UPC-A; EAN-13.
- Default:
EAN-13
- Default:
- Generate: Country prefix (from)
- List of GS1 country codes.
- Default:
200
- Default:
- Generate: County prefix (to) (optional)
- If set, the plugin will generate the prefix randomly between “Prefix from” and “Prefix to” values.
- Default: None
- Generate: Seed prefix (optional)
-
- Default: None
- Generate: Automatically generate EAN for new products
-
- Default:
no
- Default:
- Generate: Automatically generate EAN on product update
-
- Default:
no
- Default:
- Copy product SKU
- Copy EAN from product SKU for all products.
- Default:
no
- Default:
- Copy product SKU: Automatically copy SKU to EAN for new products
-
- Default:
no
- Default:
- Copy product SKU: Automatically copy SKU to EAN on product update
-
- Default:
no
- Default:
- Copy product ID
- Copy EAN from product ID for all products.
- Default:
no
- Default:
- Copy product meta
- Copy EAN from product meta for all products.
- Default:
no
- Default:
- Copy product meta: Meta key
- Product meta key to copy from, e.g.
_gtin
.- Default: None
- Assign from the list
- Assign EAN from the list for all products.
- Default:
no
- Default:
- Assign from the list: List
- EAN list to assign from. One EAN per line. Used (i.e. assigned) EANs will be automatically removed from the list.
- Default: None
- Delete
- Delete all EANs for all products.
- Default:
no
- Default:
- “Products > Bulk actions”
- Sets actions to be added to the “Products > Bulk actions” dropdown. Possible values: Generate EAN; Delete EAN.
- Default:
Delete EAN; Generate EAN
- Default:
Product Actions
- Automatic actions: New product
- Sets actions to be automatically performed when new product is added. New product Possible values: Disabled; Generate; Copy product SKU; Copy product ID; Copy product meta; Assign from the list.
- Default:
Disabled
- Default:
- Automatic actions: Update product
- Sets actions to be automatically performed when the product is updated. Possible values: Disabled; Generate; Copy product SKU; Copy product ID; Copy product meta; Assign from the list.
- Default:
Disabled
- Default:
- Periodic action
- Sets the action to be automatically performed on a periodic basis (for all products). Possible values: Disabled; Generate; Copy product SKU; Copy product ID; Copy product meta; Assign from the list.
- Default:
Disabled
- Default:
- Periodic action interval in seconds
-
- Default:
3600
- Default:
- “Products > Bulk actions”
- Sets actions to be added to the “Products > Bulk actions” dropdown. Possible values: Generate EAN; Delete EAN.
- Default:
Delete EAN; Generate EAN
- Default:
Order Tools
- Add EANs
- Add EANs to all order items.
- Default:
no
- Default:
- Delete EANs
- Delete EANs from all order items.
- Default:
no
- Default:
Developers
Plugin stores EANs in product meta with _alg_ean
key. So if you’d need to access it directly:
$ean = get_post_meta( $product_id, '_alg_ean', true );
FAQ
Q. I am trying to add the EAN field to another plugin (e.g. product feed plugin), but I’m not able to find the EAN in the custom fields list there.
A. It looks like some plugins don’t “like” the starting underscore _
symbol in our _alg_ean
meta key. So here is what you can do – in “WooCommerce > Settings > EAN > Advanced” you will find an option – “Meta key” – set it to something without the starting underscore symbol, e.g. alg_ean
. Then set EAN for some product in your shop, and, after that, you should be able to select it in your other plugin.
If you still can’t find the EAN in the custom fields list, based on our experience, there are a couple of different solutions to it:
- Some plugins are gathering new custom fields on a periodic basis. This means that after you change our meta key to a new one, and set the EAN for one of your products, you may need to wait for a while before the EAN will appear in the custom fields section.
- Some plugins have some kind of a button to force new custom fields search – you may need to click it. For example, the WooCommerce Google Product Feed plugin has the “refresh the field list” link in “WooCommerce > Settings > Product Feeds”.
- And, finally, some plugins are checking a number of the newest products to get custom fields, so the safest solution is to add the EAN to the latest product you have in your shop. For example, the Product Feed PRO for WooCommerce plugin checks five of your latest products.
Notes
- After you change the key from
_alg_ean
toalg_ean
, all your existing product EANs will disappear. If you want to keep them – there is a way – you need to use our “WooCommerce > Settings > EAN > Tools” section. There is a tool – “Product Tools > Copy product meta > Copy EAN from product meta for all products”. You need to set the “Meta key” option to the old key (i.e._alg_ean
) and run the tool – it will copy all old EANs to the new ones. - Some plugins (e.g. WooCommerce Google Product Feed) will work with our original meta key (with the underscore symbol) as well – look for the “EAN” field there (not
_alg_ean
).
Q. What GTIN types are supported?
A. Despite the (EAN) naming, the plugin supports all main product GTINs.
- EAN-8 – A shorter version of the EAN-13 standard. Length: 8.
- UPC-A – The most common type in the United States. Length: 12.
- EAN-13 – The most commonly used EAN standard. Length: 13.
- ISBN-13 – The International Standard Book Number (ISBN) is a numeric commercial book identifier. It’s a subset of EAN-13. Length: 13.
- JAN – The Japanese Article Number (JAN) is a subset of EAN-13. Length: 13.
- Custom – Custom can represent all 128 ASCII code characters (numbers, upper case/lower case letters, symbols, and control codes). Length: Any.
Q. What’s EAN?
A. The International Article Number (also known as European Article Number or EAN) is a standard describing a barcode symbology and numbering system used in global trade to identify a specific retail product type, in a specific packaging configuration, from a specific manufacturer. The same numbers can be referred to as GTIN. EAN barcodes are used worldwide for lookup at retail point of sale, but can also be used as numbers for other purposes such as wholesale ordering or accounting.
Changelog
4.8.6 - 29/11/2023
- Dev - General - "Checkout" option added (defaults to
no
).
4.8.5 - 28/11/2023
- Dev - General - Cart - "Template" option added.
4.8.4 - 27/11/2023
- Fix - Pro - Print - Print buttons: Single order - HPOS compatibility.
- WC tested up to: 8.3.
4.8.3 - 09/11/2023
- Dev - Tools - Product Tools - Copy to product meta - "Meta sub key (optional)" option added.
- Tested up to: 6.4.
4.8.2 - 20/10/2023
- Dev - REST API - Orders - Add EAN to each order object in REST API responses - Extra checks added to prevent possible PHP warning.
4.8.1 - 19/10/2023
- Dev - Admin settings - General - Admin product edit page - Add pattern - Description updated.
- WC tested up to: 8.2.
4.8.0 - 05/10/2023
- Dev - General - Admin product edit page - Add pattern - Default value changed to
no
.
4.7.9 - 25/09/2023
- Plugin icon, banner updated.
4.7.8 - 25/09/2023
- Fix - Admin settings - Compatibility - Google Listings & Ads - Typo fixed.
4.7.7 - 19/09/2023
- Dev - Compatibility - Google Listings & Ads - Different approach implemented.
4.7.6 - 15/09/2023
- Dev - Search - Code refactoring.
- Dev - Pro - Extra Fields - "Admin product search" options added (default to
no
). - Dev - Pro - Extra Fields - "Search" (frontend) options added (default to
no
). - WC tested up to: 8.1.
4.7.5 - 05/09/2023
- Dev - Compatibility - "Google Listings & Ads" option added.
- Dev - Developers -
alg_wc_ean_product_structured_data_value
filter added. - Dev - Developers -
alg_wc_ean_product_structured_data_markup_value
filter added. - Dev - Developers -
alg_wc_ean_product_structured_data_allow_empty_value
filter added.
4.7.4 - 30/08/2023
- Dev - Pro - Print - Cell - "Cell top/left/right/bottom margin" options added (all default to
0
). - Dev - Pro - Print - Cell - "Cell content alignment" option added.
- Dev - Pro - Print - Admin settings descriptions updated.
4.7.3 - 23/08/2023
- Fix - Declaring HPOS compatibility for the free plugin version, even if the Pro version is activated.
- Dev - Compatibility - "MultiVendorX" options added.
- Dev - Admin settings - Advanced - Meta key - Description updated.
4.7.2 - 09/08/2023
- Fix - Tools - Product Tools - Assign from the list - Product categories - Variations - Checking for the
variable
product type. - Dev - Tools - Product Tools - Assign from the list - Product categories - Variations - Ensuring that products are always sorted by ID (ASC).
- Tested up to: 6.3.
- WC tested up to: 8.0.
4.7.1 - 15/07/2023
- Fix - Search / Admin product search / Admin products list column (sorting) - Handling cases when
query['post_type']
is an array.
4.7.0 - 13/07/2023
- Dev - "EAN-14" type added.
- Dev - Code refactoring.
4.6.0 - 23/06/2023
- Dev - Display - Shortcodes are now processed in the "Single product page" and "Shop pages" options.
- Dev - Display - Shop pages - "Template" option added. Defaults to
EAN: %ean%
. - Dev - Tools - Product Tools - Copy from product attribute - "Custom product attribute" option added.
- Dev - Shortcodes -
[alg_wc_ean_if]
shortcode added. - Dev - Shortcodes -
[alg_wc_ean_if_product_cat]
shortcode added. - Dev - Shortcodes -
[alg_wc_ean_if_product_tag]
shortcode added. - Dev - Shortcodes -
[alg_wc_ean_product_terms]
shortcode added.
4.5.1 - 18/06/2023
- WC tested up to: 7.8.
4.5.0 - 07/06/2023
- Dev – "High-Performance Order Storage (HPOS)" compatibility.
- Dev - Admin Settings - Option descriptions updated.
- Dev - Code refactoring.
- WC tested up to: 7.7.
4.4.6 - 02/05/2023
- Dev - Shortcodes -
[alg_wc_ean_is_valid]
shortcode added. - Dev - Shortcodes -
[alg_wc_ean_is_unique]
shortcode added. - Dev - Compatibility - Dokan - "Description" option added.
- Dev - Compatibility - Dokan - "Required HTML" option added.
- WC tested up to: 7.6.
4.4.5 - 06/04/2023
- Fix - Display - Frontend hooks (including barcodes) now are loaded on AJAX as well.
- Dev - Developers - REST API -
alg_wc_ean_rest_api_product_ean_key
filter added. - Dev - Developers - REST API -
alg_wc_ean_rest_api_order_ean_key
filter added. - Dev - Admin Settings - General - Option descriptions updated.
- Tested up to: 6.2.
- WC tested up to: 7.5.
4.4.4 - 02/02/2023
- Dev - Developers - Admin product search -
alg_wc_ean_search_backend
filter added. - Dev - Developers - Search -
alg_wc_ean_search
filter added. - WC tested up to: 7.3.
4.4.3 - 10/01/2023
- Dev - Shortcodes -
[alg_wc_ean_product_image]
- Security -height
andwidth
attributes are escaped now. - WC tested up to: 7.2.
4.4.2 - 26/11/2022
- Dev - Tools - Product Tools - "Copy from product attribute" tool added.
4.4.1 - 25/11/2022
- Dev - Compatibility - Dokan - "Required" option added (defaults to
no
). - WC tested up to: 7.1.
- Tested up to: 6.1.
4.4.0 - 20/10/2022
- Dev - General - Admin product edit page - "Require" option added. Defaults to
no
. - Dev - General - Admin product edit page - "Add pattern" option added. Defaults to
yes
. - Dev - Advanced - JavaScript Variation Options - "Variations form" option added. Defaults to
.variations_form
. - WC tested up to: 7.0.
4.3.4 - 28/09/2022
- Dev - General - Admin product edit page - "Position (variation product)" option added. Defaults to "Variations: After pricing".
- WC tested up to: 6.9.
4.3.3 - 08/09/2022
- Fix - Tools - Product Tools - Assign from the list - Product categories - Variations category filtering fixed.
4.3.2 - 29/08/2022
- Dev - REST API - Products - Add EAN to each product object in REST API responses - EAN added to variation responses as well.
4.3.1 - 15/08/2022
- Dev - Pro - Print/Barcode Generator - Now checking if classes exist before including the TCPDF library.
- WC tested up to: 6.8.
4.3.0 - 03/08/2022
- Dev - REST API - Products - Search by EAN - Now including product variations as well.
- Dev - Pro - Print - Print Tools - "Products List" tool added.
- Dev - Pro - Print - Admin Options - Print buttons - Quantity input - "Products > Bulk actions > Each product" option added.
- Dev - Pro - Extra Fields - Admin settings section description updated.
4.2.0 - 27/07/2022
- Dev - Compatibility - "Woocommerce OpenPos" compatibility added ("EAN" field is now available in "POS > Setting > Barcode Label > Barcode Meta Key").
- Dev - Compatibility - WooCommerce PDF Invoices & Packing Slips - "Content" options added. Includes barcodes.
- Dev - Pro - Code refactoring:
- Barcode Generator.
- Shortcodes -
[alg_wc_ean_barcode]
and[alg_wc_ean_barcode_2d]
.
- WC tested up to: 6.7.
4.1.2 - 17/06/2022
- Dev - Tools - Product Actions - Bulk actions - "Require confirmation?" option added (defaults to "Delete EAN").
- Fix - Pro - Print - Print Tools - Quantity - Quantity input was ignored when products had identical EANs.
- Dev - Pro - Print - Admin Options - Print buttons - "Quantity input" option added.
4.1.1 - 16/06/2022
- Fix - Admin product search - Including all post statuses now (e.g., drafts).
- Dev - Tools - Product Tools - Copy to product meta - Meta key - Comma-separated list of keys is now accepted.
4.1.0 - 16/06/2022
- Dev - Tools - Product Tools - "Copy to product meta" tool added.
- Dev - Shortcodes -
[alg_wc_ean_product_sku]
- Optionalmax_length
attribute added. - Dev - Pro - Print - Print Tools - "Print" tool added.
- Dev - Pro - Developers - Print -
alg_wc_ean_print_get_products
filter added. - WC tested up to: 6.6.
4.0.0 - 10/06/2022
- Dev - General - Admin product edit page - 'Add "Generate" button' option added.
- Dev - Compatibility - WCFM - Variations are supported now.
- Dev - Compatibility - WCFM - 'Add "Generate" button' option added.
- Dev - Advanced - Export/Import Plugin Settings - "Reset" tool added.
- Dev - Advanced - Export/Import Plugin Settings - Code refactoring.
- Dev - Shortcodes -
[alg_wc_ean_product_author_id]
shortcode added. - Dev - Developers - Tools - Product Tools - Generate:
alg_wc_ean_product_tools_generate_ean_country_prefix
filter added.alg_wc_ean_product_tools_generate_ean_seed_prefix
filter added.alg_wc_ean_product_tools_generate_ean_seed
filter added.
- Dev - Pro - "Extra Fields" sections added.
- Dev - Pro - Shortcodes - Barcodes -
img_w
andimg_h
attributes added (both defaults tofalse
).
3.9.1 - 24/05/2022
- Dev - Print - Admin settings rearranged.
- Tested up to: 6.0.
3.9.0 - 16/05/2022
- Dev - Tools - Product Tools:
- "Copy to product SKU" tool added.
- "Copy to product attribute" tool added.
- "Variable products" option added.
- Generate - "Seed" options added (defaults to "Product ID").
- Admin settings descriptions updated.
- Code refactoring.
- Dev - Developers -
alg_wc_ean_display
filter added. - WC tested up to: 6.5.
3.8.0 - 07/04/2022
- Dev - Compatibility:
- Point of Sale for WooCommerce - "Add EAN to search" option added.
- "WooCommerce Customer / Order / Coupon Export" plugin compatibility added. Includes barcodes.
- Dev - Barcodes:
- "[2D] Barcode (image link)" and "[2D] Barcode (base64)" columns added to "Products > All Products > Export".
- Barcode generator - Always checking if EAN is valid for 1D barcodes.
- Dev - Advanced - Export/Import Plugin Settings - Import:
- Validating JSON data now.
- Resetting all options before the import now.
- Dev - Shortcodes - Barcodes - Template:
%barcode_base64%
placeholder added.%barcode_link%
placeholder added.
- Dev - Developers - Product structured data -
alg_wc_ean_product_structured_data_markup_key
:$product
is passed to the filter as well now.- Filter is applied for the "Custom key" option as well now.
- Dev - Admin settings:
- General - "Admin search" renamed to "Admin product search".
- Barcodes - "Advanced Options" renamed to "Advanced Barcodes Options".
- Barcodes - "Compatibility" moved to separate sections.
- Print - "Advanced Options" renamed to "Advanced Print Options".
- Dev - Code refactoring:
- EAN edit.
- Export Plugin Settings.
- Barcode generator.
3.7.2 - 22/03/2022
- Dev - Tools - Product Tools - Generate - "Product attribute (optional)" option added.
3.7.1 - 21/03/2022
- Dev - Tools - Product Tools - Copy product meta - "Meta sub key (optional)" option added.
3.7.0 - 21/03/2022
- Dev - Single product page - Positions - "Product additional information tab" position added.
- Dev - Product structured data - "Rank Math SEO" option added (defaults to
no
). - Dev - Barcodes - Cart:
- Using shortcodes now.
- "Cart template" option added.
- Dev - REST API:
- Products - "Search by EAN" option added.
- Orders - "Search by EAN" option added.
- Admin settings descriptions updated.
- Dev - Tools:
- Product Tools - "Get stats" tool added.
- Product Tools - "... total products" message added.
- Product Tools - Assign from the list - "Reuse deleted" option added (defaults to
no
).
- Dev - Shortcodes - Barcodes -
[alg_wc_ean_barcode_2d_base64]
- Defaultw
andh
are set to2
now (was3
). - Dev - "TCPDF" library updated to v6.4.4.
- Dev - Code refactoring:
Alg_WC_EAN_REST_API
class added.Alg_WC_EAN_Order_Items_Table
class added.Alg_WC_EAN_Order_Items_Table_Barcodes
class added.Alg_WC_EAN_Barcodes
class added.
- WC tested up to: 6.3.
3.6.0 - 03/03/2022
- Dev - General - Admin product edit page - "Check if valid" option added (defaults to
yes
). - Dev - General - Admin product edit page - "Check if unique" option added (defaults to
no
). - Dev - General - "Admin product duplicate" option added (defaults to
yes
). - Dev - Shortcodes -
[alg_wc_ean_product_meta]
shortcode added. - Dev - Shortcodes -
[alg_wc_ean_product_function]
shortcode added. - Dev - Shortcodes -
[alg_wc_ean]
-children
attribute (defaults tono
) andglue
attribute (defaults to,
) added. - Dev - Developers -
alg_wc_ean_edit
filter added. - Dev - Print - "Style" option added.
- Dev - Barcodes - Shortcodes -
on_empty
attribute added to[alg_wc_ean_barcode]
,[alg_wc_ean_barcode_2d]
,[alg_wc_ean_barcode_base64]
and[alg_wc_ean_barcode_2d_base64]
shortcodes. - Dev - Admin settings rearranged ("Orders & Emails" subsections added (includes barcodes)).
- Dev - Code refactoring.
3.5.1 - 25/02/2022
- Dev - Compatibility - "WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels" (includes barcodes):
- "Position" option added (defaults to "After item meta" (was "After item name")). Available positions: "Before item name", "After item name", "After item meta", "Before item meta" and "As a separate column".
- "Documents" option added (defaults to all documents (was "Invoice" and "Dispatch label" only)).
- "Column title", "Column HTML class" and "Column HTML style" options added.
3.5.0 - 24/02/2022
- Dev - Compatibility - "WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels" plugin compatibility added. Includes barcodes.
- Dev - Shortcodes -
[alg_wc_ean]
-on_empty
attribute added. - Dev - Shortcodes -
[alg_wc_ean_product_attr]
-product_id
,before
,after
,parent
attributes added. Shortcode moved to the free plugin version. - Dev - Shortcodes -
[alg_wc_ean_product_image]
shortcode added. - Dev - Shortcodes -
[alg_wc_ean_product_name]
shortcode added. - Dev - Shortcodes -
[alg_wc_ean_product_sku]
shortcode added. - Dev - Shortcodes -
[alg_wc_ean_product_price]
shortcode added. - Dev - Shortcodes -
[alg_wc_ean_product_id]
shortcode added. - Dev - Barcodes - Shortcodes -
color
attribute added to[alg_wc_ean_barcode]
,[alg_wc_ean_barcode_2d]
,[alg_wc_ean_barcode_base64]
and[alg_wc_ean_barcode_2d_base64]
shortcodes (defaults to#000000
). - Dev - Print - "Cell border" option added (defaults to "No").
- Dev - Print - Placeholders are deprecated now (shortcodes should be used instead). Default value and admin settings description updated for the "Template" option. Now "Barcode Options", "2D Barcode Options" and "Product Image Options" admin settings subsections are visible only if there is corresponding placeholder in the "Template".
- Dev - Admin settings descriptions updated.
- Dev - Code refactoring.
3.4.0 - 23/02/2022
- Dev - General - Product structured data - "Automatic key" options added.
- Dev - General - Type - Type details - Admin settings restyled.
- Dev - Tools - Product Tools - Generate - Type - Admin settings description added.
- Dev - Barcodes - Shortcodes - Optional
ean
attribute added. - Dev - Barcodes - Shortcodes - Shortcodes are always available now (even if the corresponding barcodes section is disabled), e.g., for the "Print" section.
- Dev - Print - Developers -
alg_wc_ean_print_render_meta_box_shop_order_force_refunded
filter added. - Dev - Print - Developers -
alg_wc_ean_print_barcode_shop_order_refunded_item_qty
filter added. - Dev - Code refactoring.
3.3.0 - 21/02/2022
- Dev - General - Type - "ISBN-13" type added.
- Dev - General - Type - "JAN" type added.
- Dev - General - Type - "Custom" type added; "CODE 128" type removed.
- Dev - General - Type - "Type details" description added.
- Dev - Tools - Product Tools - Generate - "County prefix length" option added (for EAN-8 type only).
- Dev - 1D Barcodes - Advanced Options - "Barcode type" option added (defaults to
Automatic
). - Dev - Code refactoring.
3.2.0 - 15/02/2022
- Dev - Orders - REST API - Now using current product EAN as a fallback (i.e., if there is no EAN in order item meta).
- Dev - Barcodes - "Orders" options added ("Show barcode image on admin order edit page").
- Dev - Barcodes - "REST API" (product and order) options added.
- Dev - Barcodes -
[alg_wc_ean_barcode_base64]
and[alg_wc_ean_barcode_2d_base64]
shortcodes added. - Dev - Admin settings rearranged: "REST API" subsections added.
- Dev - Code refactoring.
3.1.2 - 11/02/2022
- Dev - Compatibility - Dokan - Field added to variations. Includes barcodes.
- Dev - Compatibility - WooCommerce PDF Invoices & Packing Slips - "Position" option added (defaults to "After item meta"). Includes barcodes.
- Dev - Deploy script added.
- WC tested up to: 6.2.
3.1.1 - 04/02/2022
- Dev - Print - Template -
%product_price_regular%
,%product_price_sale%
,%product_price_regular_raw%
,%product_price_sale_raw%
placeholders added.
3.1.0 - 04/02/2022
- Dev - Advanced - "Export/Import Plugin Settings" options added.
- Dev - Advanced - Meta key - Option mark as "required" now.
- Dev - Order items table - Pages - Outputting barcode directly now (i.e., will work on
localhost
environment now). "Advanced > Force remote image" option added. - Dev - Order items table - "Emails" options added. Includes barcodes.
- Dev - Order items table - "Template" options ("HTML" and "Plain text (emails only)") added.
- Dev - Print - Template -
%product_price%
and%product_price_raw%
placeholders added. - Tested up to: 5.9.
3.0.0 - 20/01/2022
- Dev - Single product page - Variable products - Safe-checks added in
variations_add_params()
function. Fixes the compatibility issue with the "WooCommerce Bulk Variations" plugin. - Dev - Admin products list column -
width: 10%
style added. - Dev - Compatibility - "WooCommerce Google Product Feed" plugin compatibility added.
- Dev - Tools - Assign from the list - "Product categories" option added.
- Dev - Barcodes - Compatibility - "Dokan" options added.
- Dev - Print - Print buttons - Single order - Using order item quantities now (and ignoring "Use stock quantity" option).
- Dev - Print - Print buttons - Single order - "Refunded items" buttons added.
- Dev - Print - Print buttons - "Variations print buttons" option added (defaults to
Variations tab
). - Dev - Print - Page format - Dimensions added to the format descriptions.
- Dev - Print - Page format - Custom - Now using
LETTER
as a fallback, in case if custom width or height is set to0
(zero). - Dev - Code refactoring.
- WC tested up to: 6.1.
2.9.0 - 24/12/2021
- Fix - Text domain (translation) fixed.
- Fix - Tools - Product Tools - Automatic actions - Variations update fixed.
- Dev - General - "REST API" (product) option added.
- Dev - Tools - Product Tools - "Periodic action" options added.
- Dev - Tools - Product Tools - "Assign EAN from the list for all products" tool added.
- Dev - Tools - Product Tools - "Automatic actions" options added ("Automatically generate EAN for new products / on product update" options removed).
- Dev - Tools - Product Tools - Automatic actions - "Copy product SKU", "Copy product ID", "Copy product meta" actions added.
- Dev - Tools - Product Tools - Automatic actions - Hook priority increased (from
10
toPHP_INT_MAX
). - Dev - Tools - Product Tools - Products are sorted by ID (ascending) now.
- Dev - Tools - Product Tools - Settings restyled.
- Dev - Print - Print buttons - "Print buttons style" option added.
- Dev - Code refactoring.
- Plugin description improved.
2.8.0 - 16/12/2021
- Dev - General - Shop pages - Now using "Title" option in the template.
- Dev - General - Orders - "REST API" option added.
- Dev - Advanced - "Meta key" option added.
- WC tested up to: 6.0.
2.7.0 - 12/11/2021
- Dev - Tools - Product Tools - Generate - "Seed prefix" option added (optional). "Prefix" options renamed to "Country prefix".
- Dev - Tools - Product Tools - "Products > Bulk actions" option added (defaults to "Generate EAN" and "Delete EAN" actions).
- Dev - Print - "Print barcode" (i.e., vs "Get barcode PDF") buttons added.
- Dev - Print - Advanced Options - "Use Print.js" option added.
- Dev - Print - Advanced Options - "Skip products without EAN" option added.
- Dev - Print - Print buttons - Single product - Separate variation buttons added.
- Dev - Print - Shortcodes -
[alg_wc_ean_product_attr]
shortcode added. - Dev - Print - Placeholders -
%product_parent_title%
placeholder added. - Dev - Print - Placeholders -
%product_parent_sku%
placeholder added. - Dev - Print - Placeholders -
%product_parent_id%
placeholder added. - Dev - Print - Admin settings restyled.
- Dev - Barcodes - Shortcodes -
content
-sku
value added. - WC tested up to: 5.9.
2.6.0 - 03/11/2021
- Dev - Compatibility - "WooCommerce PDF Invoices & Packing Slips" plugin compatibility options added.
- Dev - Compatibility - Print Invoice & Delivery Notes for WooCommerce - Using our "General > Title" option value in PDFs now.
- Dev - Print - Print buttons - "Single order" option added.
- Dev - Print - Print buttons - "Single product" option added.
- Dev - Print - "Print buttons" option added (defaults to
Products > Bulk actions
). - Dev - Print - Template -
%product_sku%
placeholder added. - Dev - Print - Template -
%product_image%
- Now checking ifcurl_init()
function exists. This prevents critical PHP error. - Dev - Admin settings description updated.
- Dev - Code refactoring.
2.5.0 - 28/10/2021
- Dev - Print - "Font" and "Font size" options added. "DejaVu Sans (Unicode)" font added (normal only; italic and bold were not added to reduce the size of the plugin). All other available fonts (i.e., "Times New Roman", "Helvetica" and "Courier") have italic and bold included.
- WC tested up to: 5.8.
2.4.2 - 30/09/2021
- Dev - Search - "Flatsome" theme - Allowing partial EAN matches now.
2.4.1 - 29/09/2021
- Fix - Possible PHP parse error fixed.
2.4.0 - 27/09/2021
- Dev - Developers -
alg_wc_ean_get_type
filter added. - Dev - Admin settings description updated.
- Dev - 1D Barcodes - Checking if EAN is valid before generating the barcode now.
- Dev - Print - Template -
%type%
placeholder added (mostly for debugging). - Dev - Code refactoring.
2.3.0 - 23/09/2021
- Dev - Search - Safe checks added (checking for the valid
$post
variable now).
2.2.9 - 22/09/2021
- Dev - General/Barcodes - Single product page - "Variable products: Position in variation" option added.
- Dev - Compatibility - Admin settings rearranged: moved to a separate settings section.
- Dev - Advanced - "JS selector in variation" option added.
- WC tested up to: 5.7.
2.2.8 - 20/09/2021
- Dev - Tools - Product Tools - Generate - "Automatically generate EAN for new products" option added.
- Dev - Tools - Product Tools - Generate - "Automatically generate EAN on product update" option added.
- Dev - Tools - Product Tools - "Copy EAN from product meta for all products" tool added.
- Dev - Tools - Product Tools - Not overwriting EANs for products with existing EAN now.
- Dev - Developers -
alg_wc_ean_settings_page_label
filter added.
2.2.7 - 16/09/2021
- Dev - General - "Title" option added.
- Dev - Tools - Product Tools - Generate - "Prefix to" option added (optional). "Prefix" option renamed to "Prefix from".
- Dev - Tools - Product Tools - Generate - Code refactoring.
2.2.6 - 15/09/2021
- Dev - Tools - Product Tools - Generate - "Type" option added.
- Dev - Tools - Product Tools - Generate - "Prefix" option added.
- Dev - Tools - Product Tools - Generate - Code refactoring.
- Dev - Tools - Admin settings restyled.
2.2.5 - 14/09/2021
- Fix - General - Admin products list column - Validate - Fixed.
- Dev - Tools - "Generate EAN for all products" tool added.
- Dev - Tools - "Copy EAN from product SKU for all products" tool added.
- Dev - Tools - Copy EAN from product ID for all products - Showing the tool for all EAN types now (not only for
CODE 128
). - Dev - Tools - Admin settings rearranged: moved to a separate settings section. Settings descriptions updated.
- Dev - Barcodes - Outputting barcodes even for non-valid EANs now.
2.2.4 - 07/09/2021
- Fix - Print - Page format - Custom Width/Height - Admin settings description fixed.
- Dev - Print - Advanced - "Suppress errors" option added (defaults to
yes
). - Dev - Print - General - "Page break margin" option added.
- Dev - Print - General - All margins (top/left/right) can be zero now.
- Dev - Print - Admin settings rearranged: "Unit" option moved higher.
- Dev - Print - Admin settings descriptions updated.
- Dev - Barcodes - Advanced - "Suppress errors" options added (defaults to
yes
).
2.2.3 - 31/08/2021
- Dev - Barcodes - Shortcodes -
content
-add_to_cart
value added. - Dev - Barcodes - Shortcodes -
content
-add_to_cart_url
value added. - WC tested up to: 5.6.
2.2.2 - 04/08/2021
- Dev - Plugin Compatibility Options - "Dokan" options added.
- Dev - Plugin Compatibility Options - "WCFM" options added.
- Dev - Admin settings restyled.
2.2.1 - 01/08/2021
- Fix - Search - Our frontend search option caused issues on WooCommerce Analytics page, e.g., when searching for a coupon code in filter. This is fixed now.
- Fix - Admin settings - "Undefined property" PHP notice fixed. Was occurring in "General" settings section, when "Enable plugin" option was disabled.
- WC tested up to: 5.5.
- Tested up to: 5.8.
2.2.0 - 28/06/2021
- Dev - Print - General Options - "Use quantity" option added.
- Dev - Print - General Options - Template -
%product_name%
and%product_title%
placeholders added. - Dev - Compatibility - Point of Sale for WooCommerce - EAN field added to the "Register > Scanning Fields" option.
- Dev - Admin settings descriptions updated.
- Dev - Code refactoring.
- Dev - "PHP Barcode Generator" library removed.
- Dev - "TCPDF" library updated to v6.4.1 (from v6.3.5).
- WC tested up to: 5.4.
2.1.1 - 23/03/2021
- Dev - 2D Barcodes - Advanced Options - "Barcode type" option added (defaults to
QR code: Low error correction
).
2.1.0 - 19/03/2021
- Fix - Print -
%barcode_2d%
- Barcode dimension fixed (was1d
). - Dev - General - "Orders" options ("Add EAN to new order items meta" and "Admin order") added.
- Dev - General - Tools - "Delete EANs from all order items" tool added.
- Dev - General - Tools - "Add EANs to all order items" tool added.
- Dev - General - Tools - "Delete all EANs for all products" tool added.
- Dev - General - Tools - "Generate EANs automatically for all products from product IDs" tool added (for
CODE 128
type only). - Dev - General - Single product page - "Template" option added.
- Dev - General - Single product page - "Position", "Position priority" options added.
- Dev - General - Search - "Flatsome theme" option added.
- Dev - Barcodes - Admin products list column - "Column title" option added.
- Dev - Barcodes - Admin products list column - "Column template" options added. Defaults to barcodes including product children.
- Dev - Barcodes - Shortcodes - Checking if EAN is valid now (when
content
is set toean
). - Dev - Barcodes - Shortcodes -
children
(defaults tono
) andglue
(defaults to empty string) attributes added. This will implode all variation barcodes for variable product. - Dev - Barcodes - Shortcodes -
template
attribute added (defaults to%barcode_img%
). Additional placeholders:%product_id%
,%product_title%
,%value%
. - Dev - Barcodes - Shortcodes -
content
attribute added. Defaults toean
. Other possible values:url
,admin_url
,admin_search
,increase_stock
anddecrease_stock
. - Dev - Barcodes - Shortcodes -
w
andh
attributes added. - Dev - Barcodes - Shortcodes -
product_id
defaults toget_the_ID()
now. - Dev - Barcodes - Shortcodes - Now accessible in "Print barcodes (PDF)" section (i.e., in "Template" option).
- Dev - Print - General Options - "Variations" option added.
- Dev - Code refactoring.
- WC tested up to: 5.1.
- Tested up to: 5.7.
2.0.0 - 10/01/2021
- Dev - "Shop pages" options added.
- Dev - "Cart" options added.
- Dev - Shortcodes -
[alg_wc_ean_barcode]
- Shortcode is now available even if "Barcodes > Single product page" option is disabled. - Dev - Shortcodes -
[alg_wc_ean_barcode_2d]
shortcode added. - Dev - "2D Barcodes" section added.
- Dev - "Print" section added.
- Dev - Barcodes - "Admin products list column" options added.
- Dev - Barcodes - "Enable section" option added (defaults to
no
). - Dev - Localization -
load_plugin_textdomain
moved to theinit
action. - Dev - Settings - All barcode options moved to new "Barcodes" section, subsections merged, etc.
- Dev - Settings - Print Invoice & Delivery Notes for WooCommerce - Link updated.
- Dev - Code refactoring.
- WC tested up to: 4.8.
- Tested up to: 5.6.
1.5.1 - 29/11/2020
- Dev -
[alg_wc_ean]
shortcode added. - Dev -
[alg_wc_ean_barcode]
shortcode added.
1.5.0 - 24/11/2020
- Dev - Type - "Automatic (EAN-13, UPC-A, EAN-8)" option added.
- Dev - EAN field added to the WooCommerce Export and Import tools.
- Dev - EAN field added to the WooCommerce Quick and Bulk edit.
- Dev - Backend Options - Product list column - Column is sortable now.
1.4.0 - 24/11/2020
- Dev - "Type" option added. Now (in addition to the default
EAN-13
) these types are available:CODE 128
,EAN-8
,UPC-A
. - Dev - "Print Invoice & Delivery Notes for WooCommerce" plugin options added.
- WC tested up to: 4.7.
1.3.0 - 28/10/2020
- Fix - Frontend - Show barcode - Variations - It only worked if "Show EAN" option was also enabled. This is fixed now.
- Dev - Free plugin version released.
- WC tested up to: 4.6.
1.2.0 - 13/10/2020
- Dev - "Order Items Table" options added.
- Dev - Frontend - Translation domain fixed.
1.1.1 - 09/09/2020
- Dev - Backend - "Position" option added.
- WC tested up to: 4.5.
1.1.0 - 27/08/2020
- Fix - Displaying variations codes for variable products with no main EAN set - Fixed.
- Dev - JS files minified.
- Dev - Admin settings descriptions updated.
- Dev - Code refactoring.
- Tested up to: 5.5.
- WC tested up to: 4.4.
1.0.3 - 14/01/2020
- Fix - Backend - Search -
meta_query
fixed.
1.0.2 - 08/01/2020
- Dev - Backend - Search - "AJAX search" option added.
- Dev - Code refactoring.
1.0.1 - 05/01/2020
- Dev - EAN-13 validation added.
- Dev - Backend - EAN input pattern now set to accept numbers only; max length set to 13.
1.0.0 - 30/12/2019
- Initial Release.