Changeset 2711454
- Timestamp:
- 04/19/2022 08:56:44 AM (4 years ago)
- Location:
- deliveryplus-by-invisible-dragon
- Files:
-
- 4 added
- 8 edited
- 1 copied
-
tags/1.5 (copied) (copied from deliveryplus-by-invisible-dragon/trunk)
-
tags/1.5/class.DeliveryPlus_Filter_Override.php (added)
-
tags/1.5/class.DeliveryPlus_Filter_ShippingClass.php (added)
-
tags/1.5/class.DeliveryPlus_Filters.php (modified) (3 diffs)
-
tags/1.5/class.DeliveryPlus_Shipping_Method.php (modified) (3 diffs)
-
tags/1.5/id-delivery.php (modified) (3 diffs)
-
tags/1.5/readme.txt (modified) (1 diff)
-
trunk/class.DeliveryPlus_Filter_Override.php (added)
-
trunk/class.DeliveryPlus_Filter_ShippingClass.php (added)
-
trunk/class.DeliveryPlus_Filters.php (modified) (3 diffs)
-
trunk/class.DeliveryPlus_Shipping_Method.php (modified) (3 diffs)
-
trunk/id-delivery.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
deliveryplus-by-invisible-dragon/tags/1.5/class.DeliveryPlus_Filters.php
r2572959 r2711454 79 79 require_once "class.DeliveryPlus_Filter_SubTotal.php"; 80 80 require_once "class.DeliveryPlus_Filter_Count.php"; 81 require_once "class.DeliveryPlus_Filter_Override.php"; 82 require_once "class.DeliveryPlus_Filter_ShippingClass.php"; 81 83 82 84 DeliveryPlus_Filter_Category::activate(); … … 84 86 DeliveryPlus_Filter_Weight::activate(); 85 87 DeliveryPlus_Filter_Count::activate(); 88 DeliveryPlus_Filter_Override::activate(); 89 DeliveryPlus_Filter_ShippingClass::activate(); 86 90 } 87 91 … … 158 162 159 163 public static function filter_package( $filters, $package ) { 160 164 161 165 if(empty($filters)) { 162 166 return true; 163 167 } 164 168 165 169 foreach($filters as $block) { 166 170 -
deliveryplus-by-invisible-dragon/tags/1.5/class.DeliveryPlus_Shipping_Method.php
r2572959 r2711454 23 23 'type' => 'checkbox', 24 24 'label' => __( 'Enable this shipping method' ), 25 'default' => ' yes',25 'default' => 'no', 26 26 ), 27 27 'title' => array( … … 115 115 $this->title = $this->get_option( 'title' ); 116 116 $this->internal_name = $this->get_option( 'internal_name' ); 117 $this->rate = $this->get_option('rate'); 117 $this->rate = $this->get_option( 'rate' ); 118 $this->tax_status = $this->get_option( 'tax_status' ); 118 119 119 120 if($this->internal_name) { … … 445 446 if(is_array($skip)) { 446 447 if (in_array($this->instance_id, $skip)) { 447 unset($package['contents'][$item_id]); 448 if(!apply_filters('idd_override_apply_filters', false)) { 449 unset($package['contents'][$item_id]); 450 } 448 451 } else { 449 452 return; -
deliveryplus-by-invisible-dragon/tags/1.5/id-delivery.php
r2465699 r2711454 7 7 Author URI: https://invisibledragonltd.com/ 8 8 License: Private 9 Version: 1. 39 Version: 1.6 10 10 Requires PHP: 5.6 11 11 … … 14 14 */ 15 15 16 define('ID_DELIVERY_VERSION', '1. 3');16 define('ID_DELIVERY_VERSION', '1.6'); 17 17 18 18 add_action( 'plugins_loaded', array( 'DeliveryPlusPlugin', 'get_instance' ) ); … … 365 365 } 366 366 367 368 369 367 public function acf_location_rule_values($rules) { 370 368 return [ 1 => "DeliveryPlus" ]; -
deliveryplus-by-invisible-dragon/tags/1.5/readme.txt
r2465699 r2711454 69 69 * Actually works without Advanced Custom Fields 70 70 * Rate per each shipping class 71 71 72 = 1.4 = 73 * Change which options apply to a product to override filters 74 75 = 1.5 = 76 * Allow overrides to be a filter 77 72 78 == Upgrade Notice == 73 79 -
deliveryplus-by-invisible-dragon/trunk/class.DeliveryPlus_Filters.php
r2572959 r2711454 79 79 require_once "class.DeliveryPlus_Filter_SubTotal.php"; 80 80 require_once "class.DeliveryPlus_Filter_Count.php"; 81 require_once "class.DeliveryPlus_Filter_Override.php"; 82 require_once "class.DeliveryPlus_Filter_ShippingClass.php"; 81 83 82 84 DeliveryPlus_Filter_Category::activate(); … … 84 86 DeliveryPlus_Filter_Weight::activate(); 85 87 DeliveryPlus_Filter_Count::activate(); 88 DeliveryPlus_Filter_Override::activate(); 89 DeliveryPlus_Filter_ShippingClass::activate(); 86 90 } 87 91 … … 158 162 159 163 public static function filter_package( $filters, $package ) { 160 164 161 165 if(empty($filters)) { 162 166 return true; 163 167 } 164 168 165 169 foreach($filters as $block) { 166 170 -
deliveryplus-by-invisible-dragon/trunk/class.DeliveryPlus_Shipping_Method.php
r2572959 r2711454 23 23 'type' => 'checkbox', 24 24 'label' => __( 'Enable this shipping method' ), 25 'default' => ' yes',25 'default' => 'no', 26 26 ), 27 27 'title' => array( … … 115 115 $this->title = $this->get_option( 'title' ); 116 116 $this->internal_name = $this->get_option( 'internal_name' ); 117 $this->rate = $this->get_option('rate'); 117 $this->rate = $this->get_option( 'rate' ); 118 $this->tax_status = $this->get_option( 'tax_status' ); 118 119 119 120 if($this->internal_name) { … … 445 446 if(is_array($skip)) { 446 447 if (in_array($this->instance_id, $skip)) { 447 unset($package['contents'][$item_id]); 448 if(!apply_filters('idd_override_apply_filters', false)) { 449 unset($package['contents'][$item_id]); 450 } 448 451 } else { 449 452 return; -
deliveryplus-by-invisible-dragon/trunk/id-delivery.php
r2465699 r2711454 7 7 Author URI: https://invisibledragonltd.com/ 8 8 License: Private 9 Version: 1. 39 Version: 1.6 10 10 Requires PHP: 5.6 11 11 … … 14 14 */ 15 15 16 define('ID_DELIVERY_VERSION', '1. 3');16 define('ID_DELIVERY_VERSION', '1.6'); 17 17 18 18 add_action( 'plugins_loaded', array( 'DeliveryPlusPlugin', 'get_instance' ) ); … … 365 365 } 366 366 367 368 369 367 public function acf_location_rule_values($rules) { 370 368 return [ 1 => "DeliveryPlus" ]; -
deliveryplus-by-invisible-dragon/trunk/readme.txt
r2465699 r2711454 69 69 * Actually works without Advanced Custom Fields 70 70 * Rate per each shipping class 71 71 72 = 1.4 = 73 * Change which options apply to a product to override filters 74 75 = 1.5 = 76 * Allow overrides to be a filter 77 72 78 == Upgrade Notice == 73 79
Note: See TracChangeset
for help on using the changeset viewer.