Support » Plugin: Ajax Search Lite » More results… woocommere site leading the result of post

  • marahman.b2b

    (@marahmanb2b)


    Hi,

    I have installed and tested on my woocommerce site and plugin worked fantastic. however i see when i click More results… it redirects tp “Search Results for:” and showing post pages info where its out of search content result. as shown in this link http://prntscr.com/cfboxd

    How to fix it?

    Second, i have seen only 2 options in “Advanced Options” —>Title Field: Post Title, —> Description Field: Post Description.

    http://prntscr.com/cfbpb6

    I want to add Price in search result along with Tile and Description, how can i do it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter marahman.b2b

    (@marahmanb2b)

    http://prntscr.com/cfboxd (the result pulling blog post page titles)

    Thread Starter marahman.b2b

    (@marahmanb2b)

    Hi Ernest Marcinko

    Any solution to my issue to more result… landing to blog post “Search Results for:” and showing post pages info where its out of search content result.

    How to fetch woo commerce result page, when clicked on more result…

    Dirty hack, modify you search.php in child theme:

    <?php if ( have_posts() ) {
    	global $wp_query;
    	if ($wp_query->post_count == 1) {
    		$product = wc_get_product( $wp_query->post );
    		if ( $product && $product->is_visible() ) {
    			wp_safe_redirect( get_permalink( $product->id ), 302 );
    			exit;
    		}
    	} else {
    		get_template_part('woocommerce/archive', 'product');
    	}
    } else {
    		get_template_part('woocommerce/archive', 'product');
    	}
    	?>
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘More results… woocommere site leading the result of post’ is closed to new replies.