Changeset 1453033
- Timestamp:
- 07/12/2016 12:05:40 AM (10 years ago)
- Location:
- shipping-by-rules-for-woocommerce
- Files:
-
- 6 edited
- 12 copied
-
tags/1.2.3 (copied) (copied from shipping-by-rules-for-woocommerce/trunk)
-
tags/1.2.3/LICENSE.txt (copied) (copied from shipping-by-rules-for-woocommerce/trunk/LICENSE.txt)
-
tags/1.2.3/assets (copied) (copied from shipping-by-rules-for-woocommerce/trunk/assets)
-
tags/1.2.3/assets/js/opentools-updatecheck.js (modified) (2 diffs)
-
tags/1.2.3/includes (copied) (copied from shipping-by-rules-for-woocommerce/trunk/includes)
-
tags/1.2.3/includes/rules-shipping-method.php (copied) (copied from shipping-by-rules-for-woocommerce/trunk/includes/rules-shipping-method.php)
-
tags/1.2.3/includes/rules-shipping-post-type.php (copied) (copied from shipping-by-rules-for-woocommerce/trunk/includes/rules-shipping-post-type.php)
-
tags/1.2.3/includes/rules_shipping_framework_woocommerce.php (copied) (copied from shipping-by-rules-for-woocommerce/trunk/includes/rules_shipping_framework_woocommerce.php)
-
tags/1.2.3/includes/rules_shipping_framework_woocommerce_advanced.php (copied) (copied from shipping-by-rules-for-woocommerce/trunk/includes/rules_shipping_framework_woocommerce_advanced.php) (1 diff)
-
tags/1.2.3/library (copied) (copied from shipping-by-rules-for-woocommerce/trunk/library)
-
tags/1.2.3/library/rules_shipping_framework.php (copied) (copied from shipping-by-rules-for-woocommerce/trunk/library/rules_shipping_framework.php) (3 diffs)
-
tags/1.2.3/readme.txt (copied) (copied from shipping-by-rules-for-woocommerce/trunk/readme.txt) (2 diffs)
-
tags/1.2.3/woocommerce-shipping-by-rules.php (copied) (copied from shipping-by-rules-for-woocommerce/trunk/woocommerce-shipping-by-rules.php) (2 diffs)
-
trunk/assets/js/opentools-updatecheck.js (modified) (2 diffs)
-
trunk/includes/rules_shipping_framework_woocommerce_advanced.php (modified) (1 diff)
-
trunk/library/rules_shipping_framework.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/woocommerce-shipping-by-rules.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shipping-by-rules-for-woocommerce/tags/1.2.3/assets/js/opentools-updatecheck.js
r1326718 r1453033 10 10 url: ajaxurl, 11 11 data: { 12 action: 'getUpdateCredentialsRow ',12 action: 'getUpdateCredentialsRow_'+slug, 13 13 slug: slug, 14 14 _ajax_nonce: nonce … … 33 33 var tr = jQuery(btn).closest('tr'); 34 34 var data = { 35 action: 'submitUpdateCredentials ',35 action: 'submitUpdateCredentials_'+slug, 36 36 slug: slug, 37 37 _ajax_nonce: nonce, -
shipping-by-rules-for-woocommerce/tags/1.2.3/includes/rules_shipping_framework_woocommerce_advanced.php
r1446091 r1453033 10 10 die( 'Direct Access to ' . basename( __FILE__ ) . ' is not allowed.' ); 11 11 } 12 require_once( plugin_dir_path( __FILE__ ) . '/rules_shipping_framework_woocommerce.php'); 12 if (!class_exists('RulesShippingFrameworkWooCommerce')) { 13 require_once( plugin_dir_path( __FILE__ ) . '/rules_shipping_framework_woocommerce.php'); 14 } 13 15 14 16 class RulesShippingFrameworkWooCommerceAdvanced extends RulesShippingFrameworkWooCommerce { -
shipping-by-rules-for-woocommerce/tags/1.2.3/library/rules_shipping_framework.php
r1370301 r1453033 426 426 } 427 427 // None of the rules matched, so return NULL, but keep the evaluated results; 428 $this->match[$id] = $result;428 $this->match[$id] = NULL; 429 429 return NULL; 430 430 } … … 454 454 // TODO: This needs to be redone sooner or later! 455 455 $match = $this->evaluateMethodRules ($cart, $method); 456 if ($match && !is_null ($match['rule'])) {456 if ($match && isset($match['rule']) && !is_null ($match['rule'])) { 457 457 $this->setMethodCosts($method, $match, null); 458 458 // If NoShipping is set, this method should NOT offer any shipping at all, so return FALSE, otherwise TRUE … … 485 485 $this->parseMethodRules($method); 486 486 $match = $this->evaluateMethodRules ($cart, $method); 487 if ($match ) {487 if ($match && isset($match['rule']) && !is_null ($match['rule'])) { 488 488 if ($this->handleNoShipping($match, $method)) { 489 489 return $results; -
shipping-by-rules-for-woocommerce/tags/1.2.3/readme.txt
r1446091 r1453033 4 4 Requires at least: 4.0 5 5 Tested up to: 4.5 6 Stable tag: 1.2. 26 Stable tag: 1.2.3 7 7 License: GPLv3 or later 8 8 License URI: http://www.gnu.org/licenses/gpl.html … … 70 70 == Changelog == 71 71 72 = 1.2.3 = 73 * Fix update credentials input 74 * Fix PHP error when both versions of the plugin are enabled 75 * Fix fatal error: Call to a member function isNoShipping() on a non-object... 76 72 77 = 1.2.2 = 73 78 * Fix warning about function signature mismatch -
shipping-by-rules-for-woocommerce/tags/1.2.3/woocommerce-shipping-by-rules.php
r1446091 r1453033 4 4 * Plugin URI: http://open-tools.net/woocommerce/advanced-shipping-by-rules-for-woocommerce.html 5 5 * Description: Define Shipping cost by very general and flexible (text-based) rules. 6 * Version: 1.2. 26 * Version: 1.2.3 7 7 * Author: Open Tools, Reinhold Kainhofer 8 8 * Author URI: http://open-tools.net … … 49 49 * @var string $version Plugin version number. 50 50 */ 51 public $version = '1.2. 2';51 public $version = '1.2.3'; 52 52 53 53 -
shipping-by-rules-for-woocommerce/trunk/assets/js/opentools-updatecheck.js
r1326718 r1453033 10 10 url: ajaxurl, 11 11 data: { 12 action: 'getUpdateCredentialsRow ',12 action: 'getUpdateCredentialsRow_'+slug, 13 13 slug: slug, 14 14 _ajax_nonce: nonce … … 33 33 var tr = jQuery(btn).closest('tr'); 34 34 var data = { 35 action: 'submitUpdateCredentials ',35 action: 'submitUpdateCredentials_'+slug, 36 36 slug: slug, 37 37 _ajax_nonce: nonce, -
shipping-by-rules-for-woocommerce/trunk/includes/rules_shipping_framework_woocommerce_advanced.php
r1446091 r1453033 10 10 die( 'Direct Access to ' . basename( __FILE__ ) . ' is not allowed.' ); 11 11 } 12 require_once( plugin_dir_path( __FILE__ ) . '/rules_shipping_framework_woocommerce.php'); 12 if (!class_exists('RulesShippingFrameworkWooCommerce')) { 13 require_once( plugin_dir_path( __FILE__ ) . '/rules_shipping_framework_woocommerce.php'); 14 } 13 15 14 16 class RulesShippingFrameworkWooCommerceAdvanced extends RulesShippingFrameworkWooCommerce { -
shipping-by-rules-for-woocommerce/trunk/library/rules_shipping_framework.php
r1370301 r1453033 426 426 } 427 427 // None of the rules matched, so return NULL, but keep the evaluated results; 428 $this->match[$id] = $result;428 $this->match[$id] = NULL; 429 429 return NULL; 430 430 } … … 454 454 // TODO: This needs to be redone sooner or later! 455 455 $match = $this->evaluateMethodRules ($cart, $method); 456 if ($match && !is_null ($match['rule'])) {456 if ($match && isset($match['rule']) && !is_null ($match['rule'])) { 457 457 $this->setMethodCosts($method, $match, null); 458 458 // If NoShipping is set, this method should NOT offer any shipping at all, so return FALSE, otherwise TRUE … … 485 485 $this->parseMethodRules($method); 486 486 $match = $this->evaluateMethodRules ($cart, $method); 487 if ($match ) {487 if ($match && isset($match['rule']) && !is_null ($match['rule'])) { 488 488 if ($this->handleNoShipping($match, $method)) { 489 489 return $results; -
shipping-by-rules-for-woocommerce/trunk/readme.txt
r1446091 r1453033 4 4 Requires at least: 4.0 5 5 Tested up to: 4.5 6 Stable tag: 1.2. 26 Stable tag: 1.2.3 7 7 License: GPLv3 or later 8 8 License URI: http://www.gnu.org/licenses/gpl.html … … 70 70 == Changelog == 71 71 72 = 1.2.3 = 73 * Fix update credentials input 74 * Fix PHP error when both versions of the plugin are enabled 75 * Fix fatal error: Call to a member function isNoShipping() on a non-object... 76 72 77 = 1.2.2 = 73 78 * Fix warning about function signature mismatch -
shipping-by-rules-for-woocommerce/trunk/woocommerce-shipping-by-rules.php
r1446091 r1453033 4 4 * Plugin URI: http://open-tools.net/woocommerce/advanced-shipping-by-rules-for-woocommerce.html 5 5 * Description: Define Shipping cost by very general and flexible (text-based) rules. 6 * Version: 1.2. 26 * Version: 1.2.3 7 7 * Author: Open Tools, Reinhold Kainhofer 8 8 * Author URI: http://open-tools.net … … 49 49 * @var string $version Plugin version number. 50 50 */ 51 public $version = '1.2. 2';51 public $version = '1.2.3'; 52 52 53 53
Note: See TracChangeset
for help on using the changeset viewer.