landofcoder/module-barcodeinventory
最新稳定版本:1.0.0
Composer 安装命令:
composer require landofcoder/module-barcodeinventory
包简介
Magento 2 extensoin Generate barcode for inventory product by landofcoder
关键字:
README 文档
README
``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
Main Functionalities
- Generate barcode by inventory, mutil source stock
- Add product to cart with barcode (GraphQl, REST API)
- query find products by barcode (GraphQl, REST API)
Installation
* = in production please use the --keep-generated option
Option 1 setup via composer (Recommended):
composer require landofcoder/module-barcodeinventory
Option 2 setup via upload FTP:
- Unzip the zip file in
app/code/Lof - Install picqer library:
composer require picqer/php-barcode-generator - Install mpdf library:
composer require mpdf/mpdf
Final step:
- 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
Example Graphql
- 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
}
}
}
}
}
统计信息
- 总下载量: 211
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2021-08-14