Add hooks to the plugin / Store the VAT result as session
We had a request from a client to remove shipping when a valid VAT number is entered. We had to customise the plugin because:
- There are no hooks available.
- The VAT number and result of the VAT check are not stored in a session - or accessible before the checkout is complete, except in the $post data.
Would be great to store the VAT number and validity check in a session so it's accessible elsewhere, e.g. in 'woocommercepackagerates' - or add some hooks / filters to the plugin so it can be extended.
Chris Eilander commented
I prefer it if the hooks are added, that way many more extensions can be made.