Request a quote - How to set override shipping off when edit a quote as default

If you want to set override shipping off when edit a quote as default you can use the following code in functions.php of you theme:

add_filter( 'ywraq_order_metabox', 'ywraq_override_shipping_off' );
function ywraq_override_shipping_off( $fields ) {
if ( isset( $fields['ywraq_disable_shipping_method'] ) ) {
$fields['ywraq_disable_shipping_method']['std'] = 'no';
}
return $fields;
}


screenshot-wc27.dev_2017-06-05_13-22-07.png

Was this article helpful?
0 out of 0 found this helpful

Back to Help Center

Powered by Zendesk