Home>Support>search dosn’t work

search dosn’t work

By adlugolecki, 9 years ago. Last reply by fugz13, 7 years ago.

I started working with eCommerce Product Catalog by impleCode, but i can’t reach content by search function from Vantage version: 1.4.2. It’s there somebody so know somthing about this

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 4 months ago zeitan

    Using woocomerce I made it with this in my masthead-logo-in-menu.php:

    <?php if( siteorigin_setting('navigation_menu_search') ) : ?>
    				<div id="search-icon">
    					<div id="search-icon-icon"><div class="vantage-icon-search"></div></div>
    					<form method="get" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search" <?php echo get_search_form() ; ?>
    					</form>
    				</div>
    			<?php endif; ?>

    And this in my function.php:

    function woo_wc_search_form( $form ) {
    
        $form = '<li class="search"><form role="search" method="get" id="searchform" action="' . esc_url(home_url( '/' )) . '" >
    <input type="search" results=5 autosave="'. esc_url(home_url( '/' )) .'" class="input-text" placeholder="'. esc_attr__( 'Cerca', 'woothemes' ) .'" value="' . get_search_query() . '" name="s" id="s" />
        <input type="submit" class="submit" id="searchsubmit" value="'. esc_attr__( 'Search', 'woothemes' ) .'" />
        <input type="hidden" name="post_type" value="product" />
        </form></li>';
    
        return $form; 

    This function searches only in woocommerce products.

    • 7 years, 11 months ago fugz13

      Hey Zeitan

      I was just wondering if you could give some advice on where you placed th code within your functions.php file?
      I have been trying to get the vantage search to return woocommerce for a while and came across your code which looks ideal but I just can’t get it to work.

  2. 9 years, 4 months ago adlugolecki

    how fast, thx. I’ll try it immediately

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More