Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jraposon

    (@jraposon)

    For those who have the same problem, here’s my solution:
    1. Go to woocommerce/classes/class-wc-countries.php
    2. Copy the whole function get_default_address_fields(), paste it just right next to it and rename it to get_default_address_fields_2().
    3. Inside get_default_address_fields_2(), you can reorder/Edit/Add here the fields you want.
    4. Copy the whole function get_address_fields(), paste it just right next to it and rename it to get_address_fields_2().
    5. Inside get_address_fields_2(), locate the following line
    $fields = $this->get_default_address_fields();
    and rename it to
    $fields = $this->get_default_address_fields_2();
    6. Locate plugins/woocommerce-multiple-addresses/class-woocommerce-multiple-addresses.php
    7. Find the following line:
    $shipFields = $woocommerce->countries->get_address_fields( $woocommerce->countries->get_base_country(), ‘shipping_’ );
    and rename it to
    $shipFields = $woocommerce->countries->get_address_fields_2( $woocommerce->countries->get_base_country(), ‘shipping_’ );
    8. That’s it. Hope this help someone.

    Forum: Plugins
    In reply to: [I Draw] Blank Screen
    jraposon

    (@jraposon)

    Same issue here. My WP is 3.7.1

    Forum: Plugins
    In reply to: [I Draw] Blank Screen
    jraposon

    (@jraposon)

    Same issue here. My WP version is 3.7.1

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