1. Documentation
  2. Plugins
  3. WooCommerce
  4. Extensions
  5. WooCommerce Product Search
  6. Developer Documentation

Debugging

The constants documented here can be defined in your site’s wp-config.php.

For other constants that you can use to fine-tune certain aspects of the search engine, please refer to the section on Constants.

How to enable Debugging ↑ Back to top

Add the following lines in wp-config.php to have general PHP and WordPress warnings, error messages and status information from the WooCommerce Product Search extension logged to the site’s debug.log file. The latter is usually located in the wp-content folder.

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'WPS_DEBUG', true );

To log main query times, enable the option as described in the General settings.

Debugging Scripts and Styles ↑ Back to top

If you would like the extension to use non-minified scripts and styles, also add:

define( 'WPS_DEBUG_SCRIPTS', true );
define( 'WPS_DEBUG_STYLES', true );

We would also recommend to clear any caches after script or style debugging has been enabled or disabled.

Debugging DOM Parsing ↑ Back to top

Use the WPS_DEBUG_DOM constant to expose additional information during DOM parsing.

define( 'WPS_DEBUG_DOM', true );

This applies when accurate optimization is used to handle the requests of the search engine’s filters (when enabled in the General settings).

WooCommerce - the most customizable eCommerce platform for building your online business.

  • 30 day money back guarantee
  • Support teams across the world
  • Safe & Secure online payment