FF AU Post Integration

  • Name : FF AU Post Integration
  • Version : 2.0
  • File : Login to download file

To setup, create a flat rate shipping method with the name “FF Australia Post” 
Do not set any cost, the cost and label will be dynamically updated from the API.

Au Post 2

Additional Settings at 5×5 Tools > Australia Post

Au Post 1
Enable only on specific shipping classes

shipping method will only show if there is a product added to cart that has the selected classes. Leave empty to enable for all.

Disable other shipping options

selected methods will be hidden/disabled if AU Post method is present

Dev Filters / Hooks

ff_au_post_shipping_label

change shipping method label

				
					add_filter( 'ff_au_post_shipping_label', function($label){
    return $label;
});
				
			
ff_au_post_postcode_from

used to get data from Australia Post API. Defaults to the Woocommerce setting shop address

				
					add_filter( 'ff_au_post_postcode_from', function($postcode){
    return $postcode;
});
				
			
ff_au_post_api_key

Currently, the API seems to accept any api key, so this doesn’t really matter, but this might change in the future.

				
					add_filter( 'ff_au_post_api_key', function($api_key){
    return $api_key;
});
				
			

Share This

Select your desired option below to share a direct link to this page.
Your friends or family will thank you later.