🛒 CoCart makes it easy to decouple your WooCommerce store via a customizable REST API that takes the pain out of developing – allowing you to build fast and flexible headless stores.
In this release, we are happy to provide some of the various improvements made through out the plugin that were from the originally planned v4 release. These improvements are backwards compatible but one change is not. See the developer note for details.
Developer note: This release requires the quantity parameter to pass the value as a string for both adding items or updating items. If you are not new to CoCart then please update your code to account for this change.
Find out more about what’s new in CoCart 4.0 in our release post!
Hope you enjoy this release.
Access-Control-Allow-Credentials
being outputted as 1 instead of true. Solves issue 410. Thanks to @SebastianLamprecht for reporting it.CoCart-API-Cart-Expiring
and CoCart-API-Cart-Expiration
.These two new headers can help developers use the timestamps of the cart in session for when it is going to expire and how long until it does expire completely.
WP_DEBUG
is set to true to help with any debugging.📢 This release solves a validation issue for both versions of the Products API when accessing an individual product. It is important that you update to this release asap to keep your store secure.
📢 This release solves a validation issue for both versions of the Products API when accessing an individual product. It is important that you update to this release asap to keep your store secure.
product_variations
by attribute slugs.cocart_products_ignore_private_meta_keys
allows you to prevent meta data for the product to return. (API v2 ONLY)This can be useful should a 3rd party plugin expose private data that should not be made available to the public. For example a plugin that is designed to use web push notifications and exposes an email address.
cocart_products_get_safe_meta_data
to control what product meta is returned. (API v2 ONLY)post_date
if after
and before
date query is set.after
and date before
arguments.orderby
to date should WooCommerce not have a default catalogue value set.cocart_products_get_related_products_exclude_ids
to exclude products from related products.retry()
non-static for plugin suggestions when searching.