Product QR Code Generator for Magento 2 User Guide
Extension Installation
- Locate the Composer name and version in the extension's
composer.json
file. - Connect via SSH and execute the command:
composer require meetanshi/magento-2-product-qr-code-generator
- Enter your authentication keys (public key as username, private key as password).
- Wait for Composer to complete dependency updates, ensuring no errors occur.
- Verify proper installation by running:
php bin/magento module:status Meetanshi_QrCode
- By default, the extension might be disabled.
- Enable the extension and clear static view files using the following commands:
php bin/magento module:enable Meetanshi_QrCode --clear-static-content
php bin/magento setup:upgrade
- For Magento versions 2.0.x to 2.1.x:
php bin/magento setup:static-content:deploy
- For Magento versions 2.2.x and above:
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
Configuration
To configure the extension, log in to your Magento 2 backend. Navigate to Stores
→ Configuration
→ Product QR Code Generator
to access the extension's settings.
- Product QR Code Generator: Enable or disable the extension here.
- Product Attributes for QR Code: Specify product attributes and their corresponding labels to be included in the QR codes. For example, use the format:
SKU: {sku}, Name: {name}
.
To find available product attributes, navigate to Stores
> Attributes
> Product
. Copy the desired product attribute codes for use in the extension configuration.
Textual description of configuration interface: The configuration screen displays fields for enabling the extension, mapping product attributes (e.g., SKU: {sku}, Name: {name}
), and setting the size of the QR code image in pixels (e.g., 350
).
Size of QR Code: Enter the desired size for the QR code image in pixels.
QR Code Generation
Navigate to Catalog
> Products
. Select the products for which you wish to generate QR codes. Then, choose the "Generate QR Code" mass action from the dropdown menu.
Textual description of product grid and mass action: The product listing grid displays products with columns like 'ID', 'Thumbnail', 'Name', 'Type', 'SKU', 'Price', etc. Users select products by checking boxes and then use a mass action dropdown to select "Generate QR Code".
QR Code Generation Success Message: Upon successful generation, the extension displays a confirmation message, indicating the number of QR codes created.
Textual description of success message: A message confirms QR code generation, e.g., "A total of 2 QR code(s) have been generated."
Download Product QR Codes
After generating QR codes, go to Catalog
> Manage Product QR Codes
to download them. This section lists all previously generated QR codes along with their details and a download option.
Textual description of Manage Product QR Codes grid: The "Manage Product QR Codes" grid shows generated QR codes, their associated product IDs, and a "Download" action. Users can select multiple QR codes for bulk deletion or download.
QR Code Image Download: Click the "Download" action to obtain product QR code images in a ZIP file. Extract the ZIP file to access the QR code images in JPG format.
Textual description of downloaded files: The downloaded ZIP file contains JPG images of the product QR codes, named descriptively like "QR-Code-Apple EarPods" and "QR-Code-iPhone X".
The generated product QR codes can be shared with users to display product details, used on packaging, or included in catalogs.