Support » Plugin: WOOF - Products Filter for WooCommerce » Conditional tag

  • Resolved DownHouse00

    (@downhouse00)


    Is there any conditional tag, to determinate page with filter result?
    My shop page have a custom template and filter just open this page without results.

    
    <?php if(!is_shop() || is_search()){  // need for filter results get here ?>
    
      <main class="col main">
         <article class="shad">
            <div class="woocommerce">
                <?php woocommerce_content(); ?>
            </div>
        </article>
      </main>
    
    <?php }else{ // but filter results get here ?>
        <?php get_template_part('shop')?>
    <?php }; ?>
    

    sorry for my english

    • This topic was modified 6 months, 2 weeks ago by  DownHouse00.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conditional tag’ is closed to new replies.