Categories
CoCart Core

CoCart Lite v3.2 Release Notes

As promised, faster releases. A new version of CoCart has been released! Version 3.2.0 is now available.

As promised, faster releases. A new version of CoCart has been released! Version 3.2.0 is now available for download from GitHub and WordPress.org.

This release is more fine tuning, and some further improvements for the Products API (API v2), fixes annoying review notice though if you do love CoCart consider posting a review and let others now what you think and love about it.

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

What’s New in CoCart v3.2

  • Enhancement: Moved products array to it’s own object and returned pagination information in the response. – Products API v2 ONLY!

A small break but a good one thanks to the feedback from Alberto Abruzzo.

This only affects when accessing all products with or without query parameters set. Now you need to access the array of products from an object not just from the response as is.

You now get the page number, total pages, total products and pagination links in the response.

What’s also great about this enhancement is that any query parameters set will also be appended to the pagination links making it easy for developers to make the same query request for the next or previous page.

{
    "products": [
        {
            "id": 19,
            "parent_id": 0,
            "name": "V-Neck T-Shirt",
            "type": "variable",
            ...
        },
    ],
    "page": 2,
    "total_pages": 22,
    "total_products": 22,
    "_links": {
        "prev": [
            {
                "href": "https://mystore.com/wp-json/cocart/v2/products?page=1&per_page=1"
            }
        ],
        "next": [
            {
                "href": "https://mystore.com/wp-json/cocart/v2/products?page=3&per_page=1"
            }
        ]
    }
}
  • Fixed: Plugin review notice reappearing even after it has been dismissed. – Although the database saved a user meta value once dismissed, it was still being ignored.
  • Deprecated: Support for WooCommerce less than version 4.8 or legacy versions of WooCommerce Admin before it was packaged with the core of WooCommerce.
  • Enhancement: Better detection of WooCommerce Admin. Now checks if the feature is enabled.

For Developers

  • Introduced new filter cocart_prevent_wc_admin_note_created to prevent WooCommerce Admin notes from being created.

Database changes

This release does not introduce any changes to the database.

%d bloggers like this: