{"id":131,"date":"2020-02-28T15:59:46","date_gmt":"2020-02-28T15:59:46","guid":{"rendered":"http:\/\/wiki2.plumserver.com\/knowledge-base\/magento-2-product-filter-v3-x-developers-guide-and-api-reference"},"modified":"2021-09-24T04:44:42","modified_gmt":"2021-09-24T08:44:42","slug":"magento-layered-navigation-v3-developer-guide","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v3\/devguide","title":{"rendered":"Magento Layered Navigation Extension v3.x Developer Guide and API Reference"},"content":{"rendered":"\n<h2 id=\"displaying-layered-navigation-manually\">Displaying Layered Navigation Manually<\/h2>\n\n\n\n<p>If you use a custom Magento 2 theme (e.g. not Luma), and, for some reason, the Product Filter Toolbar didn&#8217;t display on the frontend after installation of the <a href=\"\/magento-layered-navigation\">Magento 2 Layered Navigation &amp; Product Filter extension<\/a>, please follow the instructions below to make it displayed manually.<\/p>\n\n\n\n<p><strong>Find the following file of your theme:<\/strong><\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-markup\">\/app\/design\/frontend\/THEME_VENDOR\/theme_name\/Magento_Catalog\/templates\/product\/list.phtml<\/code><\/pre><\/div>\n\n\n\n<p>Copy the following code:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\">&lt;?php echo $block->getAdditionalHtml() ?><\/code><\/pre><\/div>\n\n\n\n<p>And add it after the code:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\">&lt;?php echo $block->getToolbarHtml() ?><\/code><\/pre><\/div>\n\n\n<div class=\"example-block\">\n<p class=\"example-block-title\">Code Result<\/p>\n<div class=\"wp-block-prismatic-blocks\">\n<div><\/div>\n<pre data-line=\"10\"><code class=\"language-php\">&lt;?php\n        $_productCollection = $block-&gt;getLoadedProductCollection();\n        $_helper = $this-&gt;helper('MagentoCatalogHelperOutput');\n    ?&gt;\n    &lt;?php if (!$_productCollection-&gt;count()): ?&gt;\n        &lt;div class=\"message info empty\"&gt;&lt;div&gt;&lt;?php \/* @escapeNotVerified *\/\n            echo __('We can't find products matching the selection.') ?&gt;&lt;\/div&gt;&lt;\/div&gt;\n    &lt;?php else: ?&gt;\n        &lt;?php echo $block-&gt;getToolbarHtml() ?&gt;\n        &lt;?php echo $block-&gt;getAdditionalHtml() ?&gt;\n        &lt;?php\n            if ($block-&gt;getMode() == 'grid') {\n                $viewMode = 'grid';\n                $image = 'category_page_grid';\n                $showDescription = false;\n                $templateType = MagentoCatalogBlockProductReviewRendererInterface::SHORT_VIEW;\n         } else {\n                $viewMode = 'list';\n                $image = 'category_page_list';\n                $showDescription = true;\n                $templateType = MagentoCatalogBlockProductReviewRendererInterface::FULL_VIEW;\n         }<\/code><\/pre>\n<\/div>\n<\/div>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Displaying Layered Navigation Manually If you use a custom Magento 2 theme (e.g. not Luma), and, for some reason, the Product Filter Toolbar didn&#8217;t display on the frontend after installation of the Magento 2 Layered Navigation &amp; Product Filter extension, please follow the instructions below to make it displayed manually. Find the following file of &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v3\/devguide\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Magento Layered Navigation Extension v3.x Developer Guide and API Reference&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[164],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.2 (Yoast SEO v17.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Magento Layered Navigation Extension v3.x Developer Guide and API Reference - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"Displaying Layered Navigation Manually If you use a custom Magento 2 theme (e.g. not Luma), and, for some reason, the Product Filter Toolbar didn&#039;t\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v3\/devguide\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Magento Layered Navigation Extension v3.x Developer Guide and API Reference\" \/>\n<meta property=\"og:description\" content=\"Displaying Layered Navigation Manually If you use a custom Magento 2 theme (e.g. not Luma), and, for some reason, the Product Filter Toolbar didn&#039;t\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v3\/devguide\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-28T15:59:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-24T08:44:42+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Plumrocket\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Magento Layered Navigation Extension v3.x Developer Guide and API Reference - Plumrocket Documentation","description":"Displaying Layered Navigation Manually If you use a custom Magento 2 theme (e.g. not Luma), and, for some reason, the Product Filter Toolbar didn't","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v3\/devguide","og_locale":"en_US","og_type":"article","og_title":"Magento Layered Navigation Extension v3.x Developer Guide and API Reference","og_description":"Displaying Layered Navigation Manually If you use a custom Magento 2 theme (e.g. not Luma), and, for some reason, the Product Filter Toolbar didn't","og_url":"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v3\/devguide","og_site_name":"Plumrocket Documentation","article_published_time":"2020-02-28T15:59:46+00:00","article_modified_time":"2021-09-24T08:44:42+00:00","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/plumrocket.com\/docs\/#website","url":"https:\/\/plumrocket.com\/docs\/","name":"Plumrocket Documentation","description":"Extensions docs, troubleshootings etc.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/plumrocket.com\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v3\/devguide#webpage","url":"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v3\/devguide","name":"Magento Layered Navigation Extension v3.x Developer Guide and API Reference - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"datePublished":"2020-02-28T15:59:46+00:00","dateModified":"2021-09-24T08:44:42+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20"},"description":"Displaying Layered Navigation Manually If you use a custom Magento 2 theme (e.g. not Luma), and, for some reason, the Product Filter Toolbar didn't","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v3\/devguide#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v3\/devguide"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v3\/devguide#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Magento 2 Extensions","item":"https:\/\/plumrocket.com\/magento-extensions"},{"@type":"ListItem","position":2,"name":"Magento 2 Layered Navigation","item":"https:\/\/plumrocket.com\/magento-layered-navigation"},{"@type":"ListItem","position":3,"name":"Documentation","item":"https:\/\/plumrocket.com\/docs\/magento-layered-navigation"},{"@type":"ListItem","position":4,"name":"v3","item":"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v3"},{"@type":"ListItem","position":5,"name":"Developer Guide"}]},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20","name":"Plumrocket","image":{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/72392a92ae750c66560be284502b6676?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/72392a92ae750c66560be284502b6676?s=96&d=mm&r=g","caption":"Plumrocket"},"sameAs":["https:\/\/plumrocket.com\/docs"]}]}},"_links":{"self":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/131"}],"collection":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/comments?post=131"}],"version-history":[{"count":2,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/131\/revisions"}],"predecessor-version":[{"id":24373,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/131\/revisions\/24373"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}