• Resolved rashidavc18

    (@rashidavc18)


    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    In order for the WooCommerce developers to take a closer look into this, would you mind opening a bug report for this at https://github.com/woocommerce/woocommerce/issues/? I’m asking as it’d be much faster to connect with the developers directly rather than relaying what was said in a forum – especially as the support staff here aren’t trained developers in their own right.

    Thanks!

    Thread Starter rashidavc18

    (@rashidavc18)

    Ok
    I have opened a bug report as suggested.
    Hope the issue will be detected and solved
    Thank you

    Hi @rashidavc18,

    Thanks for opening the bug report, our developers will review the details and work towards identifying and rectifying the issue as soon as possible.

    We appreciate your patience during this process. We will keep you updated on the progress. Thank you for your understanding and cooperation.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Mini cart decimal quantity’ is closed to new replies.