We have had some reports of Divi Search not working well with WooCommerce and BodyCommerce – it displays a white page. Upon investigation, we discovered that it is actually an issue with the Divi Theme and not something related to our plugins.

We did not want to leave you guys hanging, so we dug a little deeper and found a solution.

Problem

The Divi Theme Builder is not working when searching for products, for example: /?s=shirt&post_type=product

This works fine on older versions of WooCommerce, but NOT in the latest update which is WooCommerce 5.5.1

Solution

The solution is to download the file below, unzip it and upload to the directory: \wp-content\plugins\woocommerce\includes\class-wc-query.php

Here is the code we changed for your reference