Home Forums WoodMart support forum Standard search function does not work Reply To: Standard search function does not work

#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