Changeset 3349755
- Timestamp:
- 08/25/2025 02:03:25 PM (6 months ago)
- Location:
- simple-connection-for-chronofresh-woocommerce
- Files:
-
- 8 edited
- 1 copied
-
tags/1.0.3 (copied) (copied from simple-connection-for-chronofresh-woocommerce/trunk)
-
tags/1.0.3/includes/class-sccfcw-chronofresh-admin.php (modified) (2 diffs)
-
tags/1.0.3/includes/class-sccfcw-chronofresh-api.php (modified) (1 diff)
-
tags/1.0.3/readme.txt (modified) (2 diffs)
-
tags/1.0.3/simple-connection-for-chronofresh-woocommerce.php (modified) (1 diff)
-
trunk/includes/class-sccfcw-chronofresh-admin.php (modified) (2 diffs)
-
trunk/includes/class-sccfcw-chronofresh-api.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/simple-connection-for-chronofresh-woocommerce.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
simple-connection-for-chronofresh-woocommerce/tags/1.0.3/includes/class-sccfcw-chronofresh-admin.php
r3348449 r3349755 288 288 'desc_tip' => true, 289 289 'options' => [ 290 'none' => esc_html__('Pas de température', 'simple-connection-for-chronofresh-woocommerce'), 290 291 'ambient' => esc_html__('Ambient', 'simple-connection-for-chronofresh-woocommerce'), 291 292 'fresh' => esc_html__('Fresh', 'simple-connection-for-chronofresh-woocommerce'), … … 296 297 } 297 298 public function save_temperature_field($post_id) { 298 if (isset($_POST['_temperature_type']) && in_array($_POST['_temperature_type'], [' ambient', 'fresh', 'freeze'])) {299 if (isset($_POST['_temperature_type']) && in_array($_POST['_temperature_type'], ['none', 'ambient', 'fresh', 'freeze'])) { 299 300 update_post_meta($post_id, '_temperature_type', sanitize_text_field($_POST['_temperature_type'])); 300 301 } -
simple-connection-for-chronofresh-woocommerce/tags/1.0.3/includes/class-sccfcw-chronofresh-api.php
r3348449 r3349755 282 282 } 283 283 $temp = sanitize_text_field($product->get_meta('_temperature_type', true)) ?: 'ambient'; 284 if ($temp === 'none') { 285 $temp = 'ambient'; 286 } 284 287 $groups[$temp][] = $item; 285 288 } -
simple-connection-for-chronofresh-woocommerce/tags/1.0.3/readme.txt
r3348449 r3349755 5 5 Requires at least: 5.8 6 6 Tested up to: 6.8 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 47 47 == Changelog == 48 48 49 = 1.0.3 = 50 Released on August 25, 2025: 51 * Added: Explicit select when no temperature is defined, which default to ambient for label generation, avoiding any unrecognized state for products linked to chronofresh via Expedition Class. 52 49 53 = 1.0.2 = 50 54 Released on August 22, 2025: -
simple-connection-for-chronofresh-woocommerce/tags/1.0.3/simple-connection-for-chronofresh-woocommerce.php
r3348449 r3349755 3 3 Plugin Name: Simple Connection for ChronoFresh 4 4 Description: Intégration Chronopost pour WooCommerce (Ambient, Fresh, Freeze, Relais) 5 Version: 1.0. 25 Version: 1.0.3 6 6 Author: tlloancy 7 7 License: GPL-2.0+ -
simple-connection-for-chronofresh-woocommerce/trunk/includes/class-sccfcw-chronofresh-admin.php
r3348449 r3349755 288 288 'desc_tip' => true, 289 289 'options' => [ 290 'none' => esc_html__('Pas de température', 'simple-connection-for-chronofresh-woocommerce'), 290 291 'ambient' => esc_html__('Ambient', 'simple-connection-for-chronofresh-woocommerce'), 291 292 'fresh' => esc_html__('Fresh', 'simple-connection-for-chronofresh-woocommerce'), … … 296 297 } 297 298 public function save_temperature_field($post_id) { 298 if (isset($_POST['_temperature_type']) && in_array($_POST['_temperature_type'], [' ambient', 'fresh', 'freeze'])) {299 if (isset($_POST['_temperature_type']) && in_array($_POST['_temperature_type'], ['none', 'ambient', 'fresh', 'freeze'])) { 299 300 update_post_meta($post_id, '_temperature_type', sanitize_text_field($_POST['_temperature_type'])); 300 301 } -
simple-connection-for-chronofresh-woocommerce/trunk/includes/class-sccfcw-chronofresh-api.php
r3348449 r3349755 282 282 } 283 283 $temp = sanitize_text_field($product->get_meta('_temperature_type', true)) ?: 'ambient'; 284 if ($temp === 'none') { 285 $temp = 'ambient'; 286 } 284 287 $groups[$temp][] = $item; 285 288 } -
simple-connection-for-chronofresh-woocommerce/trunk/readme.txt
r3348449 r3349755 5 5 Requires at least: 5.8 6 6 Tested up to: 6.8 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 47 47 == Changelog == 48 48 49 = 1.0.3 = 50 Released on August 25, 2025: 51 * Added: Explicit select when no temperature is defined, which default to ambient for label generation, avoiding any unrecognized state for products linked to chronofresh via Expedition Class. 52 49 53 = 1.0.2 = 50 54 Released on August 22, 2025: -
simple-connection-for-chronofresh-woocommerce/trunk/simple-connection-for-chronofresh-woocommerce.php
r3348449 r3349755 3 3 Plugin Name: Simple Connection for ChronoFresh 4 4 Description: Intégration Chronopost pour WooCommerce (Ambient, Fresh, Freeze, Relais) 5 Version: 1.0. 25 Version: 1.0.3 6 6 Author: tlloancy 7 7 License: GPL-2.0+
Note: See TracChangeset
for help on using the changeset viewer.