Hello
>open the order in the woocommerce plugin
Will you see tax column in section “Items”? tax amounts in section “Totals” ?
if you use PRO version — please resubmit ticket https://algolplus.freshdesk.com/
-
This reply was modified 4 months, 1 week ago by
aprokaev.
Thank you. I have the pro version and have submitted this ticket using the link above.
Checkbox ” Tax exempt” (in our plugin) modifies WooCommerce session/cart only.
But plugin “Stripe Tax for WooCommerce” reads “tax exemption” status directly from customer’s profile.
Whom having same problem – please add following code to functions.php or use Code Snippets plugin
//Phone Orders - code for "Stripe Tax for WooCommerce"
add_filter('wpo_after_update_customer', function($customer, $request){
if($customer['id']) {
$tax_exemption_value = get_the_author_meta( 'tax_exemption', $customer['id'] );
if($tax_exemption_value == 'customer_exempt')
$customer['is_vat_exempt'] = true;
else
$customer['is_vat_exempt'] = false;
}
return $customer;
},10,2);
add_action("wpo_before_update_cart", function($cart_data){
$customer = $cart_data['customer'];
if($customer['id']) {
$value = $customer['is_vat_exempt'] ? 'customer_exempt' : 'none';
update_user_meta( $customer['id'], 'tax_exemption', $value);
}
});