Changeset 2987488
- Timestamp:
- 11/01/2023 03:22:10 PM (2 years ago)
- Location:
- shipbubble
- Files:
-
- 45 added
- 2 edited
-
tags/1.7.3 (added)
-
tags/1.7.3/admin (added)
-
tags/1.7.3/admin/css (added)
-
tags/1.7.3/admin/css/styles-wc.css (added)
-
tags/1.7.3/admin/index.php (added)
-
tags/1.7.3/admin/js (added)
-
tags/1.7.3/admin/js/ajax-create-shipment.js (added)
-
tags/1.7.3/admin/js/ajax-validate-address.js (added)
-
tags/1.7.3/admin/js/ajax-validate-auth.js (added)
-
tags/1.7.3/admin/woocommerce (added)
-
tags/1.7.3/admin/woocommerce/async-create-shipment.php (added)
-
tags/1.7.3/admin/woocommerce/async-validate-address.php (added)
-
tags/1.7.3/admin/woocommerce/enqueue-styles.php (added)
-
tags/1.7.3/admin/woocommerce/orders.php (added)
-
tags/1.7.3/admin/woocommerce/shipping-settings.php (added)
-
tags/1.7.3/admin/wordpress (added)
-
tags/1.7.3/admin/wordpress/async-validate-auth.php (added)
-
tags/1.7.3/admin/wordpress/index.php (added)
-
tags/1.7.3/admin/wordpress/settings-callback.php (added)
-
tags/1.7.3/admin/wordpress/settings-field-validation.php (added)
-
tags/1.7.3/admin/wordpress/settings-menu.php (added)
-
tags/1.7.3/admin/wordpress/settings-page.php (added)
-
tags/1.7.3/admin/wordpress/settings-register.php (added)
-
tags/1.7.3/includes (added)
-
tags/1.7.3/includes/constants.php (added)
-
tags/1.7.3/includes/core-methods.php (added)
-
tags/1.7.3/includes/endpoints.php (added)
-
tags/1.7.3/includes/index.php (added)
-
tags/1.7.3/index.php (added)
-
tags/1.7.3/languages (added)
-
tags/1.7.3/languages/index.php (added)
-
tags/1.7.3/license.txt (added)
-
tags/1.7.3/public (added)
-
tags/1.7.3/public/async-checkout-couriers.php (added)
-
tags/1.7.3/public/css (added)
-
tags/1.7.3/public/css/styles-wc.css (added)
-
tags/1.7.3/public/js (added)
-
tags/1.7.3/public/js/couriers-on-checkout.js (added)
-
tags/1.7.3/public/js/sweetalert2.min.js (added)
-
tags/1.7.3/public/woocommerce (added)
-
tags/1.7.3/public/woocommerce/checkout.php (added)
-
tags/1.7.3/public/woocommerce/enqueue-styles.php (added)
-
tags/1.7.3/readme.txt (added)
-
tags/1.7.3/shipbubble.php (added)
-
tags/1.7.3/uninstall.php (added)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/shipbubble.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shipbubble/trunk/readme.txt
r2987027 r2987488 5 5 Requires at least: 4.0 6 6 Tested up to: 6.3 7 Stable tag: 1.7. 27 Stable tag: 1.7.3 8 8 Requires PHP: 5.6 9 9 License: GPLv3 or later -
shipbubble/trunk/shipbubble.php
r2987026 r2987488 9 9 * Requires at least: 4.0 10 10 * Tested up to: 6.3 11 * Version: 1.7. 211 * Version: 1.7.3 12 12 * Requires PHP: 5.6 13 13 * Text Domain: shipbubble … … 267 267 } 268 268 269 add_action('woocommerce_checkout_order_processed', 'handle_processed', 10, 1); 270 function handle_processed($order_id) 271 { 272 $order = new WC_Order($order_id); 273 $shipping_items = $order->get_items('shipping'); 274 $shipping_total = $order->get_shipping_total(); 275 276 if ($order->has_shipping_method(SHIPBUBBLE_ID) && (empty($shipping_items) || "0" == $shipping_total)) { 277 $order->delete(); 278 wp_send_json_error(); 279 } 280 } 269 // add_action( 'woocommerce_checkout_order_processed', 'handle_processed', 10, 1 ); 270 // function handle_processed($order_id) 271 // { 272 // $order = new WC_Order( $order_id ); 273 // $shipping_items = $order->get_items('shipping'); 274 // $shipping_total = $order->get_shipping_total(); 275 276 // if ($order->has_shipping_method(SHIPBUBBLE_ID) && (empty($shipping_items) || "0" == $shipping_total)) 277 // { 278 // $order->delete(); 279 // wp_send_json_error(); 280 // } 281 // } 281 282 282 283 add_action('woocommerce_thankyou', 'shipbubble_create_shipment_after_order_created', 10, 1);
Note: See TracChangeset
for help on using the changeset viewer.