Variable product attribute values replacing

This topic has 2 replies, 2 voices, and was last updated 8 years, 2 months ago ago by Jack Richardson

  • Avatar: xanderkrosh
    xanderkrosh
    Participant
    January 20, 2016 at 09:31

    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?

    1 Answer
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    January 20, 2016 at 14:19

    Hello,

    Please provide us with WP Dashboard credentials in private content.

    Best regards,
    Jack Richardson.

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.