BulkGoods (optional)
This module allows marking products as bulk goods and adding additional fee when bulk goods products are ordered.
Â
Installation
This module is optional.
composer require "creativestyle/magesuite-bulk-goods" ^2.0.0
Admin settings
Admin settings for the module are placed in Stores -> Configuration -> MageSuite -> Bulk Goods
Â
Â
Settings:
Setting name | Value | Comment |
---|---|---|
Is enabled |  Yes/No |  |
Label | string | This text will be displayed in the totals section. |
Fee | number | This value will be added to totals, if any bulk good is in the cart. |
Is Free shipping |  Yes/No | Bulk goods fee will not be added if shipping is free. |
Â
If the bulk goods module is enabled, products can be marked as bulk goods in their product form:
Â
Backend
Add documentation for BE code
Â
Frontend
Bul good fee is visible on the cart and checkout page:
The bulk goods fee is displayed getPureValue
is higher than 0
getPureValue: function() {
var price = 0;
if (this.totals() && totals.getSegment('bulk_goods_fee')) {
price = totals.getSegment('bulk_goods_fee').value;
}
return price;
},
Â