Magento 2 Product QR Code Generator extension allows the admin to generate the product QR code images in form of a JPG file based on the product attributes.
Table of Content
- For Magento Marketplace Customers
- Find the Composer name and version of the extension in the extension’s composer.json file.
- Login to your SSH and run:
- composer require meetanshi/magento-2-product-qr-code-generator
- composer require mpdf/qrcode --ignore-platform-reqs
- Enter your authentication keys. Your public key is your username; your private key is your password.
- Wait for Composer to finish updating your project dependencies and make sure there aren’t any errors.
- To verify that the extension installed properly, run the command:
- php bin/magento module:status Meetanshi_QrCode
- By default, the extension is probably disabled.
- Enable the extension and clear static view files:
- php bin/magento module:enable Meetanshi_QrCode --clear-static-content
- 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
- For Meetanshi Customers
- Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
- Login to your SSH and run below commands step by step:
- composer require mpdf/qrcode --ignore-platform-reqs
- 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
- Configuration
To configure the extension, login to Magento 2 backend, move to Stores à Configuration à Product QR Code Generator where you can find various settings to configure the extension.
- Product QR Code Generator: Enable the extension from here.
- Product Attributes for QR Code: Enter product attributes along with the labels to generate product QR codes. For example, SKU: {sku}, Name: {name}
- Go to Stores > Attributes > Product where you can find the list of product attributes. Copy the product attribute code to use here for QR codes generation.
- Size of QR Code: Enter the size of QR code image in pixels.
- QR Code Generation
Go to Catalog > Products, select the products, select the “Generate QR Code” mass action from the dropdown to generate QR codes for selected products.
- QR Code Generation Success Message
The extension shows success message once the QR codes have been generated for products.
- Download Product QR Codes
After the product QR codes have been generated, move to Catalog > Manage Product QR Codes from where you can download product QR codes. Here, already generated product QR codes are saved and enlisted with the details like IDs, product IDs and download action.
- QR Code Image Download
Click the download action to download product QR code images in a zip file. Extract the zip file and you can see product QR codes images in JPG format.
The admin can share these product QR codes with the users to show the product details, allow them to use on packaging, share the catalog, etc.