CoCart Lite v2.8.2 Release Notes

Excited to announce that CoCart Lite 2.8.2 is now publicly available! This is a minor release so everything 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.8.2?

Two things have been done to improve the loading of a cart from session via the web. Load the chosen shipping method and cart fees.

In addition to this minor release, a request was made to be able to filter the parameter name cocart-load-cart, used for loading the cart from session via the web to provide more white labelling for their client.

You can find an example for this filter under “White Labelling”.

Database changes

This release does not introduce any changes to the database.

Documentation

All examples provided for setting a cart key have been corrected. Due to an over look on my part, I mistakenly documented the cart_key parameter as a standard data parameter and not a global parameter that requires to be queried.

Not many developers who had issues with this, saw the error and corrected this in their development but not reported the error to me.

Others had tried to report the error but did not make it clear to me as to what was wrong and moved on. Now after several releases and finally getting someone to report clearly what was wrong, I was able to correct it.

I apologise for the mistake and hope you try again with the new examples provided. I have also added a warning notice in the documentation to remind you that it is not to be passed as a data parameter.

CoCart Lite v2.8.1 Release Notes

Excited to announce that Pantheon, a high performance hosting platform is now supported in CoCart Lite 2.8.1 which is now publicly available! This is a tiny release so everything is backwards compatible with the previous version.

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

What does it do?

Well because Pantheon is a platform built for speed, it’s cache system caused a problem for guest customers on the frontend making it look like the cart was empty no matter how many items were added to the cart.

Luckily, this was a quick easy fix after talking to their customer service.

All that was required was to change the cookie name using the available filter in CoCart to a new formatting that Pantheon reorganizes to prevent the session cookie from caching.

And after trying them out, I can say that I recommend using Pantheon for speedy performance to run your store no matter how large.

Database changes

This release does not introduce any changes to the database.

Documentation

This release does not introduce any changes to the documentation.

CoCart Get Cart Enhanced v2.0 Release Notes

This is the first release note post for CoCart Get Cart Enhanced. It introduces a couple of things. First checking the cart contents and applied coupons.

Validity of the items and stock is checked before returning the cart. The same for the coupons. This gives a more realistic cart in real time before the order is made and allows you to inform the customer should any item or coupon no longer be available or valid.

Second, is to give developers a preview of the new default cart response coming in CoCart v3.0 API v2.

What’s different and how do I preview?

Over time this add-on has been updated to improve the response based on the feedback by it’s users. One thing in particular that developers wanted was not to have the product prices and totals pre-formatted.

This suggestion allows more control, which means adding more information like the currency used for the store.

Default cart response with a single item added to the cart.

To preview the new cart response for CoCart v3.0 API v2, you need to use the filter cocart_preview_api_v2. You can copy the and paste the code below.

add_filter( 'cocart_preview_api_v2', function() { return true; });

Compatibility

This release also makes it compatible with v2.8 of CoCart Lite and small minor fix for those who are already using PHP 8. It’s also been tested with WooCommerce 4.8

Warning

Previewing the new cart response is still a working progress and is by no means complete. Use only for experimenting and to provide feedback.

Hope you enjoy and have a good X-mas. ?

CoCart Lite v2.8 Release Notes

Excited to announce that CoCart Lite 2.8 is now publicly available! This is a minor release so everything 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.8?

Only one small enhancement was made for the load cart from session for the web feature and that is to load the chosen shipping method.

Compatibility

As always there will be releases that add compatibility for changes made in WooCommerce. This time being mainly with WooCommerce v4.8 and WooCommerce Admin v1.7

Minimum requirement changes

These are the new minimum requirements in order to run CoCart. This ensures that new features added to CoCart work with these minimum requirements and the latest WordPress and WooCommerce releases error free.

  • WordPress now needs to be v5.3 minimum.
  • WooCommerce now needs to be v4.3 minimum.

Support for CoCart Lite will not be provided for sites running any lower than these minimum requirements.

In the future the minimum requirement for PHP will be bumped from 7.0 to 7.3

PHP 8 was released last week and so far there has been no issues reported which is great and works really fast which is what you need for a REST API.

Database changes

This release does not introduce any changes to the database.

Documentation

This release does not introduce any changes to the documentation.

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.