In the latest version the mini cart update for decimal quantity is not working
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.
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 ],
];
}
should be ‘type’ => ‘integer’ should be float.
Please let me know if there is any solution
Thank you
