Home / Admin / Add Tax ID to Shipping Label
Duplicate Snippet

Embed Snippet on Your Site

Add Tax ID to Shipping Label

Code Preview
php
<?php
/**	
 * Add the Tax ID Field to the settings page 
 * 
 * In this example we are using ABN/ACN for Australian GST Invoices
 * You can update this tax label to whatever suits your requirements. 
 */
add_action( 'wcvendors_settings_before_company_url', 'wcv_add_tax_field' ); 
function wcv_add_tax_field(){ 
	$key = 'wcv_custom_settings_tax_id'; 
	$value = get_user_meta( get_current_user_id(), $key, true );
	WCVendors_Pro_Form_Helper::input(
		apply_filters(
			'wcv_vendor_tax_id',
			array(
				'id'                => $key,
				'label'             => __( 'ABN/ACN', 'wcvendors-pro' ),
				'placeholder'       => __( '00 000 000 000', 'wcvendors-pro' ),
				'desc_tip'          => 'true',
				'description'       => __( 'Your ABN/ACN', 'wcvendors-pro' ),
				'type'              => 'text',
				'value'				=> $value,
			)
		)
	);
}

Comments

Add a Comment