Magento 2 Barcode Generator

Magento 2 Barcode Generator extension lets you create product barcode labels and print them in PDF to improve the inventory management and business efficiency.

 

Table of Content

  1. Extension Installation Guide
  2. Configuration
  3. Barcode Settings
  4. Print Barcodes for the Products
  5. All Barcode Types

 

  1. Extension Installation
  • Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
  • If you are using Magento version 2.3.0 or lesser, install Zend framework barcode library using below command.
    • composer require zendframework/zend-barcode
  • Login to your SSH and run below commands step by step:
    • php bin/magento setup:upgrade
    • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
    • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy -f
    • php bin/magento cache:flush
  • That’s it.

 

  1. Configuration
    To configure the extension, login to Magento 2 backend, move to Stores > Configuration > Barcode Generator where you can find various settings to configure the extension.
  • Barcode Generator: Enable the extension from here.


 

  1. Barcode Settings
    Configure the barcode type and print page related settings here.
  • Select Barcode Type: Select one of the 17 barcode types as per your requirement.
  • Barcode Prefix: Set the barcode prefix that will be added prior to the code generated, based on selected barcode type.
  • Product Attribute for Barcode: The extension auto-creates and assigns “barcode” attribute to the products while extension installation. If you want to use a different attribute, select it from the drop-down.
  • Page Print Width: Select the width of the print page for the barcode.
  • Page Print Height: Select the height of the print page for the barcode.
  • Assign Barcode: After selecting the above options, click here to assign the barcodes to the products.
  • Display Brand Logo: Set YES to display the brand logo in the print page along with the barcode.
  • Logo Image: Upload the brand logo image.
  • Logo Vertical Coordinates: Set the vertical coordinates for the brand logo display on the print page.
  • Logo Horizontal Coordinates: Set the horizontal coordinates for the brand logo display on the print page.
  • Description Attribute: Set various attributes and their coordinates to display and print in the barcode print page.
  • Barcode Preview: Click to see the preview of barcode print page.


 

  1. Print Barcodes for the Products
    Once the barcodes are assigned to the products from the configuration and extension configuration is saved, you can print barcodes for the products. Go to Catalog > Products, click the “Print Barcode” action for the product of which you want to print the barcodes. Add the number of barcode copies you want to print and click “OK”.


  

  • Barcode Print
    Immediately after you add the number of print copies and click ok, the PDF barcode is generated for the products.


 

  1. All Barcode Types
    The extension supports 17 barcode types listed here. Have a look at the printed format of how each one of the barcode types.