HUSKY - Product Filter for WooCommerce

Essential Grid ile HUSKY WooCommerce Filtresini Kullanma

Bunların birlikte çalışmasını sağlamak için:


VEYA

  • mevcut wp tema klasörünüzde (veya alt tema klasöründe) yeni bir dosya oluşturun ve adını örneğin woo_essential_grid.php olarak belirleyin
  • woo_essential_grid.php dosyasına aşağıdaki kodu ekleyin:
    <?php
    
    function woof_essgrid_get_posts($query, $grid_id)
    {
        if (isset($_REQUEST['woof_wp_query_args']))
        {
            $query = $_REQUEST['woof_wp_query_args'];
        }
        
        return $query;
    }
    
    add_filter('essgrid_query_caching', '__return_false', 10, 2);
    add_filter('essgrid_get_posts', 'woof_essgrid_get_posts', 10, 2);
    echo do_shortcode('[ess_grid alias="woo2"]');
    

     

  • Filtreleme yapacağınız yeni bir sayfa oluşturun ve aşağıdaki shortcode'u yerleştirin: [woof_products custom_tpl=’themes/twentytwelve/woo_essential_grid.php per_page=12 is_ajax=0]
  • columns niteliği bu durumda çalışmaz – düzen yönetimi, essential grid eklentisinin slug woo2 olan shortcode seçenek sayfasındadır …
  • Örneği burada inceleyin
  • Kaydedin ve kullanın ….