diff --git a/src/app/code/community/FACTFinder/Asn/Block/Catalog/Layer/Factfinder.php b/src/app/code/community/FACTFinder/Asn/Block/Catalog/Layer/Factfinder.php
index 2b8e8577..2193fb71 100644
--- a/src/app/code/community/FACTFinder/Asn/Block/Catalog/Layer/Factfinder.php
+++ b/src/app/code/community/FACTFinder/Asn/Block/Catalog/Layer/Factfinder.php
@@ -56,6 +56,7 @@ public function init()
$this->setUnit($attribute->getUnit());
$this->setLinkCount($attribute->getLinkCount());
} else {
+ $this->setTemplate('factfinder/asn/layer/filter/filter.phtml');
$this->setUnit($attribute->getUnit());
$this->setLinkCount($attribute->getLinkCount());
$this->setIsMultiselect($attribute->getIsMultiselect());
@@ -65,4 +66,4 @@ public function init()
}
-}
\ No newline at end of file
+}
diff --git a/src/app/design/frontend/base/default/layout/factfinder/suggest.xml b/src/app/design/frontend/base/default/layout/factfinder/suggest.xml
index 38b74cb4..77e2a057 100644
--- a/src/app/design/frontend/base/default/layout/factfinder/suggest.xml
+++ b/src/app/design/frontend/base/default/layout/factfinder/suggest.xml
@@ -18,6 +18,7 @@
+
css/factfinder_suggest.css
@@ -25,4 +26,4 @@
-
\ No newline at end of file
+
diff --git a/src/app/design/frontend/base/default/template/factfinder/asn/layer/filter/filters.phtml b/src/app/design/frontend/base/default/template/factfinder/asn/layer/filter/filters.phtml
new file mode 100644
index 00000000..f5ff5374
--- /dev/null
+++ b/src/app/design/frontend/base/default/template/factfinder/asn/layer/filter/filters.phtml
@@ -0,0 +1,53 @@
+
+ * @copyright Copyright (c) 2018, Flagbit GmbH & Co. KG
+ * @license https://opensource.org/licenses/MIT The MIT License (MIT)
+ * @link http://www.flagbit.de
+ */
+/**
+ * Filters HTML Template
+ */
+?>
+
+
+
+
+ getItems(); ?>
+
+ getLinkCount(); ?>
+
+
+ -
+ getCount() > 0): ?>
+
+ getLabel(); ?>
+
+
+ getLabel() ?>
+
+ (getCount() ?>)
+
+
+
+ getLinkCount() < count($items)): ?>
+ -
+
+ __('View more'); ?>
+
+
+ -
+
+ __('View less'); ?>
+
+
+
+
diff --git a/src/js/factfinder/filters.js b/src/js/factfinder/filters.js
new file mode 100644
index 00000000..94909510
--- /dev/null
+++ b/src/js/factfinder/filters.js
@@ -0,0 +1,22 @@
+/**
+ * FACTFinder_Filters
+ *
+ * @category Mage
+ * @package FACTFinder_Filters
+ * @author Flagbit Magento Team
+ * @copyright Copyright (c) 2018 Flagbit GmbH & Co. KG
+ * @license https://opensource.org/licenses/MIT The MIT License (MIT)
+ * @link http://www.flagbit.de
+ *
+ */
+jQuery(document).ready(function () {
+ jQuery('ol.filters-items li.toggle-refinements a').click(function (event) {
+ event.stopPropagation();
+ event.preventDefault();
+ var $this = $(this);
+ jQuery($this).parent().toggle();
+ jQuery($this).parent().siblings('.toggle-refinements').toggle();
+ jQuery($this).parent().siblings('.toggle-item-hidden').slideToggle('fast');
+ return false;
+ });
+});
diff --git a/src/skin/frontend/base/default/css/factfinder_suggest.css b/src/skin/frontend/base/default/css/factfinder_suggest.css
index 4f376625..8a10fbb4 100644
--- a/src/skin/frontend/base/default/css/factfinder_suggest.css
+++ b/src/skin/frontend/base/default/css/factfinder_suggest.css
@@ -10,4 +10,8 @@
.form-search .search-autocomplete.advanced-suggest span.thumbnail {
float:left;
margin-right: .3em;
-}
\ No newline at end of file
+}
+
+.toggle-item-hidden {
+ display: none;
+}