Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1284402

    Hello guys,

    I’ve searched forum topics for sorting options but i did not find all information.

    I need to remove most of the sorting options and I need to add option to sort by stock availability:
    sorting

    there are plugins by skyverge but they do not work because i believe this sorting is hardcoded.

    Please is it possible to solve it?

    #1286339

    Please?

    #1286698

    Hi,

    Thanks for contacting us!

    Please add following code to bottom of Functions.php file of your child theme

    
    function avia_remove_woocommerce_frontend_search_params() { 
    remove_action('woocommerce_before_shop_loop','avia_woocommerce_frontend_search_params', 20);
    } 
    add_action( 'init', 'avia_remove_woocommerce_frontend_search_params');

    This would remove default sorting. Please let us know if plugin works after removing default sorting :)

    Best regards,
    Yigit

    #1287104

    Hello,

    Thank you very much for the code, it has removed the sorting completely and the plugin did not add the sorting back,

    This is the plugin:https://sk.wordpress.org/plugins/woocommerce-extra-product-sorting-options/

    #1288647

    Hi,

    Sorry for the late reply. Could you please try reaching out to the plugin developers and ask what is required in order to implement their sorting? Please note that our support for third party plugins is limited.

    Best regards,
    Rikard

    #1288668

    Hello,

    Thank you, I have contacted their support, we will see. Please is there a way how to enable default woocommerce sorting?

    #1289443

    Hi goldsvk,

    Default sorting shows up on the WooCommerce shop page by default it does not show up on the custom shop page built with the Advanced Layout Builder.

    Best regards,
    Victoria

    #1303163

    If this were true then the sorting options would respect the current WordPress language, but they don’t. As it is now, they’re all pulled from class-wc-shop-customizer.php.

    #1303525

    Hi,

    @chiliharstad: What do you mean? You should be able to modify the sorting option in the themes\enfold\config-woocommerce\config.php file if you want to add or remove a sorting option. Look for the avia_woocommerce_overwrite_catalog_ordering function around line 1750.

    Best regards,
    Ismael

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.