The issue is that we have lots of items that are very small 2-50g and a box + packaging weighs 100-200g
The package is often the heaviest part
If we set the item weight (in the product) as the actual weight of the item then when people order lots of things the box weight can make the total weight go over the chosen postage method.
If we ad the box weight to the item then it makes the cost of postage massively expensive and means people don’t make the purchase.
How can I set a box weight for each each package type.
is there an extension for this or is there a way to add some logic to add a tare weight for the box before Magento calculates the weight of a package.
It seems odd that this isn’t a feature of Magento as this seems like something everyone that sells items online would have to do.
I guess i would need some thing that checks order items weight
IF items total weight is less than 1KG THEN add (entered weight for small box)
IF items total weight is less the 2GK but Greater than 1KG then add (entered weight for Medium box)
IF items total is greater than 2KG then add (entered weight for Large Box)
expecting to be able to enter a packaging base weight for parcels
2
Answers
This flow is set on Assumption that the Parcel weight and type information is for the admin And shipping charge is fixed.
Step 1:- create etc/db_schema.xml
Step 2: Create Model/ResourceModel/Order/Grid/Collection.php file
Step 3: Now, Create etc/di.xml file to add custom column data into order grid.
Step 4 : create view/adminhtml/ui_component/sales_order_grid.xml
Step 5:- Create etc/events.xml
step 6: Create Observer/Weight.php and write your custom logic
Step 1:- Create di.xml
Step 2:- Create a plugin to add your custom code
You can calculate the weight according to your logic code and price will get updated accordingly.