Tagged: sort, woocommerce
-
AuthorPosts
-
April 22, 2016 at 1:46 pm #619927
Hey guys,
I am using a plugin called “Search & Filter pro”, providing very good search functionalities for Woocommerce. With this plugin running, the sorting options in the shop page do not work anymore, simply nothing happens/changes.
Switching off the plugin – sorting works.
Switching to a standard theme, with plugin running – sorting works.The combination between this plugin and Enfold disables the sorting.
Now, the developer of the plugins tells me:
Ok, so, the ordering box you have on that page is not from WooCommerce. This is why it doesn’t work.
WooCommerce has its own “ordering” field, which it places at the top of every shop, and this paramater, when you perform a search in the URL is orderby, yours is product_order.Any solution how to overcome this?
Thanks,
KlausApril 25, 2016 at 1:08 pm #621248Hi KlausW!
I cannot see any errors in console. If plugin developer has more insights on what could be causing the issue, we would be happy to look further into it. Have you tried using an alternative plugin?
Cheers!
YigitApril 25, 2016 at 1:57 pm #621294Hi Yigit,
could you please elaborate what you mean by “I cannot see any errors in console”? Sort does not work, but there are no errors produced, so no idea why it does not work – like that?
And explain what is the difference between original sorting in Woocommerce, and sorting in Enfold? Because obviously there is one, as the plugin works with a standard theme.
I am still in contact with the plugin author also, of course, but sitting between chairs here…
Thanks
KlausApril 28, 2016 at 7:47 am #623503Hey!
You can disable the theme’s product sort option and enable the default woocommerce sorting dropdown. Add this in the functions.php file:
add_action( 'after_setup_theme', 'after_setup_theme_mod' ); function after_setup_theme_mod(){ //add_filter('avf_builder_elements', 'avf_builder_elements_mod'); remove_action( 'woocommerce_before_shop_loop', 'avia_woocommerce_frontend_search_params', 20); add_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 ); /*remove woocommerce ordering dropdown*/ }
And the following code in the Quick CSS field:
#top .woocommerce-ordering { position: relative; right: 0; margin: 0; z-index: 20; top: 50%; margin-top: -23px; width: 100%; min-width: 200px; margin-bottom: 20px; }
I’m not sure if this is going to fix the issue with the plugin but the code should bring back the default woocommerce dropdown.
Regards,
IsmaelApril 29, 2016 at 4:35 pm #624630Hey Ismael,
thanks a lot, this indeed solved the issue, sorting works again! For the price of less options given by the more simple Woocommerce basic functionality, but I hop the plugin author can solve this on his side.
Regards,
KlausMay 2, 2016 at 5:37 am #625445 -
AuthorPosts
- You must be logged in to reply to this topic.