CoCart 4.2 Released: Session and Compatibility Improvements

CoCart 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.

CoCart Plus Support

An update for CoCart Plus is also available that provides compatibility support with 4.2 along with:

  • New improved endpoints for Cart API v2.
  • Users country, region and timezone are now returned in the headers allowing you to customize the store based on users location.
  • RateLimit feature now detects Cloudflare’s IP header.

That’s not all. For today’s special release were having a summer sale giving you 42% OFF if you use COCART42 at checkout. For your continued support with CoCart, this discount will also apply annually so long as the subscription is active. Hurry as the offer will end before the summer holidays are over.

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.

Leave a Reply