Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1467416

    We are having a compatibility problem with a premium plugin we use to speed up WooCommerce. See example site below and github issue raised.
    https://github.com/superspeedyplugins/issue-tracker/issues/206

    Is there a way to remove
    avia_extended_shop_select=yes&
    from the query string?
    It is breaking the default filters

    avia_extended_shop_select=yes&product_order=price does nothing
    avia_extended_shop_select=yes&product_order=price&product_sort=desc does nothing
    avia_extended_shop_select=yes&product_order=price&product_sort=asc does nothing

    I dont quite understand the purpose of this string either as these filters use woocommerce default filtering.

    #1467420

    If you look at the default store front theme
    It has two filters not three I think this is the root cause of the problem.
    https://themes.woocommerce.com/storefront/shop/?orderby=price-desc
    https://themes.woocommerce.com/storefront/shop/?orderby=price-asc

    Why are we adding the extra parameter for
    ?avia_extended_shop_select=yes
    and
    product_order=price when the default woo filters dont use these queries at all?

    Is there a way to just use the default woocommerce filters instead of the modified Enfold ones?

    • This reply was modified 4 months, 2 weeks ago by thinkjarvis.
    • This reply was modified 4 months, 2 weeks ago by thinkjarvis.
    #1467424

    Essentially this doesn’t work:
    ?avia_extended_shop_select=yes&product_order=price – Only works on shop root and not categories or filtered items
    ?avia_extended_shop_select=yes&product_order=price&product_sort=desc
    ?avia_extended_shop_select=yes&product_order=price&product_sort=asc

    But these work just fine:
    ?orderby=price-desc – without any extra params – just like storefront theme
    ?orderby=price-asc – without any extra params – just like storefront theme

    Please can we change this in Enfold for compatibility?
    Why do we even need to alter these from the woocommerce defaults?
    ?avia_extended_shop_select=yes
    &product_order=price

    when there is a new single parameter query for sorting by price:
    ?orderby=price-desc
    ?orderby=price-asc

    • This reply was modified 4 months, 2 weeks ago by thinkjarvis.
    #1467443

    Hi,

    As far as I see there are 2 functions involved adding avia_extended_shop_select in ..\config-woocommerce\config.php. You can override them in your child theme:

    
    function avia_woocommerce_frontend_search_params()
    {
       return;
    }
    
    
    function avia_woocommerce_overwrite_catalog_ordering( $args )
    {
       return $args;
    }
    

    Can you try that please.

    Best regards,
    Günter

    #1468104

    Solution: Reinstate the default woo dropdowns – Applies to all Enfold sites:

    The default woo filters are dequeued in enfold > config-woocommerce > config.php and config-365.php

    We can requeue them and disable the Enfold filters by adding the following to functions.php in the child theme:

    // Removes Enfolds sort by dropdowns
    function avia_woocommerce_frontend_search_params()
    {
       return;
    }
    
    // Re-adds the default sortby dropdown
    add_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 20 );

    Styling fixes
    Add the following css:

    @media only screen and (max-width: 767px) {
        .responsive #top .woocommerce-ordering {
            position: relative;
            float: left;
            clear: both;
            margin: 0;
            padding-bottom: 0px;
            padding-top: 15px;
            top: 0px;
            margin-top:60px;
        }
    }
    
    @media only screen and (min-width: 768px) {
        .responsive #top .woocommerce-ordering {
            position: relative;
            float: left;
            clear: both;
            margin: 0;
            padding-bottom: 15px;
            padding-top: 15px;
            top: 0px;
            margin-top:0px;
        }
    }
    
    #top.woocommerce-page .woocommerce-ordering select {
    width: 100%;
    font-size:16px;
    padding: 8px;
    line-height: 1.2em;
    }
    • This reply was modified 4 months, 1 week ago by thinkjarvis.
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.