Changeset 3465610
- Timestamp:
- 02/20/2026 09:44:36 AM (5 weeks ago)
- Location:
- woot-ro/trunk
- Files:
-
- 5 edited
-
README.txt (modified) (3 diffs)
-
includes/api/class-woot-api.php (modified) (1 diff)
-
includes/shipping/class-woot-shipping-services.php (modified) (1 diff)
-
package.json (modified) (1 diff)
-
woot.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woot-ro/trunk/README.txt
r3462605 r3465610 4 4 Requires at least: 4.0 5 5 Tested up to: 6.9 6 Stable tag: 2.2. 16 Stable tag: 2.2.2 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 78 78 79 79 == Changelog == 80 81 = 2.2.2 = 82 * Fix: Resolved "Array to string conversion" warning in API error handling (class-woot-api.php) 83 * Fix: Resolved "Array to string conversion" warning in shipping services debug logging (class-woot-shipping-services.php) 80 84 81 85 = 2.2.1 = … … 179 183 == Upgrade Notice == 180 184 185 = 2.2.2 = 186 * Fix: Resolved PHP warnings ("Array to string conversion") that could appear during shipping price quotation. 187 181 188 = 2.2.1 = 182 189 * New: Add Woot shipping from admin order page with city/county dropdowns. Price rounding option. Debug logging for API troubleshooting. -
woot-ro/trunk/includes/api/class-woot-api.php
r3462605 r3465610 937 937 if ($code !== 200) { 938 938 $body = json_decode($response_body, true); 939 $error_message = isset($body['error']) ? $body['error']: __('Failed to get prices.', 'woot-ro');939 $error_message = isset($body['error']) ? (is_array($body['error']) ? wp_json_encode($body['error']) : $body['error']) : __('Failed to get prices.', 'woot-ro'); 940 940 self::log('[Quotation Error] HTTP ' . $code . ' - ' . $error_message, 'error'); 941 941 return new WP_Error('api_error', $error_message); -
woot-ro/trunk/includes/shipping/class-woot-shipping-services.php
r3462605 r3465610 1000 1000 1001 1001 if ($debug && $service_id) { 1002 $errors_str = !empty($errors) ? implode(', ', $errors) : 'none';1002 $errors_str = !empty($errors) ? implode(', ', array_map(function($e) { return is_array($e) ? wp_json_encode($e) : $e; }, $errors)) : 'none'; 1003 1003 error_log("Woot Quotation: Service $service_id - total: $final_total, errors: $errors_str"); 1004 1004 } -
woot-ro/trunk/package.json
r3462605 r3465610 1 1 { 2 2 "name": "woot-ro", 3 "version": "2.2. 1",3 "version": "2.2.2", 4 4 "description": "Woot.ro - Romanian Couriers Integration for WooCommerce", 5 5 "author": "Woot.ro <tehnic@woot.ro>", -
woot-ro/trunk/woot.php
r3462605 r3465610 17 17 * Plugin URI: https://woot.ro 18 18 * Description: Integrates all popular couriers in Romania, providing a one-stop solution for all your delivery needs 19 * Version: 2.2. 119 * Version: 2.2.2 20 20 * Author: Woot.ro 21 21 * Author URI: https://woot.ro … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define('WOOT_VERSION', '2.2. 1');38 define('WOOT_VERSION', '2.2.2'); 39 39 40 40 /**
Note: See TracChangeset
for help on using the changeset viewer.