Changeset 2498361
- Timestamp:
- 03/17/2021 11:52:54 PM (5 years ago)
- Location:
- subscribility
- Files:
-
- 7 edited
- 10 copied
-
tags/2.9.24 (copied) (copied from subscribility/trunk)
-
tags/2.9.24/includes/frontend/controllers/api/class-wp99234-api-orders.php (copied) (copied from subscribility/trunk/includes/frontend/controllers/api/class-wp99234-api-orders.php)
-
tags/2.9.24/includes/frontend/controllers/api/class-wp99234-api-products.php (copied) (copied from subscribility/trunk/includes/frontend/controllers/api/class-wp99234-api-products.php)
-
tags/2.9.24/includes/frontend/controllers/class-wp99234-order-controller.php (modified) (1 diff)
-
tags/2.9.24/includes/frontend/controllers/class-wp99234-orders.php (copied) (copied from subscribility/trunk/includes/frontend/controllers/class-wp99234-orders.php)
-
tags/2.9.24/includes/frontend/controllers/class-wp99234-products.php (copied) (copied from subscribility/trunk/includes/frontend/controllers/class-wp99234-products.php)
-
tags/2.9.24/includes/frontend/controllers/class-wp99234-registration-forms.php (copied) (copied from subscribility/trunk/includes/frontend/controllers/class-wp99234-registration-forms.php)
-
tags/2.9.24/includes/frontend/controllers/class-wp99234-wc-filter.php (copied) (copied from subscribility/trunk/includes/frontend/controllers/class-wp99234-wc-filter.php) (1 diff)
-
tags/2.9.24/includes/frontend/controllers/class-wp99234-wc-shipping-method.php (modified) (1 diff)
-
tags/2.9.24/includes/services/class-wp99234-abandoned-cart-controller.php (copied) (copied from subscribility/trunk/includes/services/class-wp99234-abandoned-cart-controller.php)
-
tags/2.9.24/readme.txt (copied) (copied from subscribility/trunk/readme.txt) (2 diffs)
-
tags/2.9.24/wp99234.php (copied) (copied from subscribility/trunk/wp99234.php) (1 diff)
-
trunk/includes/frontend/controllers/class-wp99234-order-controller.php (modified) (1 diff)
-
trunk/includes/frontend/controllers/class-wp99234-wc-filter.php (modified) (1 diff)
-
trunk/includes/frontend/controllers/class-wp99234-wc-shipping-method.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp99234.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
subscribility/tags/2.9.24/includes/frontend/controllers/class-wp99234-order-controller.php
r2382505 r2498361 107 107 } 108 108 109 public function getShippingCost() 110 { 111 // array_values returns null if called on an empty array 112 $shipping_methods = array_values( $this->_order->get_shipping_methods() ); 113 114 return $shipping_methods ? $shipping_methods[0]->get_total() : null; 115 } 116 109 117 public function shipToDifferentAddress() 110 118 { -
subscribility/tags/2.9.24/includes/frontend/controllers/class-wp99234-wc-filter.php
r2493786 r2498361 1323 1323 WP99234()->_customer->order->updateOrderData( [ 1324 1324 'shipment' => [ 1325 'shipping_fee_override' => 1,1325 'shipping_fee_override' => true, 1326 1326 'shipping_price' => 0 1327 1327 ] 1328 1328 ] ); 1329 1329 } 1330 1331 if ( $shippingMethod == 'flat_rate' ) { 1332 WP99234()->_customer->order->updateOrderData( [ 1333 'shipment' => [ 1334 'shipping_fee_override' => true, 1335 'shipping_price' => WP99234()->_customer->order->getShippingCost(), 1336 'ship_carrier_pref' => 'ManualShipment' 1337 ] 1338 ] ); 1339 } 1340 1330 1341 } else { 1331 1342 WP99234()->_customer->order->updateOrderData( [ -
subscribility/tags/2.9.24/includes/frontend/controllers/class-wp99234-wc-shipping-method.php
r2415557 r2498361 74 74 'label' => $this->title, 75 75 'cost' => 0.00, 76 'calc_tax' => 'per_item', 77 ]; 78 } else if( 79 !empty( $package['destination']['postcode'] ) || 80 explode( ':', WC()->session->get( 'chosen_shipping_methods' )[0] )[0] == 'flat_rate'){ 81 $rate = [ 82 'id' => $this->id, 83 'label' => $this->title, 84 'cost' => $package['rates']['flat_rate']->cost, 76 85 'calc_tax' => 'per_item', 77 86 ]; -
subscribility/tags/2.9.24/readme.txt
r2493786 r2498361 4 4 Requires at least: 4.9.0 5 5 Tested up to: 5.4.2 6 Stable Tag: 2.9.2 36 Stable Tag: 2.9.24 7 7 PHP version: 7.0 and above 8 8 License: GPLv2 or later … … 70 70 71 71 ## Changelog 72 ###Version 2.9.24 73 - Adding support for flat rate shipping settings in WooCommerce 74 72 75 ###Version 2.9.23 73 76 - Resolve various bugs involving customers editing their orders -
subscribility/tags/2.9.24/wp99234.php
r2493786 r2498361 4 4 * Plugin URI: https://wordpress.org/plugins/subscribility/ 5 5 * Description: Manage and fulfil your sales of wine, beers and other crafted beverages, through clubs and other direct-to-consumer sales channels. 6 * Version: 2.9.2 36 * Version: 2.9.24 7 7 * Author: Troly 8 8 * Author URI: https://troly.io -
subscribility/trunk/includes/frontend/controllers/class-wp99234-order-controller.php
r2382505 r2498361 107 107 } 108 108 109 public function getShippingCost() 110 { 111 // array_values returns null if called on an empty array 112 $shipping_methods = array_values( $this->_order->get_shipping_methods() ); 113 114 return $shipping_methods ? $shipping_methods[0]->get_total() : null; 115 } 116 109 117 public function shipToDifferentAddress() 110 118 { -
subscribility/trunk/includes/frontend/controllers/class-wp99234-wc-filter.php
r2493786 r2498361 1323 1323 WP99234()->_customer->order->updateOrderData( [ 1324 1324 'shipment' => [ 1325 'shipping_fee_override' => 1,1325 'shipping_fee_override' => true, 1326 1326 'shipping_price' => 0 1327 1327 ] 1328 1328 ] ); 1329 1329 } 1330 1331 if ( $shippingMethod == 'flat_rate' ) { 1332 WP99234()->_customer->order->updateOrderData( [ 1333 'shipment' => [ 1334 'shipping_fee_override' => true, 1335 'shipping_price' => WP99234()->_customer->order->getShippingCost(), 1336 'ship_carrier_pref' => 'ManualShipment' 1337 ] 1338 ] ); 1339 } 1340 1330 1341 } else { 1331 1342 WP99234()->_customer->order->updateOrderData( [ -
subscribility/trunk/includes/frontend/controllers/class-wp99234-wc-shipping-method.php
r2415557 r2498361 74 74 'label' => $this->title, 75 75 'cost' => 0.00, 76 'calc_tax' => 'per_item', 77 ]; 78 } else if( 79 !empty( $package['destination']['postcode'] ) || 80 explode( ':', WC()->session->get( 'chosen_shipping_methods' )[0] )[0] == 'flat_rate'){ 81 $rate = [ 82 'id' => $this->id, 83 'label' => $this->title, 84 'cost' => $package['rates']['flat_rate']->cost, 76 85 'calc_tax' => 'per_item', 77 86 ]; -
subscribility/trunk/readme.txt
r2493786 r2498361 4 4 Requires at least: 4.9.0 5 5 Tested up to: 5.4.2 6 Stable Tag: 2.9.2 36 Stable Tag: 2.9.24 7 7 PHP version: 7.0 and above 8 8 License: GPLv2 or later … … 70 70 71 71 ## Changelog 72 ###Version 2.9.24 73 - Adding support for flat rate shipping settings in WooCommerce 74 72 75 ###Version 2.9.23 73 76 - Resolve various bugs involving customers editing their orders -
subscribility/trunk/wp99234.php
r2493786 r2498361 4 4 * Plugin URI: https://wordpress.org/plugins/subscribility/ 5 5 * Description: Manage and fulfil your sales of wine, beers and other crafted beverages, through clubs and other direct-to-consumer sales channels. 6 * Version: 2.9.2 36 * Version: 2.9.24 7 7 * Author: Troly 8 8 * Author URI: https://troly.io
Note: See TracChangeset
for help on using the changeset viewer.