The Rules modules provides an amazing amount of flexibility in configuring many aspects of the Drupal, Commerce, Ubercart and Shipwire modules. Complex logic can be expressed using rules to suit most business needs. The Shipwire modules currently support Rules with the following Events, Actions, and Conditions.
Rules events are split out by store module to ensure proper work-flow but follow a similar pattern. When payment is made on a store order the shipment will be immediately created or processed using batch submission depending on module settings. At this point the shipment which includes the basic shipping rate data:
The store order has been submitted to Shipwire to be fulfilled (shipped). The shipment now contain additional data:
The shipment has successfully left a warehouse. Additional data includes:
Tracking number and link -If the shipment carrier provides tracking information then a tracking number and link will be provided.
Unfortunately this rule can only be relied upon if the shipment carrier supports shipment tracking. When the carrier supplies the information then it will be the actual date that the shipment was delivered. Otherwise it will be a calculated date adding the date the shipment was submitted and the expected shipment time.
Shipment events only pass shipment and order IDs as variables. This is by design to reduce server processing time. It is up to the rule to load the appropriate data about shipments or orders when needed. Data for orders and shipments can be loaded using the 'Fetch entity by id' action.
After loading an entity in this manner all the entity properties will be exposed for use in subsequent actions.
Add your comment