CoCart Lite v3.7 Release Notes

A bit late on the release notes for v3.7 because I have been busy working on v4.0 but more news on that soon.

Developer Note

A few minor versions of CoCart have been released! Available for download from GitHub and

If you have any questions about the releases, please post them in the comments below.

What’s New in CoCart v3.7

  • Added get_session_data() function to the session handler. Some WooCommerce plugins appear to be accessing it (though I don’t recommend it).
  • 🚀 You can now limit the results set to products assigned a specific category or tag via their slug names instead of ID.

Here is an example of limiting product results via category and tag.

curl -X GET \
  -H "Content-Type: application/json" \
  -d '{
    "category": "accessories",
    "tag": "hats"

There was some confusion with this as the documentation said (query by ID) but the API schema said (query by slug). Now you can do either. This adjustment affects both API versions for products.

Developer Note


  • Improved: CoCart does not proceed with any installation when activated unless WooCommerce is active first. Solves [issue #341]
  • Removed “Turn off CoCart” button from admin notice as the plugin already deactivates if WooCommerce not detected.
  • Prevent plugin action links from showing if CoCart is not active.
  • Tested: ✔️ Compatible with WooCommerce v6.6
  • Tested: ✔️ Compatible with WordPress v6.0


  • Unlocked a change made in v3.4.0 by un-registering the rest field yoast_head for the Products API.

Originally it was to keep the JSON response valid because a bug at the time was causing the response to not return correctly. It was also to increase the performance of the response as Yoast SEO returns the same data twice just in a different format. Now the issue appears to be gone and recent feedback suggested this should be left on by default.

Developer Note

Other improvements for supporting third party plugins are in the works.

If you want to discuss supporting a third party plugin, start a discussion on the CoCart GitHub repository.

Database changes

This release does not introduce any changes to the database.