WooCommerce Products Meta Data Filters

Description

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!

Watch the demo \

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
  1. Title: Enter the title of the widget. Most of the times it is placed on the top of the widget as a header.
  2. Label: Put the label of the element you are filtering eg. “Width:”
  3. Meta Key: Select the meta key you want to filter by
  4. 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
  5. Order options: Select the order of the filter’s values
  6. Order Autorefresh: This will remove the submit button from a “range” filter and will auto submit the filter when it has been changed
  7. 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

  1. Can I filter by any custom field (meta data)?

    Yes, you can.

  2. 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

  3. Can I put this anywhere in my site?

    You can put it on any sidebar on your website.

  4. 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
  5. Can I read the documentation?

    About / 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

  • jQuery-ui-Slider-Pips

1. All digital products are the most recent version, with no possibility of free updates. After payment, you can request an update to the most recent version for 7 days if a new version is released. We free support within 7 days.

2. After the purchase is confirmed, download links will be available for 7 days. If a license is required, please contact us via email or ticket for assistance with activation. Our license is only valid for activation and does not include support.

3. We provide Mobile, PHP script installation services for $19.90. Please create a backup after installation as we do not support re-installation. For mobile app source code, we do not offer installation services.

4. If you have any questions, please contact us by email [email protected] or create a ticket on this page

5. Please note that any digital products presented on the website do not contain malicious code, viruses or advertising. You will receive the original files from the developers. We do not sell any products that have been downloaded from other websites.

6. The response time can last up to 6 hours.