• Resolved gburns60

    (@gburns60)


    Hello,

    I have my first tax exempt customer and I have checked the box to mark the customer as tax exempt. In the Phone orders section, I can see the order as having no tax. However, when I open the invoice or open the order in the woocommerce plugin, the tax still shows. When I go to pay for the order, the tax is still showing. I am using woocommerce and stripe as my payment gateway.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support aprokaev

    (@aprokaev)

    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.
    Thread Starter gburns60

    (@gburns60)

    Thank you. I have the pro version and have submitted this ticket using the link above.

    Plugin Support aprokaev

    (@aprokaev)

    ok, thank you

    Plugin Support aprokaev

    (@aprokaev)

    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);
    }
    });
Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.