Plugin Directory

Changeset 998159


Ignore:
Timestamp:
09/28/2014 10:11:25 PM (12 years ago)
Author:
poldira
Message:

Corrected order processing error. Reactivated donation URL

Location:
woocommerce-super-simple-tax-exemption/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-super-simple-tax-exemption/trunk/readme.txt

    r911846 r998159  
    44Tags: woocommerce, no tax, tax exempt, tax exempt ID, tax-exempt, checkout
    55Requires at least: 3.5
    6 Tested up to: 3.9
    7 Stable tag: 1.2
     6Tested up to: 4.0
     7Stable tag: 1.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3838= 1.2 =
    3939* 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  
    44   Plugin URI: http://www.bobbiejwilson.com/woocommerce-super-simple-tax-exempt
    55   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.2
     6   Version: 1.3
    77   Author: Bobbie Wilson
    88   Author URI: http://www.bobbiejwilson.com
     
    1010   */
    1111
     12/**
     13 * Check if WooCommerce is active
     14 **/
     15if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
     16
    1217/*Tax Exempt Checkout for Woocommerce */
    13 if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
     18
    1419add_action('woocommerce_before_order_notes', 'taxexempt_before_order_notes' );
    1520function taxexempt_before_order_notes( $checkout ) {
     
    5762 
    5863function 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>';
    6065}
     66
    6167/*Enqueue the tax exempt trigger script*/
    6268function woocommerce_tax_exempt_script() {
     
    6571}
    6672add_action('init', 'woocommerce_tax_exempt_script', 100);
    67 }//Ends the Woocommerce detection
     73}
    6874?>
Note: See TracChangeset for help on using the changeset viewer.