Add custom fields to Woocommerce tab Shipping
-
Hi,
I want to add custom fields to the tab: Shipping – of Woocommerce. I can’t get fixed it. (admin.php?page=wc-settings&tab=shipping)
add_filter( 'woocommerce_shipping_settings', 'add_order_number_start_setting' ); function add_order_number_start_setting( $settings ) { $updated_settings = array(); foreach ( $settings as $section ) { // at the bottom of the General Options section $updated_settings[] = array( 'name' => __( 'Order Number Start', 'wc_seq_order_numbers' ), 'desc_tip' => __( 'The starting number for the incrementing portion of the order numbers, unless there is an existing order with a higher number.', 'wc_seq_order_numbers' ), 'id' => 'woocommerce_order_number_start', 'type' => 'text', 'css' => 'min-width:300px;', 'std' => '1', // WC < 2.0 'default' => '1', // WC >= 2.0 'desc' => __( 'Sample order number: AA-20130219-000-ZZ', 'wc_seq_order_numbers' ), ); $updated_settings[] = $section; } return $updated_settings; }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add custom fields to Woocommerce tab Shipping’ is closed to new replies.