Reputation: 71
Thanks in advance for helping me out ;)
In woocommerce I have created a grouped product, with lots of sub products
See here link to site
How can I control the order the grouped products/options are displayed in?
Ideally, I would like it alpabetic if possible.
Upvotes: 3
Views: 4134
Reputation: 21
Didn't check before, but i just tested on Woocommerce 3.02 and Menu Order doesn't change the list order in the Group. As i don't have many products, i deleted and entered the products again in the order i needed because i noticed the ordering was made by date (or #ID)
Upvotes: 1
Reputation: 21
Just set your ordered numbers in Product page > Advanced tab > Menu order of your child products AND also don't forget to set it for your grouped product!
Upvotes: 2
Reputation: 26309
I just answered a similar question. Instead of date
you would use post_title
as outlined in WP Query Parameters. If you don't see any changes you need to clear your transients: WooCommerce>System Status>Tools>Clear Transients
.
add_filter( 'woocommerce_grouped_children_args', 'so_22661392_grouped_children_args' );
function so_22661392_grouped_children_args( $args ){
$args['orderby'] = 'post_title';
$args['order'] = 'ASC';
return $args;
}
Upvotes: 1
Reputation: 71
Missed this info -
If you wish to control the order in which products are shown within a group, edit the “Menu order” option under the “Advanced” section in product data.
RESOLVED. ;)
Upvotes: 2