If your selling cases of wine, dozen donuts, fruit baskets or even a six-pack of T-shirts. Mix and Match is ideal for offering similar products in bulk containers. Perfect for encouraging customers to buy in bulk without forcing them to buy items that don’t interest them.
Now you can support these bulk product types in your headless store.
That’s great. Always looking to support more WooCommerce extensions. If your extension provides a new product type or extends with new product features that requires support in CoCart, I look forward to helping you out.
Feedback again has been tremendous and your constant support towards me so that I am able to provide you what I need has been a great help.
It’s especially nice to see customers donating more for the constant updates I have been giving. If you like to give, you can support me by buying me a coffee or simply purchase CoCart Pro while it is on sale until the end of June.
Today I have released v2.2.0 which is a minor release (which means everything is backward compatible with the previous version) that adds support for CORS headers should you need them set and a few tweaks to the plugin just to make it a little bit better.
As always, I recommend creating a backup of your site before updating.
With the improved support for handling products in CoCart, it is easier for developers to add support in their WooCommerce extensions that provide extra product data or options for customers.
With that I am happy to announce that a popular WooCommerce extension called Name Your Price developed by Kathy Darling has become the first official extension to integrate support for CoCart within their plugin as of v3.1.0
This is a great first step in providing CoCart developers the same frontend options via the REST API and it works as advertised.
All that was required was some tweaking to the method used for handling error responses and validating the customers requested price.
I won’t say it was an easy process but one I was able to help develop with the plugin creator.
Documentation provides details on how to accept customers requested price.
Final release candidate for v2.1.2 introducing support to prevent caching CoCart if you have WP REST API Cache plugin installed.
Testing has been going well so I am confident to release on the 4th June, 2020
* NEW: Prevent CoCart from being cached with [WP REST API Cache plugin](https://wordpress.org/plugins/wp-rest-api-cache/).
* Tweaked: Check if product exists first before validating further.
* Tweaked: `cocart_update_cart_validation` filter passes `$current_data` fully.
* Tweaked: If validation for adding or updating item returned an error return error response.
* Dev: Added schema for cart route.
* Dev: Added schema for adding item route.
* Dev: Passed `$product_type` for `cocart_add_cart_item_data` filter.
Another minor release candidate that adds more validation. This time for when an item is updated.
Fixed: Cart removes items correctly if the product is no longer purchasable when cart contents is fetched.
Tweaked: Update item now validates if the product is sold individually to prevent item from updating if true.
Dev: Added filter cocart_update_cart_validation to allow plugin developers to pass their own validation before item is updated in the cart.