FosterCommerce / shipstation-connect

A plugin for Craft Commerce 2 that integrates with ShipStation.
https://plugins.craftcms.com/shipstationconnect
Other
7 stars 10 forks source link

Option to record shipment quantities #29

Closed jmauzyk closed 1 year ago

jmauzyk commented 3 years ago

Noticed that ShipStation posts an XML response with ship notices that include items and quantities shipped. We could really use this information on our end for multiple purposes, so I made the following feature to save those details. The Save shipment items setting saves line item quantities for each shipment and updates the line items and order as partially or fully shipped as notices are pushed to ShipStation Connect. This information can be accessed in twig by passing a matrix block ID like this:

{% set qtys = craft.shipstationConnect.getShipmentQtys(order.shippingInfo.one().id) %}

Is this something you'd consider merging?