php 缩写州帐单/送货字段

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php 缩写州帐单/送货字段相关的知识,希望对你有一定的参考价值。

/* abbreviate woocommerce states */
add_filter( 'woocommerce_states', 'lets_customize_woocommerce_states' );
    function lets_customize_woocommerce_states() {
    	global $states;

    	$states['US'] = array(
                'AL' =>	__( 'AL' , 'woocommerce' ),
        	'AK' =>	__( 'AK' , 'woocommerce' ),
        	'AZ' =>	__( 'AZ' , 'woocommerce' ),
        	'AR' =>	__( 'AR' , 'woocommerce' ),
        	'CA' =>	__( 'CA' , 'woocommerce' ),
        	'CO' =>	__( 'CO' , 'woocommerce' ),
        	'CT' =>	__( 'CT' , 'woocommerce' ),
        	'DE' =>	__( 'DE' , 'woocommerce' ),
        	'DC' =>	__( 'DC' , 'woocommerce' ),
        	'FL' =>	__( 'FL' , 'woocommerce' ),
        	'GA' =>	_x( 'GA' , 'woocommerce' ),
        	'HI' =>	__( 'HI' , 'woocommerce' ),
        	'ID' =>	__( 'ID' , 'woocommerce' ),
        	'IL' =>	__( 'IL' , 'woocommerce' ),
        	'IN' =>	__( 'IN' , 'woocommerce' ),
        	'IA' =>	__( 'IA' , 'woocommerce' ),
        	'KS' =>	__( 'KS' , 'woocommerce' ),
        	'KY' =>	__( 'KY' , 'woocommerce' ),
        	'LA' =>	__( 'LA' , 'woocommerce' ),
        	'ME' =>	__( 'ME' , 'woocommerce' ),
        	'MD' =>	__( 'MD' , 'woocommerce' ),
        	'MA' =>	__( 'MA' , 'woocommerce' ),
        	'MI' =>	__( 'MI' , 'woocommerce' ),
        	'MN' =>	__( 'MN' , 'woocommerce' ),
        	'MS' =>	__( 'MS' , 'woocommerce' ),
        	'MO' =>	__( 'MO' , 'woocommerce' ),
        	'MT' =>	__( 'MT' , 'woocommerce' ),
        	'NE' =>	__( 'NE' , 'woocommerce' ),
        	'NV' =>	__( 'NV' , 'woocommerce' ),
        	'NH' =>	__( 'NH' , 'woocommerce' ),
        	'NJ' =>	__( 'NJ' , 'woocommerce' ),
        	'NM' =>	__( 'NM' , 'woocommerce' ),
        	'NY' =>	__( 'NY' , 'woocommerce' ),
        	'NC' =>	__( 'NC' , 'woocommerce' ),
        	'ND' =>	__( 'ND' , 'woocommerce' ),
        	'OH' =>	__( 'OH' , 'woocommerce' ),
        	'OK' =>	__( 'OK' , 'woocommerce' ),
        	'OR' =>	__( 'OR' , 'woocommerce' ),
        	'PA' =>	__( 'PA' , 'woocommerce' ),
        	'RI' =>	__( 'RI' , 'woocommerce' ),
        	'SC' =>	__( 'SC' , 'woocommerce' ),
        	'SD' =>	__( 'SD' , 'woocommerce' ),
        	'TN' =>	__( 'TN' , 'woocommerce' ),
        	'TX' =>	__( 'TX' , 'woocommerce' ),
        	'UT' =>	__( 'UT' , 'woocommerce' ),
        	'VT' =>	__( 'VT' , 'woocommerce' ),
        	'VA' =>	__( 'VA' , 'woocommerce' ),
        	'WA' =>	__( 'WA' , 'woocommerce' ),
        	'WV' =>	__( 'WV' , 'woocommerce' ),
        	'WI' =>	__( 'WI' , 'woocommerce' ),
        	'WY' =>	__( 'WY' , 'woocommerce' ),
        	'AA' =>	__( 'AA' , 'woocommerce' ),
        	'AE' =>	__( 'AE' , 'woocommerce' ),
        	'AP' =>	__( 'AP' , 'woocommerce' )
    	);
    	
    	return $states;
    }

以上是关于php 缩写州帐单/送货字段的主要内容,如果未能解决你的问题,请参考以下文章

如何使用 PayPal PHP REST API 设置帐单或送货地址?

无法在 Django 中保存一个送货地址和一个帐单地址

Magento:Paypal 将送货地址作为默认地址,而不是帐单地址

Paypal Rest API - 提交帐单地址

获取 PayPal 移动用户的帐单地址

php 结帐:添加自定义送货/结算字段#woo