Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
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
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.
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.
how fast, thx. I’ll try it immediately