Am I the only one NOT able to drag/drop product categories anymore? Can anyone confirm if it works for them. I’m running v2.3.5 of WooCommerce currently.
I know this used to work before, but now it seems to be forcing order by Product Category name with no option to re-order.
Reorder categories by drag and drop works fine for me. WP 4.1.1, WC 2.3.5 & Virtue Prmeium.
I can only suggest the standard debug steps: check console for JavaScript errors, deactivate plugins & try the default theme.
Thanks for the reply
I tried disabling all plugins except WooCommerce itself! Still not able to drag drop Product Categories.
I also check the console output on the Plugins admin page. There were only a few info messages, no errors or warnings:
Sreenshot: http://i.imgur.com/GVS0HE1.png
Ok, I had created a child theme and have been working on it for a while based on a WooThemes theme. I just tried switching to the parent theme and that seems to have fixed the problem. I can now drag & drop.
The question is, what could possibly be blocking the drag drop in the admin page? I didn’t create any admin page override above what the parent theme already had.
EDIT:
Ok I figured out the problem. In my functions.php file, I added a filter for ‘woocommerce_sortable_taxonomies’ to fix the incorrect sorting of the WooCommerce Brands Addon, but this seems to affect all taxonomies, not just brands. I’ll have to re-work this filter.
Simple fix was to change this:
function mf_sort_brands() {
$sortable[] = 'product_brand';
return $sortable;
}
add_filter( 'woocommerce_sortable_taxonomies', 'mf_sort_brands' );
to this:
function mf_sort_brands($sortable) {
$sortable[] = 'product_brand';
return $sortable;
}
add_filter( 'woocommerce_sortable_taxonomies', 'mf_sort_brands' );
Thanks again for the help lorro. Problem solved 🙂
anonymized-14293447
(@anonymized-14293447)
I’m reopening the ticket: same problem, not solved by above solutions. They stay in alphabetical order. Any alternative? Is it a bug or what?
I opened this ticket and found my own theme code was the problem. This isn’t a bug with the plugin itself.
Most likely a problem with your theme. What theme are you using?
anonymized-14293447
(@anonymized-14293447)
I’m using GLOBO premium theme. I have solved the category order because there was an “alphabetical/dates” option in the widget. I’m happy like that, but I think the drag/drop is not working anyway.
There’s something else blocking it from working correctly. Try switching to the default theme (as lorro suggested) and check if drag/drop works. If drag drop works after switching to the default theme, then you might have a filter on ‘woocommerce_sortable_taxonomies’ in your theme’s functions.php file.
Ash
(@ashbryant)
@acmdesigns did you get this fixed?
I’m using Flatsome here, and I’m seeing this same problem; I get the crosshairs to order my categories, and I can drag and drop, but nothing changes. I activated Divi instead…same problem.
Help?
@mpedersen, try switching to one of the default wordpress themes (like twenty fifteen or something) and checking if the product category drag/drop works. If it works with the default theme, then it’s probably the flatsome theme using the “woocommerce_sortable_taxonomies” filter incorrectly. Take a look at the theme’s source code to see if it uses it anywhere.