``landofcoder/module-barcodeinventory``
Compatible with magento 2.3.6, 2.4.0, 2.4.1, 2.4.2, 2.4.2-p1, 2.4.3
- Generate barcode by inventory, mutil source stock
- Add product to cart with barcode (GraphQl, REST API)
- query find products by barcode (GraphQl, REST API)
* = in production please use the --keep-generated
option
composer require landofcoder/module-barcodeinventory
- Unzip the zip file in
app/code/Lof
- Install picqer library:
composer require picqer/php-barcode-generator
- Install mpdf library:
composer require mpdf/mpdf
- Enable the module by running
php bin/magento module:enable Lof_BarcodeInventory
- Apply database updates by running
php bin/magento setup:upgrade
* - Flush the cache by running
php bin/magento cache:flush
- Add Product To Cart by Barcode:
mutation{
frontAddProductToCartByBarcode(
cart_id: 22,
barcode: "123456789"
){
code
message
}
}
- Get Product info by Barcode:
query{
frontProductByBarcode(barcode: "123456789"){
id
name
sku
thumbnail{
url
label
position
}
price_range{
minimum_price{
regular_price{
value
currency
}
final_price{
value
currency
}
}
maximum_price{
regular_price{
value
currency
}
final_price{
value
currency
}
}
}
}
}