OK. Sorry.
I updated WP & Woo and now it doesn’t work for me either. ((
Conducted an investigation:
In new (block) versions, WooCommerce Mini Cart is not able to process decimal values: “Min”, “Max”, “Step”, “Default”.
In new Woo Filters:
– “woocommerce_store_api_product_quantity_minimum”
– “woocommerce_store_api_product_quantity_maximum”
– “woocommerce_store_api_product_quantity_multiple_of”
It is hard only Integer. Without the possibility of change.
See:
public function get_args() {
return [
[
'methods' => \WP_REST_Server::CREATABLE,
'callback' => [ $this, 'get_response' ],
'permission_callback' => 'return_true', 'args' => [ 'key' => [ 'description' => ( 'Unique identifier (key) for the cart item to update.', 'woocommerce' ),
'type' => 'string',
],
'quantity' => [
'description' => __( 'New quantity of the item in the cart.', 'woocommerce' ),
'type' => 'integer',
],
],
],
'schema' => [ $this->schema, 'get_public_item_schema' ],
'allow_batch' => [ 'v1' => true ],
];
}
‘type’ => ‘integer’ should be float.
I am sure that this is not a stupid Woo Mistake.
This is done completely specially.
And this is very sad.
Try to use separate “Mini Car” plugins. They are available. And they work perfectly with Decimal Values.
Choose. A lot of them.