How can I limit the total cart/order weight so it does not exceed 7 KG?
I use "Table Rates" shipping method
Looking at the Cart model in magento 2.1 (
We can see that the
Save() method dispatches 2 events,
I would recommend that you create a plugin for
checkout_cart_save_before where you would check the total weight of the quote, if it exceeds your maximum throw a magento
ValidatorException with a message to the customer, otherwise proceed to save method.