Notas da versão 2.0.0: 15 novidades 8 melhorias 20 correções 7 reforços de segurança
Novidade
- A builder screen for filter presets. Editing a preset now opens a purpose built, full page builder instead of the WordPress post editor, and saving happens in place without a page reload
- The Shop Builder now opens in a full page builder of its own, with a device switcher that previews the template at desktop, tablet and mobile widths. Responsive controls follow the device being previewed
- 25 new Shop Builder templates, bringing the collection to 33. Every template now carries a name, and the View Demo button follows the template selected
- New filter styles: five more Button, Toggle and Dropdown styles, four more Multi Select styles, three more Price Slider styles, and a choice of six styles each for the Color and Image filters, which previously had one
- Live typography preview. Every typography group in the design settings shows a sample line that takes on the font, size and spacing as they are changed
- Template overrides. Copy any filter template into yourtheme/super-woocommerce-product-filter/ to change its markup without editing the plugin, the same way WooCommerce templates are overridden
- Swpf_before_filter_fields, swpf_after_filter_fields, swpf_before_filter_field and swpf_after_filter_field actions, plus swpf_template_folder and swpf_locate_template filters
- Option to remove every filter, Shop Builder template and setting when the plugin is deleted, under Settings. Off by default, so deactivating or reinstalling never loses your work
- Readable Filter URLs. A filtered address becomes /shop/filter/preset-12/categories-laptop/ instead of a query string, on the shop page, product category and tag archives, and any page holding a filter shortcode. Off by default, under Settings. Existing query string addresses keep working
- Theme Compatibility Mode. When products look wrong after filtering, the filtered page is requested from the site instead of being rebuilt from WooCommerce's default templates, so products come back in the theme's own markup
- The product list, result count and pagination are now found automatically, so the three selector settings only need changing when a theme cannot be detected
- SEO option to keep filtered views out of search engines, so filter combinations do not create near duplicate pages or eat crawl budget. On for new installs. Existing sites keep their current behaviour until the option is switched on under Settings
- Swpf_filter_query_keys filter, for registering additional filter query parameters
- Swpf_preset_icon_families filter, for themes that render filter markup themselves and need an icon font loaded
- Declared compatibility with WooCommerce High Performance Order Storage. The plugin never reads or writes an order, so the WooCommerce status screen no longer lists it as incompatible
Melhoria
- Fancy Select is now a switch of its own, so it can be paired with any Dropdown style instead of being tied to one
- The admin screens have been redesigned
- Removed the Shop Page Layout product template and its Shop Page Products Wrapper Selector Class setting. Requesting the filtered page from the site is now Theme Compatibility Mode under Settings, which needs no selector and covers every preset. Presets set to Shop Page Layout use the theme's own product template
- The Custom product template is now called Theme Default, which is what it does: products are rendered with the theme's own template
- Icon fonts are now loaded only when a filter preset actually uses them. The plugin bundles five families, and previously loaded all of them on every page. Its own tick, close and spinner icons are drawn inline instead, so a page can now load none at all
- The AJAX response no longer carries a copy of the product query object, which nothing read. Responses are around a third smaller
- Removed the Product Columns and Product Rows settings. They never took effect: the filters they relied on are read by WooCommerce before the filter renders, and simply registering them made WooCommerce hide its own Columns and Rows controls in the Customizer. Set them under Appearance > Customize > WooCommerce > Product Catalog instead. A product list added by a shortcode or page builder continues to use its own columns and limit
- The sixteen preloaders are now drawn entirely in CSS, and the markup files they used to ship are gone
Correção
- Term counts now take account of the on sale, rating, review and stock filters, so the number beside a term matches what selecting it returns
- Colour swatches rendered without their colour, because the preview data was passed in a shape the renderer did not read
- Load More and Infinite Scroll replaced the products already on screen with the next page instead of adding to it, and lost their button after the first request, whenever the filtered page is requested from the site
- Shop Builder pages no longer fatal when the request carries an orderby value. The sort value was read through a helper that returns an array, so explode threw a TypeError
- PHP warning when the filter ran with no submitted form data
- Filtering no longer changes how many products are shown on pages where a shortcode or page builder sets its own limit. The page size the loop was rendered with is now carried through to the filtered results
- Filtering a product list rendered by a shortcode or page builder no longer breaks the grid. WooCommerce marks each row's first and last item from the loop's column count, and results were being rendered at the preset's count rather than the one on screen, so the row breaks landed in the wrong places and a three column grid collapsed to two. Results now follow the column count the page is actually showing
- Added the product grid widths WooCommerce does not ship, so a four column layout no longer collapses to two
- Custom CSS and Custom JavaScript no longer lose their line breaks when saved
- Quick View add to cart now reads the product, variation and quantity values correctly
- Removed a duplicate Google font handler that returned empty output, and a template preview endpoint that referenced a missing file
- License API responses that are not 200 are no longer treated as successful
- Elementor widget and shortcode now cast the filter preset id
- Image import now requires a valid absolute image url
- Show Variation Image now swaps the picture inside the theme's own markup instead of replacing the theme's image hook, so themes that draw their own product cards no longer show two images. The swap also applies on the first load of a filtered address, such as a shared or bookmarked link, not only after a filter is changed on the page
- Custom meta field filters with several values ticked now combine them the way the filter's AND/OR logic operator says, instead of always requiring every one, and a value stored as plain text now matches as well as one stored in an array
- The Meta Fields screen no longer accepts two fields with the same meta key, which used to silently overwrite the first with the second, and saving with an expired session now says so instead of spinning without a word
- On the License screen, the version details link on the Plugins screen opened an empty box, the activation reminder linked to the wrong settings page, and a save that carried no details wiped the stored license key
- The dismiss control on the plugin's admin notices did nothing
- The Step by Step placeholder hint named a {parent_field} token that was never replaced. The token is {parent_filter}, which is what the hint now says
Segurança
- Settings sanitization hardened. Values without an explicit rule were stored raw and are now sanitized
- Removed unauthenticated access to the admin post search endpoint, and added capability and nonce checks
- Added nonce verification to Quick View add to cart
- Added nonce verification to the front end filter requests
- Filter presets are now restricted to administrators. Please note that Editors and Shop Managers can no longer manage filters
- Added a capability check when saving filter settings
- Plugin update package is now required to be served over https