Closed (fixed)
Project:
Commerce Shipping
Version:
3.x-dev
Component:
User interface
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Dec 2025 at 13:19 UTC
Updated:
9 Jan 2026 at 11:49 UTC
Jump to comment: Most recent
Comments
Comment #4
tbkot commented@jsacksick now we can create a shipment without any items in it. An incomplete shipment has a label on the "Shipping information" card. Should we also add a guard to prevent orders from being completed if there are incomplete shipments?
Comment #7
jsacksick commentedI opened a different merge request with a different approach after discussing this with @rszrama.
The
ShipmentAddModalFormis now trying to pack the order when the order doesn't reference a shipment yet.The main problem I faced was the
DefaultPackernot returning a ProposedShipment in case the order doesn't reference any shipment.Instantiating a ProposedShipment without items wasn't supported and would crash so what I did was changing the constructor logic to allow not passing items.
I'm a bit concerned about the potential ramifications of the change... But let's see what happens with the tests.
We need additional tests coverage as well..
I ended up defining a new packer called
"AdminPacker"that has a lower priority than the default packer and should only pack if the default packer didn't pack the order.It applies if a certain flag is set on the order, the flag is set from the
ShipmentAddModalForm.Comment #11
jsacksick commented