{"id":170,"date":"2014-10-27T05:11:55","date_gmt":"2014-10-27T05:11:55","guid":{"rendered":"http:\/\/createashoppeplus.com\/manual\/?p=170"},"modified":"2017-07-18T22:56:23","modified_gmt":"2017-07-18T22:56:23","slug":"filters","status":"publish","type":"post","link":"https:\/\/createashoppeplus.com\/manual\/filters\/","title":{"rendered":"Filters"},"content":{"rendered":"<h1>Understanding Filters<\/h1>\n<p>In a store front-end, you&#8217;ll probably find an &#8220;Advanced search&#8221; feature so that users can filter products according to their preferences. But sometimes, you want to group different kinds of products together, although they belong to different categories. Or you would like to attach a tag to certain products so that they can be found easier in the front\u00ad-end.<\/p>\n<p>To understand it more clearly, let&#8217;s take a real-world example. Let&#8217;s assume that you have a &#8220;T-Shirts&#8221; sub\u00ad-category available under the &#8220;Tops&#8221; main category. And you would like to categorize T-Shirts further by &#8220;Short Sleeve&#8221;, &#8220;3\/4 Sleeve&#8221;, and &#8220;Long Sleeve&#8221;.<\/p>\n<p>The first option that pops up in your mind is to create another level of categories under &#8220;T-Shirts&#8221;. But instead of creating another level of categories, which could make things a bit more complex, you can use filters.<\/p>\n<p>The benefit of using filters in the above scenario is that when you enable the &#8220;Filter&#8221; module, it provides a nice block\u00a0in the front\u00ad-end\u00a0which allows shoppers to refine the relevant products of their choice.<\/p>\n<h1>Creating Filter Groups and Filters<\/h1>\n<p>Click Store then Filters. Click on the Insert button to open the screen which allows you to create a new filter\u00ad group and filters. Filter Group Name is the title used to distinguish the filters when more than one set of filters is available for display. Just fill in the details as shown below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-836\" src=\"http:\/\/createashoppeplus.com\/manual\/wp-content\/uploads\/2014\/10\/Screen-Shot-2017-07-18-at-6.36.16-PM-1024x505.png\" alt=\"\" width=\"835\" height=\"412\" srcset=\"https:\/\/createashoppeplus.com\/manual\/wp-content\/uploads\/2014\/10\/Screen-Shot-2017-07-18-at-6.36.16-PM-1024x505.png 1024w, https:\/\/createashoppeplus.com\/manual\/wp-content\/uploads\/2014\/10\/Screen-Shot-2017-07-18-at-6.36.16-PM-300x148.png 300w, https:\/\/createashoppeplus.com\/manual\/wp-content\/uploads\/2014\/10\/Screen-Shot-2017-07-18-at-6.36.16-PM-768x378.png 768w, https:\/\/createashoppeplus.com\/manual\/wp-content\/uploads\/2014\/10\/Screen-Shot-2017-07-18-at-6.36.16-PM.png 1232w\" sizes=\"auto, (max-width: 835px) 100vw, 835px\" \/><\/p>\n<p>As you can see, we&#8217;ve created a filter group &#8220;T-Shirts&#8221; and the filter values are &#8220;Shirt Sleeve&#8221;, &#8220;Long Sleeve&#8221;, and &#8220;3\/4 Sleeve&#8221;.<br \/>\nClick <strong>Save<\/strong> button to save the changes.<\/p>\n<h1>Assign the Filters to categories and products<\/h1>\n<p>Now that we&#8217;ve set up the filter\u00ad group and associated filters we need to assign the filters to the relevant categories and products.<\/p>\n<p><strong>Assign Filters to a Category<\/strong><br \/>\nLet&#8217;s first assign filters to a related category.<\/p>\n<p>Edit the the category. Go to <strong>Store<\/strong> &gt; <strong>Categories<\/strong> and edit the sub-category under the main category you want to add the filters to. Click on the Data tab.\u00a0<strong>Filters<\/strong>\u00a0is an auto\u00adcomplete field. So you can select the values by just typing a few letters.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-837\" src=\"http:\/\/createashoppeplus.com\/manual\/wp-content\/uploads\/2014\/10\/Screen-Shot-2017-07-18-at-6.43.14-PM-1024x405.png\" alt=\"\" width=\"835\" height=\"330\" srcset=\"https:\/\/createashoppeplus.com\/manual\/wp-content\/uploads\/2014\/10\/Screen-Shot-2017-07-18-at-6.43.14-PM-1024x405.png 1024w, https:\/\/createashoppeplus.com\/manual\/wp-content\/uploads\/2014\/10\/Screen-Shot-2017-07-18-at-6.43.14-PM-300x119.png 300w, https:\/\/createashoppeplus.com\/manual\/wp-content\/uploads\/2014\/10\/Screen-Shot-2017-07-18-at-6.43.14-PM-768x304.png 768w, https:\/\/createashoppeplus.com\/manual\/wp-content\/uploads\/2014\/10\/Screen-Shot-2017-07-18-at-6.43.14-PM.png 1229w\" sizes=\"auto, (max-width: 835px) 100vw, 835px\" \/><\/p>\n<p>Click on the <strong>Save<\/strong>\u00a0button to apply the changes.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Assign Filters to Products<\/strong><br \/>\nNow we need to assign filters to the each product that we would like to be filtered by our &#8220;T-Shirts&#8221; criteria (or what applies to you). Edit the products under the category as we&#8217;ve set up the filters for that category in the previous section. Go to Store and click on Products and then click the edit button for the first item you&#8217;d like to add the filters to.<\/p>\n<p>Under the <strong>Links<\/strong>\u00a0tab you&#8217;ll see the <strong>Filter<\/strong>\u00a0field.\u00a0<strong>Filters<\/strong>\u00a0is an auto\u00adcomplete field. So you can select the values by just typing a few letters.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-839\" src=\"http:\/\/createashoppeplus.com\/manual\/wp-content\/uploads\/2014\/10\/Screen-Shot-2017-07-18-at-6.48.15-PM-1024x299.png\" alt=\"\" width=\"835\" height=\"244\" srcset=\"https:\/\/createashoppeplus.com\/manual\/wp-content\/uploads\/2014\/10\/Screen-Shot-2017-07-18-at-6.48.15-PM-1024x299.png 1024w, https:\/\/createashoppeplus.com\/manual\/wp-content\/uploads\/2014\/10\/Screen-Shot-2017-07-18-at-6.48.15-PM-300x88.png 300w, https:\/\/createashoppeplus.com\/manual\/wp-content\/uploads\/2014\/10\/Screen-Shot-2017-07-18-at-6.48.15-PM-768x224.png 768w, https:\/\/createashoppeplus.com\/manual\/wp-content\/uploads\/2014\/10\/Screen-Shot-2017-07-18-at-6.48.15-PM.png 1069w\" sizes=\"auto, (max-width: 835px) 100vw, 835px\" \/><\/p>\n<p>Click on the <strong>Save<\/strong>\u00a0button to apply the changes.<\/p>\n<h1>Enable the filter module<\/h1>\n<p>We&#8217;re almost done with the setup! The only remaining thing is to enable the filter module. If the right menu is not already open click the gear icon in the right corner. Click Extensions then View All. Locate the Filter module by searching Filter or by going through each page of modules. Click the edit button, set to <strong>enabled<\/strong> and click Save.<\/p>\n<p>&nbsp;<\/p>\n<p>To show this module in the front end of your store so that customers can use it you&#8217;ll need to add it in layouts also. Go to Appearance then Layouts choose the page(s) you want to display it on and drag and drop the module to the area of the page you&#8217;d like to display repeat for each page and save. For more info on working with layouts see the <a href=\"http:\/\/createashoppeplus.com\/manual\/layouts\/\"><strong>Layouts section<\/strong><\/a> of the manual.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Understanding Filters In a store front-end, you&#8217;ll probably find an &#8220;Advanced search&#8221; feature so that users can filter products according &hellip; <a href=\"https:\/\/createashoppeplus.com\/manual\/filters\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[3],"tags":[],"class_list":["post-170","post","type-post","status-publish","format-standard","hentry","category-store"],"_links":{"self":[{"href":"https:\/\/createashoppeplus.com\/manual\/wp-json\/wp\/v2\/posts\/170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/createashoppeplus.com\/manual\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/createashoppeplus.com\/manual\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/createashoppeplus.com\/manual\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/createashoppeplus.com\/manual\/wp-json\/wp\/v2\/comments?post=170"}],"version-history":[{"count":5,"href":"https:\/\/createashoppeplus.com\/manual\/wp-json\/wp\/v2\/posts\/170\/revisions"}],"predecessor-version":[{"id":841,"href":"https:\/\/createashoppeplus.com\/manual\/wp-json\/wp\/v2\/posts\/170\/revisions\/841"}],"wp:attachment":[{"href":"https:\/\/createashoppeplus.com\/manual\/wp-json\/wp\/v2\/media?parent=170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/createashoppeplus.com\/manual\/wp-json\/wp\/v2\/categories?post=170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/createashoppeplus.com\/manual\/wp-json\/wp\/v2\/tags?post=170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}