Title: Run plugin manually
Last modified: March 25, 2019

---

# Run plugin manually

 *  Resolved [markpasztor](https://wordpress.org/support/users/markpasztor/)
 * (@markpasztor)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/run-plugin-manually/)
 * 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](https://wordpress.org/support/users/daigo75/)
 * (@daigo75)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/run-plugin-manually/#post-11359219)
 * Hi Mark,
    [As indicated in the FAQ](https://wordpress.org/support/topic/faq-taxes-are-not-calculated-correctly/),
   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://wordpress.org/support/topic/how-to-disable-vat-when-recalculate-is-clicked/#post-11312354](https://wordpress.org/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.

 * ![](https://ps.w.org/woocommerce-eu-vat-assistant/assets/icon.svg?rev=1057426)
 * [EU VAT Assistant for WooCommerce](https://wordpress.org/plugins/woocommerce-eu-vat-assistant/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-eu-vat-assistant/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-eu-vat-assistant/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-eu-vat-assistant/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-eu-vat-assistant/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-eu-vat-assistant/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Diego](https://wordpress.org/support/users/daigo75/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/run-plugin-manually/#post-11359219)
 * Status: resolved