Enable barcodes for products

Enable barcodes

To manage barcode in the product, open the plugin settings (YITH Plugins -> Barcodes and QR Codes) and active the option Enable for products.

Enable barcode for products

Choose protocol

Choose the barcode protocol you wish to use on your website: explore the Product barcode protocol and you will see a dropdown menu that you can use to select one among many different barcode types, such as EAN-13, STD-25 and QR CODE.

product-protocol

Create barcode automatically

You can let the plugin generate the barcodes both for the products already available and the new ones that you will create.
If you want to generate a barcode for all the products of your shop in an automatic way, click on the specific button that you find in the “Tools” section of the plugin settings dashboard. You can also choose whether to include variations or not.

Generate-barcodes

If you want to assign a barcode automatically to a newly created product, enable the New products entry in the plugin settings dashboard and disable the Enable manual barcode entry.

Enable automatically barcode for new products

Create barcode manually

If you want to assign the barcodes to the products of your shop manually, enable the Enable manual barcode entry in the plugin settings dashboard and disable the New products entry.

This feature is particularly useful in case you have products that already have a barcode or in case you wish to handle the codes manually.

Enable manually barcode for products

Now you will be able to see the barcode and you will have the chance to add one manually by editing the product page.

Product barcode

Variable Products

The plugin allows managing barcodes also for variable products: whether automatic or manual management, you can set a barcode for each single variation.

Barcode for single variattion

Show barcode in product page

The product barcode is shown on the product detail page only if the Show in product page option is enabled.

Barcode showed in the product detail page

 

 

Enable barcodes for orders

Enable barcodes

To manage barcode in the order, open the plugin settings (YITH Plugins -> Barcodes and QR Codes) and active the option Enable for products.

Enable barcode for orders

Choose protocol

Choose the barcode protocol you wish to use on your website: explore the Order barcode protocol and you will see a dropdown menu that you can use to select one among many different barcode types, such as EAN-13, STD-25 and QR CODE.

order-protocol

Create barcode

The barcode can be inserted manually or automatically by the system for each new order created.

If you want the plugin to handle this action, enable the New orders entry in the plugin settings dashboard. Create automtically barcode for new orders

If you prefer to insert the barcode manually, go to the order edit page and set the value through the related metabox shown in the image below.

Set barcode on order

 

Barcodes in emails

You can insert the order barcode, when generated, in all the emails linked to the order or only in the one sent when the order turns into completed.

Insert barcode in emails

Order barcode in email

If you wish to insert also the barcode linked to each product in the email, you need to enable the Product barcode in emailoption.

Show product barcode in email

Product barcode in email

 

 

Print barcodes

If you want to export all your product barcodes to a PDF file, you can do that. Go the the Tools tab, make sure you enable the Variations option if you want to include variations, and then click on Print: this will generate a PDF file with all your product name and barcodes that you can save.

Print-product-barcodes

barcodes-PDF

Shortcodes

YITH Render Barcode

The shortcode [yith_render_barcode] allows you to display a barcode at any location within a page, the parameters of which are:

  • id – Pointing to a specific ID, you will see the barcode object whose ID is equal to the indicated value.
  • hide_if_empty (default: 1): a parameter to be used together with the parameter ID does not show anything if there is not a barcode for the specified ID .
  • value: it allows you to specify a specific value for which display a barcode, used together with the protocol parameter.
  • protocol: it allows you to specify which protocol to use to display the barcode (default: EAN8).

YITH Order Barcode

The shortcode [yith_order_barcode] allows you to view a section with which you can operations on orders.
The parameters of which are:

  • search_type: shows the type of object on which it will implement the actions, the default value is shop_order.
  • capability: (default: ‘manage_woocommerce’) indicates the capabilities necessary to display the result of the shortcode.
  • style: sets the style with which you will see the actions that can be performed on orders, set by default as “buttons”.
  • actions: indicates the actions that can be performed on orders, each share equals one button displayed by the shortcode (search and complete order).

Shortcode - YITH Order Barcode

When the order is completed, a note is added to order (with the name of the user that has done the action), as showed in the picture.

User that has completed the order bu scan

YITH Product Barcode

With this shortcode you can show a text field where the user can enter a barcode value and perform some action, from some custom action like the search to customized actions hooked by third party plugins.

The available parameter are the following:

  • capability: (default: ‘manage_woocommerce’) indicates the capabilities necessary to display the result of the shortcode.
  • actions:(string) A comma separated string with the list of the actions that could be performed on product based on their barcode value.
    Every action will be shown as a button and all custom actions need a third party code to manage the action itself.
    Action available are search and complete order.
    Default: ‘search’

Examples

Show the shortcode area to all the users

You can choose to let everyone see and manage the content area rendered by the shortcode, setting the capability attribute as ‘all’.
The following example will show the shortcode area to everyone.

[yith_product_barcode capability="all"]

The result will be the following(use 994 as value for performing a search on product barcodes):

Example

Show the shortcode area only to user with capability ‘manage_woocommerce’

You can choose to let users see the shortcode area only if they have a specific capability.
The following example will show the shortcode area only to users with ‘manage_woocommerce’ capability.

[yith_product_barcode capability="manage_woocommerce"]

or leaving the capability attribute empty(the default value is ‘manage_woocommerce’

[yith_product_barcode]

The result will be:

Example 2

Show additional buttons in the shortcode area

There is a default action(‘search’) that can be performed on products but it’s possible to add as many buttons, one for every additional actions, allowing third party plugins to manage their custom actions.

The following example will show 4 buttons, labelled ‘search’, ‘increase stock’, ‘decrease stock’ and ‘custom action’.
‘Search’ and stock buttons will really perform a search based on the barcode value entered and increase or decrease the stock value for that given product, as they are built-in actions.

The other button, Custom action (or more buttons if you prefer), will only work if you write a custom code associated with it.

[yith_product_barcode actions="search, increase stock, decrease stock", "custom action"]

The result will be:

barcode increase decrease stock

YITH WooCommerce Event Tickets

YITH Event Tickets for WooCommerce is a plugin that allows you to sell different kinds of tickets for the events advertised on your shop.

By using both plugins, you can search and check-in the tickets by scanning the barcode in the search form shown with the shortcode of YITH Event Tickets plugin.

barcode option

Choose which type of barcode you want to display on the ticket:

  • ticket barcode
  • event barcode
  • order barcode

barcode in ticket

In order to automatically check-in the scanned tickets, you need to enable the ‘automatic check in’ option.

Note: click on the ticket number field, before you start scanning

If you do not select that field, click on that field, the number will not appear. The number will appear in the input you have selected.

automatic scan

With the ‘automatic check in’ selected, the scanned ticket number will automatically appear as ‘checked in’.

For more information on how to create an event ticket, please check the full documentation here.

Check-in through a mobile app?

We don’t offer an in-built application to scan the code, but there are many apps that allow connecting your website with your mobile phone, and make the phone work as a scanner.

Both the PC and the phone have to be connected to the same Wi-fi network. This way, the phone will become a barcode scanner, and you will see the result in your PC.

Gutenberg

The plugin is ready to use with the new Gutenberg editor. When you add a new post or page, you will be able to find our YITH shortcodes and widgets. With a simple click they will be added to your page.

barcode gutenberg