Preview: WooCommerce Products Meta Data Filters
Table of Contents
WooCommerce Products Meta Data Filters is a simple but powerful WordPress plugin to filter your WooCommerce products
Filter by product weight, product length, product width, product height, product custom fields, product ACF fields and much more!
Features
- No complicated settings page. Simple and easy administration via Widgets.
- Works out of the box.
- Auto discovers all default and custom meta keys.
- You can create unlimited product filters and combine them.
- Extensible / developer friendly. You can alter the plugin without hacking it, but via WordPress filters and actions.
- Works on all WooCommerce setups and themes.
- Easily translatable via .po / .mo files.
Requirements
- WordPress 4.0+
- WooCommerce 3.0+
- PHP 5.4+
Usage
On wp-admin, click on Appearance on the left menu and then on the Widgets submenu. Locate the “Filter products by Meta” widget and add it on the appropriate sidebar
On the widget options fill in the fields depending on your needs
Options
- Title: Enter the title of the widget. Most of the times it is placed on the top of the widget as a header.
- Label: Put the label of the element you are filtering eg. “Width:”
- Meta Key: Select the meta key you want to filter by
- Filter type: Select “List” to display all available values of this meta key or “range” to create a slider if you are filtering by a numeric value, eg. the weight of the products
- Order options: Select the order of the filter’s values
- Order Autorefresh: This will remove the submit button from a “range” filter and will auto submit the filter when it has been changed
- You are ready to go! * Save *
For Developers
Some hooks are in place. Please search the code for a full list. Below are some of them with examples.
Filters
You can make the filters display in every page you want. The code below will make them display on every page that has the containing sidebar.
add_filter( 'wmf_display_condition', 'my_wmf_display_condition'); function my_wmf_display_condition( $condition ) { return true; }
You can change the list of the filter types.
add_filter( 'wmf_filter_types', 'my_wmf_filter_types'); function my_wmf_display_condition( $types ) { $types['checkbox'] = __( 'Checkbox', 'wmf'); return $types; }
Actions
You may add your own behaviour on your filter type
add_action( 'wmf_widget_end', 'my_wmf_widget_end', 10, 7 ); function my_wmf_widget_end( $title, $valueslabel, $metakey, $filtertype, $orderby, $autorefresh, $values_array ) { // your code here }
Frequently Asked Questions
-
Can I filter by any custom field (meta data)?
Yes, you can.
-
How do I add my custom meta data on a product?
Edit the product in wp-admin. On the top – right corner of the screen, click on “screen options” and make sure that “Custom Fields” is checked. Scroll to the custom fields metabox and add your custom meta data.
Read more on custom fields -
Can I put this anywhere in my site?
You can put it on any sidebar on your website.
-
What default fields can I filter by?
Some of the default filter fields are:
- weight
- length
- width
- height
- visibility
- stock status
- total sales
- sales price
- regular price
- tax status
- tax class
- featured
- sku
- reviews count
- average rating
-
Can I read the documentation?
Changelog
1.0.2 09/12/2019
- Feature: Added support for float range filters
1.0.1 04/26/2019
- Fix: Added support for all meta key values
1.0.0 04/24/2019
- Initial release
Sources and Credits
This plugin uses the following libraries
TMDb Pro – Movie & TV Show Details Plugin For The Movie Database
WooCommerce Products Meta Data Filters
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Why do we use it?
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using Content here, content here, making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for lorem ipsum will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
Where does it come from?
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of “de Finibus Bonorum et Malorum” (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, “Lorem ipsum dolor sit amet..”, comes from a line in section 1.10.32.
Where can I get some?
There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which dont look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isnt anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.
Download WooCommerce Products Meta Data Filters Nulled
Download WooCommerce Products Meta Data FiltersNote: If you are having trouble with WooCommerce Products Meta Data Filters Nulled free Download, try to disable AD blocking for the site or try another Web Browser. If disabling AD blocker or change Web Browser not help to you please contact us.