CoCart Community 4.2.0 has been released!
This post will highlight what’s included in this version of CoCart Core.
Download directly from WordPress.org.
Other important information:
- This release added more inline documentation for action hooks and filters.
- This release fixes issues with invalid authentication.
- This release does not include a database change.
About:
- Backwards compatible
- Tested up to WordPress 6.6
- Tested up to WooCommerce 9.0
What’s New with CoCart?
The overall performance and experience using the REST-API has been optimized for backwards compatibility with the session handler.
This helps out with supporting more extensions or third party plugins for WooCommerce. We also no longer use cookies as a backup for headless. That’s all native only!
This should also help with the confusion of needing to pass along the session cookie or reading the cookie to extract the cart key and help with user switching much better.
The cart key is provided in both the cart response and returned headers. Saving the cart key in your own cookie or local storage is fairly straight forward.
In addition to refreshing the session handler, you can now request a cart session via a requested header cocart-api-cart-key instead of query parameter.
curl --location --request GET 'http://yourstore.com/wp-json/cocart/v2/cart' \ --header 'cocart-api-cart-key: cartkey'
This release helps further develop CoCart faster and we are already in the process of adding support for WooCommerce products table optimizations, language and currency switching including further optimizations to the REST API.
Improvements and Deprecations
You can view the various other improvements and deprecations in the previous posts.
That’s it. As always, the best it yet to come and your feedback is welcomed. If you have any suggestions to improve CoCart, please submit them here.


