https://github.com/magesuite/bulk-goods
This module
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; },