Categories: Developer (1) · Getting Started (1) · Questions (14) · Requesting support from us (9) · Snippets (7) · WP-CLI (1)

How to update items in cart in bulk

With the new update cart callback system in place you can now update the quantity of items in the cart in bulk. Simply pass the item key and the quantity for each item you wish to change and the quantity of those items will update.

View article

Disable decimals in money response

Code snippet is included.

View article

Removing the Cart Item Key – API v1

What you see when you return the cart contents is how WooCommerce formats the data. However, via the REST API this particular key is not a requirement.

View article

Disable Load Cart from Session

As the only feature in CoCart that does not use the REST API, some developers requested that they have the option to disable it.

View article

Return totals in cart response formatted

With API v2 of CoCart, the totals are not formatted automatically as per users feedback but for some, they wanted to keep it the same as before.

View article

Returns cart contents without cart item key as parent array

Code snippet is included.

View article