Changeset 3332912
- Timestamp:
- 07/23/2025 01:06:37 PM (8 months ago)
- Location:
- gobuddy-the-smart-delivery-solution
- Files:
-
- 16 added
- 1 deleted
- 3 edited
-
tags/2.4.3.1 (deleted)
-
tags/2.4.3.2 (added)
-
tags/2.4.3.2/assets (added)
-
tags/2.4.3.2/assets/css (added)
-
tags/2.4.3.2/assets/css/style.css (added)
-
tags/2.4.3.2/assets/images (added)
-
tags/2.4.3.2/assets/images/icon-128x128.png (added)
-
tags/2.4.3.2/assets/images/icon-256x256.png (added)
-
tags/2.4.3.2/gobuddy-shipping.php (added)
-
tags/2.4.3.2/readme.txt (added)
-
tags/2.4.3.2/src (added)
-
tags/2.4.3.2/src/class-gobuddy-settings.php (added)
-
tags/2.4.3.2/src/class-gobuddy.php (added)
-
tags/2.4.3.2/src/couriers (added)
-
tags/2.4.3.2/src/couriers/class-bobgo.php (added)
-
tags/2.4.3.2/src/couriers/class-pargo.php (added)
-
tags/2.4.3.2/src/couriers/class-tcg.php (added)
-
trunk/gobuddy-shipping.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/class-gobuddy.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gobuddy-the-smart-delivery-solution/trunk/gobuddy-shipping.php
r3331241 r3332912 9 9 * Developer URI: https://gobuddy.net 10 10 * Text Domain: gobuddy-the-smart-delivery-solution 11 * Version: 2.4.3. 111 * Version: 2.4.3.2 12 12 * Requires at least: 5.6 13 13 * Tested up to: 6.8 … … 25 25 define( 'GB_BASE_DIR', plugin_dir_path( __FILE__ ) ); 26 26 define( 'GB_BASE_URL', plugin_dir_url( __FILE__ ) ); 27 define( 'GB_VERSION', '2.4.3. 1' );27 define( 'GB_VERSION', '2.4.3.2' ); 28 28 define( 'GB_API_BASE', 'https://api.gobuddy.net' ); 29 29 define( 'GB_API_VERSION', 'v3' ); -
gobuddy-the-smart-delivery-solution/trunk/readme.txt
r3331241 r3332912 2 2 Contributors: gobuddynetwork1 3 3 Tags: courier, e-commerce, shipping, woocommerce, delivery 4 Stable tag: 2.4.3. 14 Stable tag: 2.4.3.2 5 5 Requires at least: 5.6 6 6 Tested up to: 6.8 … … 100 100 == Changelog == 101 101 102 = 2.4.3.2 = 103 * Enabled order sending to Gobuddy. 104 102 105 = 2.4.3.1 = 103 106 * Fix a minor issue. -
gobuddy-the-smart-delivery-solution/trunk/src/class-gobuddy.php
r3331241 r3332912 56 56 } 57 57 58 //if( self::is_valid_store() ) {58 if( self::is_valid_store() ) { 59 59 60 60 add_filter( 'wc_order_statuses', array( 'Gobuddy', 'add_status_to_list' ), 20 ); … … 63 63 add_action( 'admin_notices', array( 'Gobuddy', 'status_notices' ) ); 64 64 65 //add_action( 'gb_send_order_update_twicedaily', array( 'Gobuddy', 'send_order_update' ) );66 67 //add_action( 'woocommerce_new_order', array( 'Gobuddy', 'new_order_created' ), 10, 2 );68 //add_action( 'woocommerce_checkout_order_created', array( 'Gobuddy', 'checkout_order_created' ), 10, 1 );69 //add_action( 'woocommerce_order_payment_status_changed', array( 'Gobuddy', 'payment_status_changed' ), 10, 2 );70 //add_action( 'woocommerce_order_status_changed', array( 'Gobuddy', 'order_status_changed' ), 10, 3 );71 //add_filter( 'woocommerce_order_data_store_cpt_get_orders_query', array( 'Gobuddy', 'handle_custom_order_query_var' ), 10, 2 );72 73 //wp_clear_scheduled_hook( 'gb_send_order_update' );74 //if ( ! wp_next_scheduled( 'gb_send_order_update_twicedaily' ) ) {75 //// wp_schedule_event( time() + (60 * 30), 'twicedaily', 'gb_send_order_update_twicedaily' );76 //wp_schedule_event( time() + (60 * 5), 'twicedaily', 'gb_send_order_update_twicedaily' );77 //}65 add_action( 'gb_send_order_update_twicedaily', array( 'Gobuddy', 'send_order_update' ) ); 66 67 add_action( 'woocommerce_new_order', array( 'Gobuddy', 'new_order_created' ), 10, 2 ); 68 add_action( 'woocommerce_checkout_order_created', array( 'Gobuddy', 'checkout_order_created' ), 10, 1 ); 69 add_action( 'woocommerce_order_payment_status_changed', array( 'Gobuddy', 'payment_status_changed' ), 10, 2 ); 70 add_action( 'woocommerce_order_status_changed', array( 'Gobuddy', 'order_status_changed' ), 10, 3 ); 71 add_filter( 'woocommerce_order_data_store_cpt_get_orders_query', array( 'Gobuddy', 'handle_custom_order_query_var' ), 10, 2 ); 72 73 wp_clear_scheduled_hook( 'gb_send_order_update' ); 74 if ( ! wp_next_scheduled( 'gb_send_order_update_twicedaily' ) ) { 75 // wp_schedule_event( time() + (60 * 30), 'twicedaily', 'gb_send_order_update_twicedaily' ); 76 wp_schedule_event( time() + (60 * 5), 'twicedaily', 'gb_send_order_update_twicedaily' ); 77 } 78 78 79 79 // Add custom order status … … 102 102 ) 103 103 ); 104 //}104 } 105 105 106 106 self::$weight_unit = get_option( 'woocommerce_weight_unit' ); … … 128 128 'GB_version' => GB_VERSION, 129 129 'GB_client_id' => self::$gb_config[ 'gb_key' ], 130 'wc_key' => self::$gb_config[ 'wc_key' ], 131 'wc_secret' => self::$gb_config[ 'wc_secret' ], 130 132 ] 131 133 ); … … 179 181 $response_code = wp_remote_retrieve_response_code($token_response); 180 182 181 if($response_code == 401 ) {183 if($response_code == 401 || $response_code == 403) { 182 184 self::check_token( 'new' ); 183 185 return FALSE;
Note: See TracChangeset
for help on using the changeset viewer.