Since the cart key is provided in both the cart response and returned headers. Saving the cart key in your own cookie or local storage is recommended.
Versions not to install
4.0.0- Was missing a required class.4.0.1fixes that.4.2.0- A deprecated function was causing a fatal error. Fixed with4.2.14.3.1- Hot fix in4.3.2corrected issues that affected CoCart since4.2.0and patches were applied to previous versions to prevent roll update issues for those who had not updated automatically.
Deprecations
- Removed the legacy API that CoCart started with.
- Removed support for stores running lower than WooCommerce version 4.5
- User switching removed. Never worked 100%. Mainly added for internal debugging purposes.
- No longer use
cocart_override_cart_itemfilter. Recommend usingcocart_item_added_to_cartaction hook instead. - No longer user
cocart_cart_updatedhook. Replaced withcocart_update_cart_before_totalshook. - Removed the need to support web host “Pantheon” by filtering the cookie name.
- Removed our session abstract
CoCart_Sessionthat extendedWC_Session. Any remaining functions have moved to a refreshed session handler. - Function
CoCart_Session_Handler::destroy_cookie()no longer used. - Function
CoCart_Session_Handler::cocart_setcookie()no longer used. - Function
CoCart_Session_Handler::get_cart()no longer used. - Filter
cocart_cookieno longer used. Usewoocommerce_cookieinstead. - Filter
cocart_cookie_httponlyno longer used. - Filter
cocart_cookie_supportedno longer used. - Filter
cocart_set_cookie_optionsno longer used. - Filter
cocart_cart_use_secure_cookieno longer used. Usewc_session_use_secure_cookieinstead. - Filter
cocart_is_cart_data_validno longer used. - Returned headers
X-CoCart-API-TimestampandX-CoCart-API-Versionno longer used.