We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
is_vat_exempt
1 parent 1ca791f commit 97456e7Copy full SHA for 97456e7
includes/class-wc-checkout.php
@@ -371,7 +371,7 @@ public function create_order( $data ) {
371
$order->set_cart_hash( $cart_hash );
372
$order->set_customer_id( apply_filters( 'woocommerce_checkout_customer_id', get_current_user_id() ) );
373
$order_vat_exempt = WC()->cart->get_customer()->get_is_vat_exempt() ? 'yes' : 'no';
374
- $order->add_meta_data( 'is_vat_exempt', $order_vat_exempt );
+ $order->add_meta_data( 'is_vat_exempt', $order_vat_exempt, true );
375
$order->set_currency( get_woocommerce_currency() );
376
$order->set_prices_include_tax( 'yes' === get_option( 'woocommerce_prices_include_tax' ) );
377
$order->set_customer_ip_address( WC_Geolocation::get_ip_address() );
0 commit comments