Document filter `woocommerce_shipstation_no_shipping_item`
-
We have had issues where certain discounts/etc were showing up in ShipStation as line items. Given that we are using mandatory scan-to-verify this posed problems as those line items could not be verified.
ShipStation support has not been very helpful, but in looking through the source code I do see a filter added in v4.1.31 2020-01-05:
Add – Filter
woocommerce_shipstation_no_shipping_item
for when an item does not need shipping or is a fee.It seems that writing a quick plugin to simply return true here based on the first argument which is the AND of “! $product || ! $product->needs_shipping()” and “‘fee’ !== $item[‘type’]”. In our case, the discount line items should not be a product or needs shipping, and they are type fee so this should return true, and our filter could return that value and thus exclude the discount/fee items.
Can you confirm?
- The topic ‘Document filter `woocommerce_shipstation_no_shipping_item`’ is closed to new replies.