This topic has 2 replies, 2 voices, and was last updated 8 years, 2 months ago ago by Jack Richardson
Hi, i have made Variable product attribute and give some VALUES(like 15-70 m2, 70-130 m2, 130-300 m2) to it in order, that i want to see in front-end select, but after saving they change position right that(130-300 m2,15-70 m2,70-130 m2). So as i understand, there is a default sorting by name. There is a function, that called this select in .php `$selected = isset( $_REQUEST[ ‘attribute_’ . sanitize_title( $attribute_name ) ] ) ? wc_clean( $_REQUEST[ ‘attribute_’ . sanitize_title( $attribute_name ) ] ) : $product->get_variation_default_attribute( $attribute_name );
wc_dropdown_variation_attribute_options( array( ‘options’ => $options, ‘attribute’ => $attribute_name, ‘product’ => $product, ‘selected’ => $selected ) );
echo end( $attribute_keys ) === $attribute_name ? ‘<a class=”reset_variations” href=”#”>’ . __( ‘Clear selection’, ‘woocommerce’ ) . ‘</a>’ : ”;`, but there is no sorting. How can i solve it?
Hello,
Please provide us with WP Dashboard credentials in private content.
Best regards,
Jack Richardson.
You must be logged in to reply to this topic.Log in/Sign up