taxexempt_before_order_notes

The Woocommerce Super Simple Tax Exemption taxexempt before order notes function.

Description

taxexempt_before_order_notes( $checkout ); 

Parameters (1)

0. $checkout
The checkout.

Usage

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

Defined (1)

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

/simple-tax-exemption.php  
  1. function taxexempt_before_order_notes( $checkout ) { 
  2.  
  3. echo '<div style="clear: both"></div> 
  4.  
  5. <h3>Tax Exempt Details</h3>'; 
  6.  
  7. woocommerce_form_field( 'tax_exempt_checkbox', array( 
  8. 'type' => 'checkbox',  
  9. 'class' => array('tax-exempt-checkbox'),  
  10. 'label' => __('Tax Exempt'),  
  11. ), $checkout->get_value( 'tax_exempt_checkbox' )); 
  12.  
  13.  
  14. woocommerce_form_field( 'tax_exempt_id', array( 
  15. 'type' => 'text',  
  16. 'class' => array('tax-exempt-id', 'update_totals_on_change'),  
  17. 'label' => __('Tax Exempt ID'),  
  18. ), $checkout->get_value( 'tax_exempt_id' ));