Estian Hough
Forum Replies Created
-
Sebastien Dumont @sebd86,
Thank you for your response.
I apologize for the very delayed response from my side.The issue has been fixed for us.
This ticket can certainly be closed!Thank you,
EstianHi support @supportadtribes,
Thank you for your prompt response.
Wow – I’ve hard refreshed the .xml (ctrl + shift + R) and now I’m no longer seeing the private post in the feed.
Hopefully this has been cleared up, thankfully it seems like it has!
Thank you,
EstianSébastien Dumont (@sebd86),
The Advanced Woo Search PRO plugin developer has responded and advised how to fix the issue. He also noted that a future update will include the fix.
Thank you for all of your assistance.
Regards,
EstianForum: Plugins
In reply to: [Advanced Woo Search] Incompatibility with CoCart LiteGood day ILLID (@mihail-barinov),
That is great news. Thank you so much for looking into this.
Your assistance is appreciated.Regards,
EstianSébastien Dumont (@sebd86),
Thank you for your response.
I understand what you are saying – it is the PRO version causing the issue.
We’ve been busy investigating the code to try and find out why.
Unfortunately the plugin developer does not seem interested in responding.Regards,
EstianForum: Plugins
In reply to: [Advanced Woo Search] Incompatibility with CoCart LiteHi,
Please, do you have some feedback on the above?
Regards,
EstianHi Sébastien Dumont (@sebd86),
My colleague and I have done additional testing on our side and have confirmed that with the CoCart Lite plugin enabled the Advanced Woo Search PRO version does “clear the cart“.
The issue here however is not that the Advanced Woo Search Pro is performing the clear but rather when the CoCart Lite plugin is enabled the plugin reports incorrectly that there are no items in the cart.
If I perform a search using Advanced Woo Search PRO with the CoCart Lite plugin disabled the plugin correctly indicates that there are items in the cart.
If however I enable the CoCart Lite plugin and perform the same search the response from that indicates that the cart was empty, there must be something in the CoCart Lite plugin that is altering this.Please could you advise?
Thank you for your continued assistance.
Regards,
EstianHi Sébastien @sebd86,
Thank you for your response & feedback.
I will look into the free version of the “Advanced Woo Search” plugin and test.Unfortunately the plugin’s developer has not yet responded and we are a little stuck in the mud.
By looking at the AJAX search request headers I don’t understand why it would destroy the cart – it does indeed send cart data to the server.I appreciate all of your assistance.
Regards,
EstianForum: Plugins
In reply to: [Advanced Woo Search] Incompatibility with CoCart LiteGood day,
The CoCart Lite plugin developer has responded and shared that he was able to replicate the issue with only the PRO version of the advanced-woo-search plugin.
The free version does not have the issue.If you could please assist with figuring out why this is I would be very greatful.
Regars,
EstianHi Sébastien, @sebd86
For some additional information see below.
I’ve noted also that the AJAX search sends the correct WooCommerce cart data in the headers as it does when adding an item to the cart. I just don’t see what is different between an “add to cart” AJAX request and an AJAX “search” request in terms of the request data?
What is the purpose of the code in?
/includes/class-cocart-session-handler.php -> set_customer_cart_cookie())
When$set = false
the following is run:// If cookies exists, destroy it. if ( isset( $_COOKIE[ $this->_cookie ] ) ) { $this->cocart_setcookie( $this->_cookie, '', time() - YEAR_IN_SECONDS, $this->use_secure_cookie(), $this->use_httponly() ); unset( $_COOKIE[ $this->_cookie ] ); }
This function is a twin of the WooCommerce
class-wc-session-handler.php -> set_customer_session_cookie(...)
function, yet the WooCommerce function does not delete the cart on$set === false
.Hi Sébastien,
Certainly.
- Open https://isabellagarcia.co.za
- Add any item (from any page) to your cart (as a guest).
- Input a search keyword using the header “search icon”, await an AJAX response.
- Refresh the page or open a different page.
- Notice that the cart has been cleared.
If you look at the headers (as is provided with Chrome dev tools) you’ll be able to notice that it sends cookie data in the response that clears the cart.
Please let me know if you need more information.
Regards,
Estian