-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Open
Labels
CheckoutIssues related to checkout page.Issues related to checkout page.EnhancementThe issue is a request for an enhancement.The issue is a request for an enhancement.ExtensibilityRubikStore API checkout endpoints, Mini-Cart, Cart and Checkout related issuesStore API checkout endpoints, Mini-Cart, Cart and Checkout related issuestype: community contribution
Description
Prerequisites
- I have carried out troubleshooting steps and I believe I have found a bug.
- I have searched for similar bugs in both open and closed issues and cannot find a duplicate.
Describe the bug
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.
Expected behavior
In woocommerce minicart quantity updater the decimal quantity should be updated as in normal cart page
Actual behavior
In the mini cart the decimal quantity is not detected
Steps to reproduce
1.Decimal quantity plugin enabled
2.Update Minicart quantity .The decimal quantity will not be updated correctly.
WordPress Environment
SystemStatusReport_dev1.alpha.fishmeat.web.tbdev.in_2024-08-03T07-52-20.txt
Isolating the problem
- I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
- This bug happens with a default WordPress theme active, or Storefront.
- I can reproduce this bug consistently using the steps above.
Metadata
Metadata
Assignees
Labels
CheckoutIssues related to checkout page.Issues related to checkout page.EnhancementThe issue is a request for an enhancement.The issue is a request for an enhancement.ExtensibilityRubikStore API checkout endpoints, Mini-Cart, Cart and Checkout related issuesStore API checkout endpoints, Mini-Cart, Cart and Checkout related issuestype: community contribution