Web Analytics

Fill the form & Get Installation Support

    There are so many third party libraries or extensions that are available for generating/tracking barcodes.

    Today I’m going to share with you that how we can easily add unique barcodes in our pdf using Magento default Zend library.

    First, you have to create [Vendor Name]/[Module Name]/etc/di.xml in your existing module or create a new module and add the below code:

    Then you have to create a plugin file [Vendor Name]\[Module Name]\Plugin\Invoice.php and add the below code:

    After creating both files run php bin/magento cache:flush and see any invoice pdf barcodes are printed as below.

    Fill the below form if you have any Magento programming need.

      Recent Articles

      Author Info

      Hire B. Darji

      Get a Free Quote

        Let our Magento expert connect to discuss your requirement.

          We offer Magento
          certified developers.

          Our Magento clientele
          is 500+.

          We sign NDA for the
          security of your projects.

          We’ve performed 100+
          Magento migration projects.

          Free quotation
          on your project.

          Three months warranty on
          code developed by us.