• Hi guys,

    everything is fine with the plugin, it works great, but there’s one thing – when there are no results, the page displayed isn’t user friendly. It actually contains nothing, only menu and footer.

    Is it possible to load a specific standard static wordpress page when there are no results?

    Thanks

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

    (@mihail-barinov)

    Hi,

    Well its the problem of the theme that you are using.

    If your theme supports woocommerce that its probably has special template to display search results.
    So you need to find this template. Its must contain something like

    <?php while ( have_posts() ) : the_post(); ?>
      <?php // custom content ?>
    <?php endwhile; // end of the loop. ?>

    You must modify it to something like

    <?php if ( have_posts() ) : ?>
        <?php while ( have_posts() ) : the_post(); ?>
            <?php // custom content ?>
        <?php endwhile; // end of the loop. ?>
    <?php else : ?>
        <?php echo 'Nothing found!'; ?>
    <?php endif; ?>
    • This reply was modified 7 years, 2 months ago by ILLID.
    Thread Starter TheGreyRabbit

    (@ayo-1)

    Hey, thanks for the reply!
    I will forward your message to the theme developers. Maybe they can help further.
    Cheers!

    Thread Starter TheGreyRabbit

    (@ayo-1)

    Hi again,

    I received the following feedback from the theme developers:

    “We have installed the plugin, but the issue does not happen on our end. It works perfectly fine with the search results and it provides a nothing found message properly.
    There is something affecting the plugin on your site”

    There’s btw a further issue – when results are shown, the space for the sidebar is reserved, but nothing from the sidebar is being loaded. The sidebar in question works properly on the other associated pages.

    Do you eventually have a list with incompatible plugins that break any function of AWS?

    Thanks

    Thread Starter TheGreyRabbit

    (@ayo-1)

    Hi,

    I found out where the problem with the broken page comes from (when there are no results).

    It’s caused by the following code in the functions.php, which is added in order to remove the loop from the shop’s home page domain.com/shop/ (because I have to remove it!):
    https://businessbloomer.com/woocommerce-remove-loop-shop-page/

    Do you eventually have an idea how to fix the issue and keep the product loop removed from the shop’s home page? Also, how can I redirect the user properly to a custom built “nothing found” page which is more user friendly and effective?

    Still can’t fix the issue with the missing sidebar that I mentioned above.

    Thanks!

    Thread Starter TheGreyRabbit

    (@ayo-1)

    Hey Mihail,

    can you help with my issues?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Issue when no results’ is closed to new replies.