Site icon Hip-Hop Website Design and Development

WordPress Theme Search Returns Empty When Deciding on a Class

So I’ve a little bit of bizarre problem

Utilizing WordPress, shopemax theme and WooCommerce to create my first on-line retailer for my native store in France.

The theme ‘ShopMax’ (Baby them of StoreBiz), supplies me with a pleasant built-in search characteristic which the choice to pick from a class.

The issue is, if I choose a class however do not put in a search time period, it returns an empty checklist, although the choose class can see there are gadgets for stated class.

I would like it to generate an inventory of all merchandise throughout the chosen class, just about the identical as if I used to be to easily to pick the class in query from the aspect widget.

Thanks for any assist you’ll be able to present.

Within the mother or father theme section-header.php. I discovered this regarding the search characteristic.

<?php if (class_exists('WooCommerce') && ($shopmax_hs_nav_search =='1') ) { ?>
    <div class="header-search-form">
        <type methodology="get" motion="<?php echo esc_url(home_url('/')); ?>">
            <choose class="header-search-select" identify="product_cat">
                
                <possibility worth=""><?php esc_html_e('Choose Class', 'shopmax'); ?></possibility> 
                
                <?php
                $shopmax_categories = get_categories('taxonomy=product_cat');                          
                foreach ($shopmax_categories as $shopmax_product_category) {
                    $shopmax_option = '<possibility worth="' . esc_attr($shopmax_product_category->category_nicename) . '">';
                    $shopmax_option .= esc_html($shopmax_product_category->cat_name);
                    $shopmax_option .= ' (' . absint($shopmax_product_category->category_count) . ')';
                    $shopmax_option .= '</possibility>';
                    echo $shopmax_option; // WPCS: XSS OK.
                }
                ?>