Forum Replies Created

Viewing 2 replies - 16 through 17 (of 17 total)
  • Hi, Ankit!

    Could I just nag you a bit with help on setting up the customer billing address field?

    I have this in the add_col function:

    $cols['wc_settings_tab_customer_address'] = __( '<<what is the meta key here?>>', 'mytheme' );

    I have this in the setttings tab function:

    $settings['customer_address'] = array(
      'name' => __( 'Customer Address', 'woocommerce-simply-order-export' ),
      'type' => 'checkbox',
      'desc' => __( 'Customer Address', 'woocommerce-simply-order-export' ),
      'id' => 'wc_settings_tab_customer_address'
    );

    I have this in the csv_write function:

    if( !empty( $fields['wc_settings_tab_customer_address'] ) && $fields['wc_settings_tab_customer_address'] === true ){
      $customer_address = get_post_meta( $od->id, '<<what is the meta key here?>>', true );
      array_push( $csv, $customer_address );
    };

    I’m wondering what the correct meta key is for the billing address?

    Thread Starter ipekarik

    (@ipekarik)

    Hi, Oscar…

    This seems to have solved the problem, thanks! After updating the file and refreshing the browser window, all cron jobs fired as expected.

    Will this be included in subsequent versions of the plugin, or do I need to remember to edit this file after each update?

    Cheers,
    Ivan

Viewing 2 replies - 16 through 17 (of 17 total)