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.
Article Category: Snippets
For all snippets that could be of use to tweak or customise CoCart.
Categories: Developer (1) · Getting Started (1) · Questions (14) · Requesting support from us (9) · Snippets (5) · WP-CLI (1)
As the only feature in CoCart that does not use the REST API, some developers requested that they have the option to disable it.
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.
Code snippet is included.
Code snippet is included.