SHOPP_SEARCH_LOGIC

Configurable search logic.

Description

Configurable search logic.

‘AND’ to treat keywords inclusively, ‘OR’ to treat keyword searches exclusively. Default: ‘OR’

Value

‘OR’

Configurable

Yes

Example

In wp-config.php, configure using:

// Set OR search logic, All results for 'apple' OR 'computer'
define('SHOPP_SEARCH_LOGIC','OR');

In wp-config.php, configure using:

// Set AND search logic, Only results for 'apple' AND 'computer'
define('SHOPP_SEARCH_LOGIC','AND');

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar