Do your orders require a freezer to stay (ice) cold during the delivery? You can easily update and create an order with the inventory type frozen. This is done through a default type and is applicable to the entire order. The WooCommerce plugin doesn't support this feature on a product level yet.
Setting the inventory type to frozen will also add a snowflake icon to the route in our Last Mile Platform.
Update the functions.php in WordPress admin and add the following script. This will mark all orders as frozen inventory. You can also change the default type to ambient
or chilled
, if that better suits your preferences.
<?php
/**
* @snippet WooCommerce - Set Default Inventory Type
* @author Redlight Media AB / Christopher Hedqvist
* @compatible WooCommerce 7.0.0
*/
function redlight_gordon_inventory_type( $default_type ) {
$default_type = 'frozen';
return $default_type;
}
add_filter('redlight_gd_parcel_type', 'redlight_gordon_inventory_type' );
add_filter('redlight_gd_single_parcel_type', 'redlight_gordon_inventory_type' );