Changeset 998159
- Timestamp:
- 09/28/2014 10:11:25 PM (12 years ago)
- Location:
- woocommerce-super-simple-tax-exemption/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
simple-tax-exemption.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-super-simple-tax-exemption/trunk/readme.txt
r911846 r998159 4 4 Tags: woocommerce, no tax, tax exempt, tax exempt ID, tax-exempt, checkout 5 5 Requires at least: 3.5 6 Tested up to: 3.97 Stable tag: 1. 26 Tested up to: 4.0 7 Stable tag: 1.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 38 38 = 1.2 = 39 39 * Fixed Tax ID Order Meta (Woocommerce now uses get_post_meta) 40 41 = 1.3 = 42 * Fixed order processing error. Updated donation URL. -
woocommerce-super-simple-tax-exemption/trunk/simple-tax-exemption.php
r911846 r998159 4 4 Plugin URI: http://www.bobbiejwilson.com/woocommerce-super-simple-tax-exempt 5 5 Description: A plugin to add simple tax exemption to the Woocommerce checkout page. Records the Tax Exempt ID to the order meta. 6 Version: 1. 26 Version: 1.3 7 7 Author: Bobbie Wilson 8 8 Author URI: http://www.bobbiejwilson.com … … 10 10 */ 11 11 12 /** 13 * Check if WooCommerce is active 14 **/ 15 if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { 16 12 17 /*Tax Exempt Checkout for Woocommerce */ 13 if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { 18 14 19 add_action('woocommerce_before_order_notes', 'taxexempt_before_order_notes' ); 15 20 function taxexempt_before_order_notes( $checkout ) { … … 57 62 58 63 function tax_exempt_field_display_admin_order_meta($order){ 59 echo '<p><strong>'.__('Tax Exempt ID').':</strong> ' . get_post_meta( $order->id, 'Tax Exempt ID', true) . '</p>';64 echo '<p><strong>'.__('Tax Exempt ID').':</strong> ' . get_post_meta( $order->id, 'Tax Exempt ID', true ) . '</p>'; 60 65 } 66 61 67 /*Enqueue the tax exempt trigger script*/ 62 68 function woocommerce_tax_exempt_script() { … … 65 71 } 66 72 add_action('init', 'woocommerce_tax_exempt_script', 100); 67 } //Ends the Woocommerce detection73 } 68 74 ?>
Note: See TracChangeset
for help on using the changeset viewer.