Recap on CoCart Updates for v4.3

Over the past series of releases for v4.3, we’ve been hard at work evolving CoCart to better serve our users and developer community.

We’ve rolled out meaningful updates that refine and improve the plugin, expand developer flexibility, and sharpen overall stability — all without chasing “feature bloat.”

Here’s a summary of what’s been accomplished and why it matters to you.

Highlights of What We’ve Delivered

REST API Improvements

  • Improved Schema Accuracy
    We’ve updated and corrected missing schema details across multiple endpoints, ensuring more consistent and reliable API responses.
  • Shipping Settings Compliance
    We made sure shipping calculations respect WooCommerce settings fully, so the right shipping methods appear based on your store’s configuration.
  • Variation Attribute Sanitization
    We’re now sanitizing variation attribute data to ensure consistent naming and cleaner values across the board — improving consistency for developers and other languages.

Smarter Cart and Session Management

  • Guest Cart Key Prefix
    Guest carts now carry a t_ prefix in their cart keys, improving session identification and aligning with WooCommerce’s session handling approach.
  • Reliable Persistent Carts
    We squashed issues affecting persistent carts, so registered users can pick up right where they left off.

More Power for Developers

  • New Filters
    We introduced new filters like cocart_get_customer_{field} and cocart_get_after_customer_{field-type}_fields — giving developers more granular control over customer data.
  • Plugin Update Safeguards
    We built in checks to hold off automatic plugin updates if your CoCart add-ons aren’t marked as compatible — protecting your live sites from surprises.
add_filter( 'cocart_get_customer_billing_country', function( $value ) {
	if ( WC()->countries->country_exists( $value ) ) {
		return WC()->countries->get_countries()[ $value ];
	}
	return $value;
}, 10, 1);

Developer note: This example alters the value for the billing country from GB to United Kingdom


Compatibility and Performance Gains

  • WooCommerce + WordPress Compatibility
    We’ve tested and confirmed support up to WooCommerce 9.8 and WordPress 6.8.
  • Optimized Cart Fetching
    We fine-tuned cart fetching, delivering faster and more efficient responses.

🛡️ Stability and Security Fixes

  • Product Review API Fixes
    We fixed issues that prevented product reviews from returning correctly via the API.
  • Authentication Improvements
    We tightened up login validation to resolve authentication hiccups.
  • Session Handler Fixes
    We resolved problems with viewing and deleting sessions, improving session management reliability.

🧰 Behind-the-Scenes Quality Work

One of our core values at CoCart is quality over quantity. Even when the changelog looks quiet, we’re constantly improving what’s under the hood:

  • Better Developer Documentation
    We polished code comments and inline docs to help developers get up to speed faster.
  • Code Cleanup
    We fixed typos, improved coding standards, and cleaned up the codebase to make CoCart easier to maintain and extend.
  • Composer + PHPUnit Enhancements
    We upgraded backend tools, strengthening our test coverage and CI/CD pipelines.
  • Admin Experience Tweaks
    We refined admin notices and made plugin management smoother for site owners.
  • Version Support Updates
    We regularly updated compatibility tags to reflect the latest WooCommerce and WordPress versions — keeping you up to date and supported.

📣 Looking Ahead

We’ve been laser-focused on making CoCart faster, more stable, and more developer-friendly — all while staying lean and true to our mission: providing the best API experience for WooCommerce so you can build incredible headless stores with confidence.

Thank you for trusting CoCart to power your stores. We’re excited about what’s next — and as always, we’re listening to your feedback.