To install a boostmyshop magento2 extension on your platform, process the following steps :
php bin/magento setup:upgrade
php bin/magento module:enable BoostMyShop_BarcodeLabel
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento cache:flush
The upgrade process is exactly the same as the installation process
You can disable the Barcode Label module using Magento module:disable
command line via SSH :
php bin/magento module:disable BoostMyShop_BarcodeLabel
If you don’t have a product attribute already created to store products barcode, you will have to create a new one following these steps :
Select menu
Stores > Attributes > Product
, then click on buttonAdd new attribute
Configure the new attribute by this way :
- Default label : Barcode
- Attribute code : barcode
- Catalog Input Type for Store Owner : Text field
- Scope : Global
Then, save the attribute.
Warning
It is important to set the attribute scope to “Global” to prevent errors in the extension.
If you want to assign barcodes to all existing products not having one, please run the following command line (via SSH) :
php bin/magento bms_barcodelabel:assign_barcodes