Plugin Directory

Changeset 911846


Ignore:
Timestamp:
05/10/2014 09:47:55 PM (12 years ago)
Author:
poldira
Message:

Updated order meta to properly display tax ID - version 1.2

Location:
woocommerce-super-simple-tax-exemption
Files:
7 added
2 edited

Legend:

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

    r870153 r911846  
    44Tags: woocommerce, no tax, tax exempt, tax exempt ID, tax-exempt, checkout
    55Requires at least: 3.5
    6 Tested up to: 3.8
    7 Stable tag: 1.1
     6Tested up to: 3.9
     7Stable tag: 1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3535= 1.1 =
    3636* Fixed Woocommerce detection
     37
     38= 1.2 =
     39* Fixed Tax ID Order Meta (Woocommerce now uses get_post_meta)
  • woocommerce-super-simple-tax-exemption/trunk/simple-tax-exemption.php

    r870151 r911846  
    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.1
     6   Version: 1.2
    77   Author: Bobbie Wilson
    88   Author URI: http://www.bobbiejwilson.com
     
    5757 
    5858function tax_exempt_field_display_admin_order_meta($order){
    59     echo '<p><strong>'.__('Tax Exempt ID').':</strong> ' . $order->order_custom_fields['Tax Exempt ID'][0] . '</p>';
     59    echo '<p><strong>'.__('Tax Exempt ID').':</strong> ' . get_post_meta($order->id, 'Tax Exempt ID', true) . '</p>';
    6060}
    6161/*Enqueue the tax exempt trigger script*/
Note: See TracChangeset for help on using the changeset viewer.