Plugin Directory

Changeset 2593377


Ignore:
Timestamp:
09/03/2021 07:00:57 PM (4 years ago)
Author:
taxjar
Message:

Preparing for 3.3.0 release

Location:
taxjar-simplified-taxes-for-woocommerce/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • taxjar-simplified-taxes-for-woocommerce/trunk/CHANGELOG.md

    r2571061 r2593377  
     1# 3.3.0 (2021-09-02)
     2* Fix php warning when store settings are not set
     3* Update minimum WordPress version to 5.4
     4* Update minimum WooCommerce version to 5.1
     5* WooCommerce tested up to version 5.6
     6* Update minimum PHP version to 7.0
     7
    18# 3.2.11 (2021-07-23)
    29* Fix fatal error when no line items present on tax response.
  • taxjar-simplified-taxes-for-woocommerce/trunk/composer.json

    r2502061 r2593377  
    66  "license": "GPL-2.0+",
    77  "require": {
    8     "composer/installers": "~1.2"
     8    "composer/installers": "v2.0.0"
    99  },
    1010  "require-dev": {
    11     "squizlabs/php_codesniffer": "*",
     11    "squizlabs/php_codesniffer": "3.6.0",
    1212    "wp-coding-standards/wpcs": "2.3.0",
    13     "phpunit/phpunit": "5.7.19"
     13    "phpunit/phpunit": "7.5.20"
    1414  },
    1515  "scripts": {
  • taxjar-simplified-taxes-for-woocommerce/trunk/includes/class-taxjar-settings.php

    r2538727 r2593377  
    490490     */
    491491    public static function get_store_settings() {
    492         $taxjar_settings = self::get_taxjar_settings();
    493         $store_address   = get_option( 'woocommerce_store_address' ) ? get_option( 'woocommerce_store_address' ) : $taxjar_settings['store_street'];
    494         $store_city      = get_option( 'woocommerce_store_city' ) ? get_option( 'woocommerce_store_city' ) : $taxjar_settings['store_city'];
     492        $store_address   = self::get_store_setting('woocommerce_store_address', 'store_street' );
     493        $store_city      = self::get_store_setting('woocommerce_store_city', 'store_city' );
     494        $store_postcode  = self::get_store_setting('woocommerce_store_postcode', 'store_postcode' );
    495495        $store_country   = explode( ':', get_option( 'woocommerce_default_country' ) );
    496         $store_postcode  = get_option( 'woocommerce_store_postcode' ) ? get_option( 'woocommerce_store_postcode' ) : $taxjar_settings['store_postcode'];
     496
    497497
    498498        $store_settings = array(
     
    508508        }
    509509
    510         return apply_filters( 'taxjar_store_settings', $store_settings, $taxjar_settings );
     510        return apply_filters( 'taxjar_store_settings', $store_settings, self::get_taxjar_settings() );
     511    }
     512
     513    /**
     514     * Gets the woocommerce store setting if present, otherwise gets the TaxJar store setting.
     515     *
     516     * @param string $woocommerce_option_name WooCommerce option name
     517     * @param string $taxjar_setting_key TaxJar setting key
     518     *
     519     * @return mixed
     520     */
     521    public static function get_store_setting( string $woocommerce_option_name, string $taxjar_setting_key ) {
     522        if ( $woo_setting = get_option( $woocommerce_option_name ) ) {
     523            return $woo_setting;
     524        }
     525
     526        $taxjar_settings = self::get_taxjar_settings();
     527        if ( isset( $taxjar_settings[ $taxjar_setting_key ] ) ) {
     528            return $taxjar_settings[ $taxjar_setting_key ];
     529        }
     530
     531        return null;
    511532    }
    512533
  • taxjar-simplified-taxes-for-woocommerce/trunk/readme.txt

    r2571061 r2593377  
    22Contributors: taxjar, tonkapark, fastdivision
    33Tags: woocommerce, taxjar, tax, taxes, sales tax, tax calculation, sales tax compliance, sales tax filing
    4 Requires at least: 5.3
     4Requires at least: 5.4
    55Tested up to: 5.8
    6 Stable tag: 3.2.11
     6Stable tag: 3.3.0
    77License: GPLv2 or later
    88URI: http://www.gnu.org/licenses/gpl-2.0.html
    9 WC requires at least: 5.0.0
    10 WC tested up to: 5.5.2
     9WC requires at least: 5.1.0
     10WC tested up to: 5.6.0
    1111
    1212Trusted by more than 20,000 businesses, TaxJar’s award-winning solution makes it easy to automate sales tax reporting and filing, and determine economic nexus with a single click.
     
    3636* Simple onboarding accelerates the time it takes to get up and running (typically within 7 days)
    3737* Award-Winning support. Our TaxJar experts are here to help troubleshoot and answer questions with industry-leading support.
    38 * Compatible with WooCommerce 3.0+ and WordPress 4.2+.
    3938* Exempt non-taxable products and take advantage of TaxJar's built-in [sales tax categories](https://developers.taxjar.com/api/reference/#categories) for product exemptions such as clothing, food, software, and more.
    4039* If you sell on other marketplaces or platforms beyond WooCommerce, get your sales tax data all in one spot.
     
    9695
    9796== Changelog ==
     97
     98= 3.3.0 (2021-09-02)
     99* Fix php warning when store settings are not set
     100* Update minimum WordPress version to 5.4
     101* Update minimum WooCommerce version to 5.1
     102* WooCommerce tested up to version 5.6
     103* Update minimum PHP version to 7.0
    98104
    99105= 3.2.11 (2021-07-23)
  • taxjar-simplified-taxes-for-woocommerce/trunk/taxjar-woocommerce.php

    r2571061 r2593377  
    44 * Plugin URI: https://www.taxjar.com/woocommerce-sales-tax-plugin/
    55 * Description: Save hours every month by putting your sales tax on autopilot. Automated, multi-state sales tax calculation, collection, and filing.
    6  * Version: 3.2.11
     6 * Version: 3.3.0
    77 * Author: TaxJar
    88 * Author URI: https://www.taxjar.com
    9  * WC requires at least: 5.0.0
    10  * WC tested up to: 5.5.2
     9 * WC requires at least: 5.1.0
     10 * WC tested up to: 5.6.0
     11 * Requires PHP: 7.0
    1112 *
    1213 * Copyright: © 2014-2019 TaxJar. TaxJar is a trademark of TPS Unlimited, Inc.
     
    4344final class WC_Taxjar {
    4445
    45     static $version = '3.2.11';
    46     public static $minimum_woocommerce_version = '5.0.0';
     46    static $version = '3.3.0';
     47    public static $minimum_woocommerce_version = '5.1.0';
    4748
    4849    /**
Note: See TracChangeset for help on using the changeset viewer.