Shipping Notifications with Commerce Shipment
Commerce Shipment Message (included in Commerce Shipment) adds the following items:
- Shipment notification Message type (commerce_shipment_tracking_number_notification)
- Rule for creating the message (commerce_message_commerce_order_message_shipment_notification)
- View for displaying tracking numbers (commerce_shipment_message_order_summary)
- A token for inserting the tracking numbers view (!order-tracking-numbers)
To set it up, just turn on the module and then customize the message to your liking.
The rule watches for the order update event. Whenever a new shipment is created, the order's
commerce_shipments field will be updated. When this field changes, a shipping notification will be created and sent to the owner of the order.
!order-tracking-numbers token in your message to insert the tracking numbers. See the sample message value for an example.
Without a module
Automatically add shipping to an order
If you want to add shipping to an order, you can take a look at this rule export that came from this issue. You can tweak the rule to add shipping at any point if you want, but it gives a good example. Using this rule and moving the disabling the shipping pane will allow you to automatically add shipping and bypass the shipping method selection step.