• Resolved havran10

    (@havran10)


    Hi guys,
    I would like to use woocommerce filtr priority in shipping form in checkout page. Because I am not programmer and I am looking for some solutions. I found and used this code in functions.php in theme-child:

    add_filter(‘woocommerce_default_address_fields’, function($address_fields) {
    $address_fields[‘billing_iscomp_field’][‘priority’] = 1;
    $address_fields[‘billing_company’][‘priority’] = 2;
    $address_fields[‘billing_ic’][‘priority’] = 3;
    $address_fields[‘billing_dic’][‘priority’] = 4;
    return $address_fields;
    });

    but this doesnt work. Do you know, where is mistake?
    Thank you.

    Maverick10

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Sorting fields in shipping forms’ is closed to new replies.