Mailchimp Banner | Q2 2024

added by Latoya

Product Icon

ShipStation for WooCommerce

by  Woo
Ship your WooCommerce orders with confidence, save on top carriers, and automate your processes with ShipStation.

Add filter hook to change or override weight

As per our client’s requirement, we needed a way to modify the weight of the product when shipping request is processed. We needed a way to add or override the product weight with a custom field value from WooCommerce Extra Product Options. To achieve this we have added a custom filter hook in Shipping plugin where it’s retrieving the Product weight.

The following filter is added to the plugin

apply_filters( ‘epoms_calculated_option_weight_shipstation’, wc_get_weight( $product->get_weight(), ‘oz’ ), $product, $item, ‘oz’ )

woocommerce-shipstation-integration/includes/api-requests/class-wc-shipstation-api-export.php
Line 239

Author

Current Status

Open

Last updated: January 27, 2020

0 comments

Log in to comment on this feature request.