Home › Forums › WoodMart support forum › Standard search function does not work › Reply To: Standard search function does not work
February 6, 2024 at 4:57 pm
#537303
Luke Nielsen
Keymaster
Hello,
Try to use the code below, it will help you enable the parent products in the search results.
add_action('woodmart_option', function($opt, $slug) {
if ($slug === 'hide_variation_parent' && ! empty($_GET['s'])) {
$opt = false;
}
return $opt;
}, 10, 2);
Paste it to the functions.php file in the child theme.
Kind Regards