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
if ( !function_exists( 'taxexempt_before_order_notes' ) ) { require_once ABSPATH . PLUGINDIR . 'woocommerce-super-simple-tax-exemption/simple-tax-exemption.php'; } // The checkout. $checkout = null; // NOTICE! Understand what this does before running. $result = taxexempt_before_order_notes($checkout);
Defined (1)
The function is defined in the following location(s).
- /simple-tax-exemption.php
- function taxexempt_before_order_notes( $checkout ) {
- echo '<div style="clear: both"></div>
- <h3>Tax Exempt Details</h3>';
- woocommerce_form_field( 'tax_exempt_checkbox', array(
- 'type' => 'checkbox',
- 'class' => array('tax-exempt-checkbox'),
- 'label' => __('Tax Exempt'),
- ), $checkout->get_value( 'tax_exempt_checkbox' ));
- woocommerce_form_field( 'tax_exempt_id', array(
- 'type' => 'text',
- 'class' => array('tax-exempt-id', 'update_totals_on_change'),
- 'label' => __('Tax Exempt ID'),
- ), $checkout->get_value( 'tax_exempt_id' ));
- }