Plugin doesn’t set default when “ID” is set as option
-
Hi
Just to let you know the plugin doesn’t set the default option when sort by is set to ID. I fixed the problem myself but if you could fix it that would be great.
Move (line 28 in variations.php):
$args['selected'] = $prices[0][1];To outside the if statement at line 29
if ( $sortby == 'price-low' || $sortby == 'price-high' ) { if ( isset($prices) ) { if ($sortby == 'price-low') { sort( $prices ); } else { rsort( $prices ); } } } $args['selected'] = $prices[0][1];
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Plugin doesn’t set default when “ID” is set as option’ is closed to new replies.