Linux 软件免费装

NWS Product Filter

开发者 neonus
shamotj
更新时间 2025年12月8日 16:35
PHP版本: 7.4 及以上
WordPress版本: 6.8
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce filter price filter product filter attributes

下载

1.0.17

详情介绍:

A powerful WooCommerce product filter plugin that allows customers to filter products by attributes, price range, stock status, and navigate between categories. Features Filter Types Price Filter Interactive price range slider that automatically detects the price range for the current category with currency symbol support and real-time visual feedback. Attribute Filters Checkbox-based filtering for product attributes with product counts for each option, supports multiple selections, and automatically hides options with zero products. Stock Filter Simple checkbox to filter by stock availability, showing only products that are in stock. Categories Menu Collapsible category tree showing hierarchical structure with product counts, expandable/collapsible subcategories with visual indicators, current category highlighting, and optional auto-expand parent categories feature. Usage Display the main filter using the shortcode: [nwsfilter_product_filter] Display only selected/active filters: [nwsfilter_selected_filters] Or use PHP in your template: <?php echo do_shortcode('[nwsfilter_product_filter]'); ?> <?php NWSFILTER_Frontend::get_instance()->display_filter_form(); ?> Configuration
  1. Navigate to Settings > Product Filter in your WordPress admin
  2. Select which attributes and filters you want to display
  3. Drag and drop to reorder the filter items
  4. Configure categories settings (auto-expand, display location)
  5. Configure selected filters display options
  6. Save your settings
Customization The plugin includes comprehensive CSS classes for easy customization:

安装:

  1. Upload the plugin files to /wp-content/plugins/nws-filter/
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Go to Settings > Product Filter to configure
  4. Display the filter using shortcode [nwsfilter_product_filter] or template functions

屏幕截图:

  • Admin configuration panel

升级注意事项:

1.0.14 IMPORTANT: Breaking changes - shortcode names updated for WordPress.org compliance. Update [nws_product_filter] to [nwsfilter_product_filter] and [nws_selected_filters] to [nwsfilter_selected_filters]. Plugin settings will need to be reconfigured after upgrade. 1.0.11 Stable release with enhanced performance, security fixes, and WordPress.org compliance improvements. 1.0.10 Important bug fix: Categories now respect admin settings and only display when enabled. 1.0.9 Important security and compliance updates for WordPress.org submission. 1.0.8 Database security improvements. 1.0.7 New shortcode feature for displaying selected filters separately.

常见问题:

How do I display the filter?

Use the shortcode [nwsfilter_product_filter] in any page or post, or add it to your theme template using <?php echo do_shortcode('[nwsfilter_product_filter]'); ?>

Can I display selected filters separately?

Yes! Use the shortcode [nwsfilter_selected_filters] to display only the active/selected filters with remove buttons. This is useful when you want to show filters in a different location or when you've hidden them from the main filter form.

How do I change the order of filters?

In the admin settings (Settings > Product Filter), you can drag and drop the filter items to reorder them. The order you set will be reflected on the frontend.

Can I customize the appearance?

Yes! The plugin includes comprehensive CSS classes that you can override in your theme's CSS file. All main elements have specific classes like .nws-filter, .filter-group, .range-slider, etc.

Does it work with AJAX?

The filtering uses URL parameters and page reloads. The interface includes a loading indicator for better user experience.

Can I hide selected filters from the main filter form?

Yes! In the admin settings, enable "Hide Selected Filters in Filter Form" and use the [nwsfilter_selected_filters] shortcode to display them elsewhere.

How do I enable category auto-expand?

In Settings > Product Filter, check the "Auto-expand Parent Categories" option. This will automatically expand parent categories when viewing a subcategory.

What WooCommerce versions are supported?

The plugin requires WooCommerce 4.0 or higher and is tested up to WooCommerce 8.0.

更新日志:

1.0.17 1.0.16 1.0.15 1.0.14 1.0.13 1.0.12 1.0.11 1.0.10 1.0.9 1.0.8 1.0.7 1.0.6 1.0.0