When you are using the Woocommerce Product Recommendations, FacetWP’s query detection will cause problems with the query for the recommended products on your cart page.

Add the following code to your (child) theme’s functions.php to fix this issue:

How to use custom PHP code?

PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More info

add_filter( 'facetwp_is_main_query', function( $is_main_query, $query ) { if ( function_exists( 'is_cart' ) && is_cart() ) { $is_main_query = false; } return $is_main_query; }, 8, 2 );

See also