CoCart Lite v2.7.3 Release Notes

Excited to announce that CoCart Lite 2.7.3 is now publicly available! This is a minor release with some fine tuning. Everything else is backwards compatible with the previous version.

As always, it is recommend to create a backup of your site before updating.

What’s new in CoCart v2.7.3?

I like to work on these minor releases more towards the developers now everything is getting polished so I hope you like it.

Wait what happened to v2.7.2? v2.7.3 is a hotfix release to v2.7.2. The release notes for v2.7.2 is below.

No More Empty Carts

One of the issues that was a challenge to understand was why additional empty carts were being created for guest customers that relied on the cookie method via the REST API. Now identifying the empty carts has been improved and prevents any empty carts from being created.

Only one cart for a guest customer is now created. 🥳 This saves a lot of space in the database. That also means one of the filters that set an expiration for empty carts has now been deprecated cocart_empty_cart_expiration as it is not needed any more.

Cart Expiration Length

The default expiration length for a cart to expire has changed. Previously 30 days, now only 7 days. The expiration length can still be filtered if you wish.

WooCommerce System Status

Details on the carts was a little thin so I have added a new row showing how many carts are going to expire soon within the next 6 hours and out of how many in session.

Database changes

This release does not introduce any changes to the database.

Documentation

This release introduces some new filters and are added under “Session Management”.

  • cocart_is_cart_data_valid let’s you validate the cart data before a cart is saved in session.
  • cocart_set_cookie_options allows you to filter the cookie flags, which enables setting of samesite. 🏁 – Only for those who use PHP 7.3 or above.
  • cocart_cookie_httponly on the httponly param on cocart_setcookie() with all the function parameters passed through.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.