• Hi guys,

    When I click the ‘View all results’ link, it take me to a page that doesn’t show any products.

    It takes me to …/?s=animated&post_type=product&type_aws=true
    Whereas it works with ‘post_type=products’ …/?s=animated&post_type=products&type_aws=true

    Is this something I’ve done?

    Cheers
    Gary

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hello,

    It is strange. By default WordPress behavior if in search query add ‘post_type=product’ than it will search for WooCommerce products.

    Can you give me the link where I can see this?

    Thanks.

    Thread Starter smellygit

    (@smellygit)

    Plugin Author ILLID

    (@mihail-barinov)

    I believe that your theme has some problem with search results page layout.

    Because link
    https://www.madabouthorror.co.uk/?s=animated&post_type=products&type_aws=true

    shows standard search results page, not WooCommerce results.

    So you can check that your current WordPress theme has file woocommerce/archive-product.php.

    Or you can change this from plugin side.

    Just open includes/class-aws-markup.php file and replace

    $markup .= '<input type="hidden" name="post_type" value="product">';

    with

    $markup .= '<input type="hidden" name="post_type" value="products">';

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search results page url’ is closed to new replies.