Changeset 2593377
- Timestamp:
- 09/03/2021 07:00:57 PM (4 years ago)
- Location:
- taxjar-simplified-taxes-for-woocommerce/trunk
- Files:
-
- 5 edited
-
CHANGELOG.md (modified) (1 diff)
-
composer.json (modified) (1 diff)
-
includes/class-taxjar-settings.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
-
taxjar-woocommerce.php (modified) (2 diffs)
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 1 8 # 3.2.11 (2021-07-23) 2 9 * Fix fatal error when no line items present on tax response. -
taxjar-simplified-taxes-for-woocommerce/trunk/composer.json
r2502061 r2593377 6 6 "license": "GPL-2.0+", 7 7 "require": { 8 "composer/installers": " ~1.2"8 "composer/installers": "v2.0.0" 9 9 }, 10 10 "require-dev": { 11 "squizlabs/php_codesniffer": " *",11 "squizlabs/php_codesniffer": "3.6.0", 12 12 "wp-coding-standards/wpcs": "2.3.0", 13 "phpunit/phpunit": " 5.7.19"13 "phpunit/phpunit": "7.5.20" 14 14 }, 15 15 "scripts": { -
taxjar-simplified-taxes-for-woocommerce/trunk/includes/class-taxjar-settings.php
r2538727 r2593377 490 490 */ 491 491 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' ); 495 495 $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 497 497 498 498 $store_settings = array( … … 508 508 } 509 509 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; 511 532 } 512 533 -
taxjar-simplified-taxes-for-woocommerce/trunk/readme.txt
r2571061 r2593377 2 2 Contributors: taxjar, tonkapark, fastdivision 3 3 Tags: woocommerce, taxjar, tax, taxes, sales tax, tax calculation, sales tax compliance, sales tax filing 4 Requires at least: 5. 34 Requires at least: 5.4 5 5 Tested up to: 5.8 6 Stable tag: 3. 2.116 Stable tag: 3.3.0 7 7 License: GPLv2 or later 8 8 URI: http://www.gnu.org/licenses/gpl-2.0.html 9 WC requires at least: 5. 0.010 WC tested up to: 5. 5.29 WC requires at least: 5.1.0 10 WC tested up to: 5.6.0 11 11 12 12 Trusted 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. … … 36 36 * Simple onboarding accelerates the time it takes to get up and running (typically within 7 days) 37 37 * 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+.39 38 * 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. 40 39 * If you sell on other marketplaces or platforms beyond WooCommerce, get your sales tax data all in one spot. … … 96 95 97 96 == 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 98 104 99 105 = 3.2.11 (2021-07-23) -
taxjar-simplified-taxes-for-woocommerce/trunk/taxjar-woocommerce.php
r2571061 r2593377 4 4 * Plugin URI: https://www.taxjar.com/woocommerce-sales-tax-plugin/ 5 5 * 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.116 * Version: 3.3.0 7 7 * Author: TaxJar 8 8 * 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 11 12 * 12 13 * Copyright: © 2014-2019 TaxJar. TaxJar is a trademark of TPS Unlimited, Inc. … … 43 44 final class WC_Taxjar { 44 45 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'; 47 48 48 49 /**
Note: See TracChangeset
for help on using the changeset viewer.