{"id":667,"date":"2021-02-28T12:31:46","date_gmt":"2021-02-28T12:31:46","guid":{"rendered":"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/?p=667"},"modified":"2023-01-03T08:25:50","modified_gmt":"2023-01-03T08:25:50","slug":"how-to-add-filter-form-to-the-woocommerce-product-table","status":"publish","type":"post","link":"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/how-to-add-filter-form-to-the-woocommerce-product-table\/","title":{"rendered":"How to add filter form to the WooCommerce product table"},"content":{"rendered":"\n<p>Adding filter form to the product table is possible by inserting search form in configure its settings in the \u201c<strong>Search box &amp; Pagination<\/strong>\u201d tab of <a href=\"https:\/\/ithemelandco.com\/plugins\/woocommerce-product-table\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"text-decoration: underline;\">WooCommerce product table<\/span><\/a> plugin.<\/p>\n\n\n\n<p>filtering has a big influence on impressing customers to purchase goods from your online store. It is essential to display a customer-friendly search form in your website and encourage your potential customers. This help filter the products they need and add them to the cart.<\/p>\n\n\n\n<p>Follow our below guide to show you how Woocommerce Product Table Plugin can help you to achieve this goal.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-inserting-a-search-box-to-add-filters-form-in-product-table\"><strong>Inserting a search box<\/strong> to add filters form in product table<\/h2>\n\n\n\n<p>Inserting a search box and add filter form to the product table is simply possible just by one click in \u201c<strong>Search Box and Pagination<\/strong>\u201d Tab.<\/p>\n\n\n\n<p>As you can see in the below picture, by clicking on the checkbox next to Enable under \u201c<strong>Search Enable \/ Disable<\/strong>\u201d field, you can insert a search box to your product table:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/08-enable-search-form.jpg\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/08-enable-search-form.jpg\" alt=\"Active search form in WooCommerce product table plugin\" class=\"wp-image-638\" width=\"1140\" height=\"496\"\/><\/a><\/figure>\n\n\n\n<p>Depending on how you control and manage the search box by other fields that we are going to describe later, the appearance of your product table would be something like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/08-search-form-in-front-end.jpg\"><img decoding=\"async\" src=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/08-search-form-in-front-end.jpg\" alt=\"Product table after adding search form\" class=\"wp-image-636\" width=\"688\" height=\"367\"\/><\/a><\/figure>\n\n\n\n<p>\u201c<strong>Search Keyword<\/strong>\u201d box, \u201c<strong>Search<\/strong>\u201d box and \u201c<strong>Reset Form<\/strong>\u201d button are 3 items that are always displayed on the top&nbsp; of your product table after enabling the search box.<\/p>\n\n\n\n<p>The other item may differ from what you are observing in the above picture according to the settings you would prefer for your search box.<\/p>\n\n\n\n<p>Let\u2019s go and see how you can customize your own search box. It help to make adding filters to the product table even easier for your customers.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-search-box-setting\"><strong>Search box setting<\/strong><\/h2>\n\n\n\n<p>Search box settings in the Woocommerce product table plugin includes:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-fields-option-of-filter-form\"><strong>Fields option of filter form<\/strong><\/h3>\n\n\n\n<p>This field has 4 options that you can enable \/ disable them by marking \/unmarking the checkbox next to them including:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-order-options\"><strong>Order options<\/strong><\/h4>\n\n\n\n<p>This is a very good option for customers to sort product table items based on what they need.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/08-order-products-by-search-form.jpg\"><img decoding=\"async\" src=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/08-order-products-by-search-form.jpg\" alt=\"Sort product by ID, title, price, rating, date and etc in Woocommerce product table plugin\" class=\"wp-image-635\" width=\"752\" height=\"430\"\/><\/a><\/figure>\n\n\n\n<p>By enabling Order Options, a dropdown list will be added under the search box including the below items:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Title<\/li>\n\n\n\n<li>Price<\/li>\n\n\n\n<li>Rating<\/li>\n\n\n\n<li>Popularity<\/li>\n\n\n\n<li>Date<\/li>\n\n\n\n<li>SKU<\/li>\n\n\n\n<li>Stock Quantity<\/li>\n\n\n\n<li>Random<\/li>\n<\/ul>\n\n\n\n<p>To apply filters to the product table, customers just need to select one of these items. And without clicking on the refresh button.&nbsp;<\/p>\n\n\n\n<p>They are also able to choose in which order they want to see the products: <strong>Ascending<\/strong> or <strong>descending<\/strong>.<\/p>\n\n\n\n<p>For example in the below picture, we filter the products according to their price. It&#8217;s from the most expensive to the least. This  by choosing price from the left dropdown list and \u201c<strong>Descending<\/strong>\u201d from the right one.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/09-product-table-after-sort-by-price.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/09-product-table-after-sort-by-price.jpg\" alt=\"Product table after sort by price \" class=\"wp-image-671\" width=\"1117\" height=\"634\"\/><\/a><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-price-options-and-filter-by-product-price\"><strong>Price Options and filter by product price<\/strong><\/h4>\n\n\n\n<p>Price is the most important value for the customers when they are shopping. So we consider a separate field with some details for it.<\/p>\n\n\n\n<p>By enabling the price option in this field of filter form, you can set the \u201c<strong>Price Step<\/strong>\u201d for the search box. It depends on you how to set this step and help customers to find the products according to their budget.<\/p>\n\n\n\n<p>To make it more clear, we will describe it by an example. As in the above picture, we set the \u201c<strong>Price Step<\/strong>\u201d to \u201c50\u201d after enabling the Price options. Now let\u2019s see how customers can filter products according to our setting:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/09-set-price-step-after-enable-price-option.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/09-set-price-step-after-enable-price-option.jpg\" alt=\"set price step after enable price option\" class=\"wp-image-672\" width=\"824\" height=\"227\"\/><\/a><\/figure>\n\n\n\n<p>At first, you can see that two boxes have been added under the search box. This fields are here to help customers set their preferred price from minimum available value in the product to another.<\/p>\n\n\n\n<p>They are able to select the minimum and maximum prices in first and second boxes according to the step you had set before.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/08-filter-products-by-min-max-price.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/08-filter-products-by-min-max-price.jpg\" alt=\"Filter product by price in Woocommerce product table plugin\" class=\"wp-image-642\" width=\"681\" height=\"435\" srcset=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/08-filter-products-by-min-max-price.jpg 681w, https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/08-filter-products-by-min-max-price-280x180.jpg 280w\" sizes=\"(max-width: 681px) 100vw, 681px\" \/><\/a><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Note:<\/strong> Customers are not allowed to enter the price manually. They have to choose it from the list which is beginning from the minimum available price in the product table and end to the maximum one increasing according to the step you have set.&nbsp;<\/p>\n<\/blockquote>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-status-options\"><strong>Status Options<\/strong><\/h4>\n\n\n\n<p>After enabling status option, another box will be inserted above the product table including below options:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Featured: <\/strong>Display Featured products.<\/li>\n\n\n\n<li><strong>On sale:<\/strong> Display On-Sale products<\/li>\n\n\n\n<li><strong>In Stock:<\/strong> Display In-Stock products.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/08-filter-products-by-status.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/08-filter-products-by-status.jpg\" alt=\"Filter products by status on woocommerce product table plugin\" class=\"wp-image-644\" width=\"719\" height=\"406\"\/><\/a><\/figure>\n\n\n\n<p>Customers can add filters to the product table regarding these options. For example they can only see the products with \u201cOff\u201d Prices by choosing On \u201c<strong>Sale<\/strong>\u201d item.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-sku-options-for-filter-by-sku\"><strong>SKU Options for filter by SKU<\/strong><\/h4>\n\n\n\n<p>Adding filters to the product table according to the SKU is ideal for those customers who need to buy a specific product again or the ones who want to buy some goods repeatedly.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/08-filter-products-by-SKU.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/08-filter-products-by-SKU.jpg\" alt=\"Filter products by SKU in product table plugin\" class=\"wp-image-643\" width=\"711\" height=\"511\"\/><\/a><\/figure>\n\n\n\n<p>In this way, they are able to manually type the SKU related to that product and directly add it to their cart just by few clicks.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-category-taxonomy-fields\"><strong>Category \/ Taxonomy Fields<\/strong><\/h4>\n\n\n\n<p>Under this field you can enable \/ disable Category, tags, shipping classes and any taxonomy or attributes you have assigned to your products to be filtered by the customer.<\/p>\n\n\n\n<p>As we completely describe \u201c<strong>Category<\/strong>\u201d and \u201c<strong>Attributes<\/strong>\u201d in another tutorial. We just skip it and refer you to \u201c<a href=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/how-to-create-a-search-form-by-category-and-attributes\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to create a search form by category and attributes in Woocommerce Product Table Plugin<\/a>\u201d for more information.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/09-filter-products-by-taxonomies-and-attributes.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/09-filter-products-by-taxonomies-and-attributes.jpg\" alt=\"Filter products by taxonomy, custom taxonomy and attributes\" class=\"wp-image-673\" width=\"795\" height=\"542\"\/><\/a><\/figure>\n\n\n\n<p>In the below Picture, you can see that enabling tags and shipping classes will add another boxes to the search form above the product table and customers are able to filter products according to their preferred tags or shipping classes:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/09-filter-products-by-tag-and-shipping-class.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/09-filter-products-by-tag-and-shipping-class.jpg\" alt=\"filter products by tags and shipping class in woocommerce product table plugin\" class=\"wp-image-674\" width=\"1024\" height=\"579\"\/><\/a><\/figure>\n\n\n\n<p>Note: It is possible for customers to find their category \/ taxonomy term inside these boxes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-always-show-search-filter-form\"><strong>Always show search filter form<\/strong> <\/h3>\n\n\n\n<p>\u201c<strong>Always show search form<\/strong>\u201d is an option you can enable from the very beginning of this page. However, to prevent you from being confused we are going to explain it at the end of our tutorial.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/09-always-show-search-form.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-content\/uploads\/sites\/3\/2021\/02\/09-always-show-search-form.jpg\" alt=\"Enable always show search form \" class=\"wp-image-675\" width=\"799\" height=\"199\"\/><\/a><\/figure>\n\n\n\n<p>By enabling this option, all of the items you have chosen to be shown in the search form above the product will be always displaying.<\/p>\n\n\n\n<p>But if you disable this option, every time the page of your product table being refreshed, all items will be hidden and just the 3 main items including \u201c<strong>Search Keyword<\/strong>\u201d, \u201c<strong>Search<\/strong>\u201d and \u201c<strong>Reset Form button<\/strong>\u201d will be displayed till the customer click on the setting sign in the Search Keyword box to see them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Adding filter form to the product table is possible by inserting search form in configure its settings in the \u201cSearch box &amp; Pagination\u201d tab of WooCommerce product table plugin. filtering has a big influence on impressing customers to purchase goods from your online store. It is essential to display a customer-friendly search form in your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-667","post","type-post","status-publish","format-standard","hentry","category-plugin-usage"],"_links":{"self":[{"href":"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-json\/wp\/v2\/posts\/667","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-json\/wp\/v2\/comments?post=667"}],"version-history":[{"count":0,"href":"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-json\/wp\/v2\/posts\/667\/revisions"}],"wp:attachment":[{"href":"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-json\/wp\/v2\/media?parent=667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-json\/wp\/v2\/categories?post=667"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ithemelandco.com\/docs\/woocommerce-product-table\/wp-json\/wp\/v2\/tags?post=667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}