-
AuthorPosts
-
March 1, 2021 at 12:58 pm #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:
there are plugins by skyverge but they do not work because i believe this sorting is hardcoded.
Please is it possible to solve it?
March 8, 2021 at 8:14 am #1286339Please?
March 9, 2021 at 1:27 pm #1286698Hi,
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,
YigitMarch 10, 2021 at 1:51 pm #1287104Hello,
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/
March 17, 2021 at 7:40 am #1288647Hi,
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,
RikardMarch 17, 2021 at 9:32 am #1288668Hello,
Thank you, I have contacted their support, we will see. Please is there a way how to enable default woocommerce sorting?
March 21, 2021 at 3:17 pm #1289443Hi 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,
VictoriaMay 31, 2021 at 12:33 pm #1303163If 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
.June 2, 2021 at 9:06 am #1303525Hi,
@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 -
AuthorPosts
- You must be logged in to reply to this topic.