Cornerstone conflict with Woocommerce search

Hi!

Just wanted to let you know that the latest version of Cornerstone is breaking the woocommerce functionality to search for orders. Everytime you search for something, the search results are being displayed at a 50x scale.

Here is a screenshot of what I mean:

https://postimg.cc/LJBnxKFQ

I am aware that the current version of Cornerstone is not supporting the newest version of Woocommerce but just wanted to let you know about this bug and help someone who has the same issue and is looking for a solution.

Update: so I tried to fix this bug by downgrading to Woocommerce 3.6.2 which should be supported by Cornerstone 3.5.5 but the same error keeps appearing. So it looks like Cornerstone 3.5.5 conflicts with the search order function of Woocommerce 3.6.2 as well.

Hi Andreas,

Thanks for reaching out.

I have the latest version but I’m not getting this issue, or perhaps mine has very few orders only. Would you mind providing your site’s URL and admin login credentials in the secure note? I’ll check it first then I’ll try reproducing it to see if it’s just isolated case or really a bug.

Thanks!

I created a copy of the website on a new testserver and attached the login details for you in a secure note. Feel free to make any changes to this wordpress installation, since it is just a test for troubleshooting.

Currently it is running the X Theme 6.4.6 + Cornerstone 3.4.6 + Woocommerce 3.6.4. With this setup I was able to remove the bug. But if you update X Theme and Cornerstone to the latest version, the bug will appear again. You can try that out if you want.

It would be great if you found a solution to fix this bug without downgrading X Theme and Cornerstone.

Hi Andreas,

Been trying to edit them but it seems not allowed, please provide your FTP login credentials as well. For the meantime, please add this code to child theme’s functions.php

add_filter('cornerstone_enable_search', 'disable_search_for_admin');
function disable_search_for_admin ( $enable ) {
	
	return is_admin() ? false : $enable;
	
}

I already installed the child theme but just can’t edit it.

Thanks!

Sure. See the secure note

Hi Andreas,

I added it and it works, the Order search is now working properly within the staging. So please do the same on your live site and add the above code to the child theme’s functions.php

Thanks!

Thank you. Is it possible that I give you access to the live site and that you do it for me?

Hello Andreas,

Yes, please. Provide the login credentials so that we can apply the code in your live site too.

Regards.

Thank you. I will attach it to this post

Hi Andreas,

I have installed X child theme and add the code on child theme functions.php. Please check. Working on live now.

Awesome, thank you. Really appreciate the quick support.

You’re always welcome Andreas!

Cheers.