Incompatibility with Advanced Woo Search PRO
-
Good day,
We’re having issues with our installation of CoCart Lite; when an AJAX search is performed (Advanced Woo Search PRO) 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 from the “wp” hook?) 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?
Looking at Chrome dev tools I can see that headers are sent along with the AJAX request, why then is the cart cleared in the “wp” hook?Versions:
Advanced Woo Search PRO: 2.24
CoCart Lite: 2.9.2
WooCommerce: 4.8.0
WordPress: 5.6Regards,
EstianThe page I need help with: [log in to see the link]
- The topic ‘Incompatibility with Advanced Woo Search PRO’ is closed to new replies.