• Resolved markpasztor

    (@markpasztor)


    Hello!

    I use your plugin and it is great.
    I faced a problem, I have to create orders manually.

    $order = wc_create_order(array(‘customer_id’ => $user->ID));

    update_post_meta($order->ID, ‘vat_number’, $order_data[‘cummunity_tax_number’]);

    After that can I run somehow your plugin to calculate the VAT?

    Thank you for your help!

    Best regards,
    Mark

Viewing 1 replies (of 1 total)
  • Plugin Author Diego

    (@daigo75)

    Hi Mark,
    As indicated in the FAQ, the EU VAT Assistant doesn’t calculate taxes. That’s an operation performed by WooCommerce. Calling $order->calculate_totals() might be sufficient to trigger the calculation of taxes.

    Please be aware that just adding a VAT number to the order meta doesn’t make it exempt from tax. The EU VAT Assistant doesn’t validate VAT numbers for order entered manually, and doesn’t make such orders “VAT exempt”. To make a manual order exempt from VAT, you can add a custom meta called is_vat_exempt, or write a filter for woocommerce_order_is_vat_exempt. You can read more details about this topic here: https://www.ads-software.com/support/topic/how-to-disable-vat-when-recalculate-is-clicked/#post-11312354

Viewing 1 replies (of 1 total)
  • The topic ‘Run plugin manually’ is closed to new replies.