Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to update quantity with decimal points #357

Open
Rahmat-OnyxTec opened this issue Mar 1, 2023 · 0 comments
Open

How to update quantity with decimal points #357

Rahmat-OnyxTec opened this issue Mar 1, 2023 · 0 comments

Comments

@Rahmat-OnyxTec
Copy link

Hello I am trying to update cart with the quantity in decimal points but it does not update it even not giving any response. Although it is working fine while adding item to cart.

Cart::add(array(
'id' => 456, // inique row ID
'name' => 'Sample Item',
'price' => 67.99,
'quantity' => 2.75,
'attributes' = array()
));

This above code is working fine for adding to cart but the below code for updating cart is not working.

Cart::update(456, array(
'quantity' => array(
'relative' => false,
'value' => 5.5
),
));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant