Incompatibility with CoCart Lite
-
Good day,
We’re having issues with our installation of advanced-woo-search-pro; when an AJAX search is performed the response results in guest user carts being cleared.
We’ve figured out that this is because the WooCommerce conditional (/includes/class-wc-cart-session.php -> maybe_set_cart_cookies()) succeeds (no headers?) and determines that the cart is empty, which results in the following:
$this->set_cart_cookies( false );
This then results in CoCart Lite destroying the cart (/includes/class-cocart-session-handler.php -> set_customer_cart_cookie()).
What can we do to resolve this incompatibility/issue?
I imagine that we need to change the search request in a way that does result in clearing the cart if one exists (for a guest)?Versions:
Advanced Woo Search PRO: 2.24
CoCart Lite: 2.9.2
WooCommerce: 4.8.0
WordPress: 5.6Regards,
Estian
- The topic ‘Incompatibility with CoCart Lite’ is closed to new replies.