autoship_qpilot_orders_via_rest_enable_fee_lines
(src\coupons.php) added to the autoship_qpilot_orders_update_via_rest_convert_fees_to_coupons() function in . This filter can be used to disable the virtual coupons functionality and re-enable the legacy fee line method for QPilot orders coming in on the Rest API. Takes the whether or not to use the new virtual coupon (false sets legacy fee line coupon method) and the request as parameters.
Example
// revert to legacy fee line coupon calculation function xx_use_legacy_coupons($use_new_virtual_coupon, $request){ return true; } add_filter('autoship_qpilot_orders_via_rest_enable_fee_lines', 'xx_use_legacy_coupons', 10, 2 );