taxexempt_checkout_update_order_review

The Woocommerce Super Simple Tax Exemption taxexempt checkout update order review function.

Description

taxexempt_checkout_update_order_review( $post_data ); 

Parameters (1)

0. $post_data
The post data.

Usage

  1. if ( !function_exists( 'taxexempt_checkout_update_order_review' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-super-simple-tax-exemption/simple-tax-exemption.php'; 
  3.  
  4. // The post data. 
  5. $post_data = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = taxexempt_checkout_update_order_review($post_data); 
  9.  

Defined (1)

The function is defined in the following location(s).

/simple-tax-exemption.php  
  1. function taxexempt_checkout_update_order_review( $post_data ) { 
  2. global $woocommerce; 
  3.  
  4. $woocommerce->customer->set_is_vat_exempt(FALSE); 
  5.  
  6. parse_str($post_data); 
  7.  
  8. if ( isset($tax_exempt_checkbox) && isset($tax_exempt_id) && $tax_exempt_checkbox == '1' && !empty($tax_exempt_id)) 
  9. $woocommerce->customer->set_is_vat_exempt(true);