monarchhf
Forum Replies Created
-
Of all the plugins on the market, this is by far the most flexible, customizable, and comprehensive in it’s scope for covering edge case scripts you need blocked.
I’ve used this with heap.com, CAOS plugin via custom hooks, and a number of built in script blocking features for google tag manager and ads.
Appearance settings are very flexible, and can be further enhanced with CSS. Couldn’t ask for a better setup for a comprehensive solution.
Forum: Plugins
In reply to: [Variation Swatches for WooCommerce] Update 1.1.3 – variations not clickableBumping this thread –
I have the PRO version of this product, with both it and the free portion of the plugin having been updated to the latest version as of this writing (v1.1.7).
Despite both being completely up to date, the issue persists. Variation swatches no longer function.
A ticket has been created in your online support center for PRO users.
Hi @jenskyverge
Thanks for clarifying. FacetWP doesn’t override the default output, but it does provide it’s own index for sorting with it’s data and filter hooks.
Since I just want the default to place in stock items first, I found an option that works on my site:
add_action( 'pre_get_posts', function( $query ) { if ( $query->is_main_query() && is_woocommerce() && ( is_shop() || is_product_category() || is_product_tag() ) ) { if( $query->get( 'orderby' ) == 'menu_order title' ) { // only change default sorting $query->set( 'orderby', 'meta_value' ); $query->set( 'order', 'ASC' ); $query->set( 'meta_key', '_stock_status' ); } } });
Hi Jennifer,
Sure I can provide some additional details. FacetWP is a faceting system, it’s primary feature being filters to use for displaying product results. More info here: https://facetwp.com/
Why I’m reaching out to you is because throughout our site, the initial Woocommerce product sorting is the default, and we’re not overriding it in any way.
What I’m looking to accomplish is simply moving “out of stock” items to the end of the list by default, while still allowing a user to select other sorting options from the dropdown.
If I’m not mistaken, FacetWP does not override default sorting, and it’s shortcode for displaying sorting options simply displays choices Woocommerce natively uses.
Bottom line is that the initial sorting output appears to be alphabetical when your plugin is active, and I don’t see any way to use availability as the default instead.