wpdesk / wp-australia-post-shipping-method
Australia Post Shipping Method
1.2.0
2022-08-10 07:12 UTC
Requires
- php: >=7.0
- php-stubs/woocommerce-stubs: ^6.4
- psr/log: ^1.1
- wpdesk/abstract-shipping: ^2.3
- wpdesk/australia-post-shipping-service: ^1.0
- wpdesk/wp-woocommerce-shipping: ^3.7.9
Requires (Dev)
- 10up/wp_mock: *
- mockery/mockery: *
- phpcompatibility/php-compatibility: ^9.1
- phpunit/phpunit: <7
- squizlabs/php_codesniffer: ^3.0.2
- wp-coding-standards/wpcs: ^0.14.1
This package is auto-updated.
Last update: 2024-12-10 11:59:21 UTC
README
Australia Post Shipping Method
Allows to integrate WooCommerce shipping methods interface with Australia Post rates calculation mechanism and services.
This library uses the following:
- https://gitlab.com/wpdesk/predators/library/abstract-shipping
- https://gitlab.com/wpdesk/wp-woocommerce-shipping
- https://gitlab.com/wpdesk/wp-australia-post-shipping-method
- https://gitlab.com/wpdesk/predators/library/australia-post-shipping-service
Requirements
PHP 7.0 or later.
Installation via Composer
In order to install the bindings via Composer run the following command:
composer require wpdesk/wp-australia-post-shipping-method
Example usage
<?php
...
public function hooks() {
add_filter( 'woocommerce_shipping_methods', array( $this, 'add_australia_post_shipping_method' ) );
}
/**
* Adds shipping method to Woocommerce.
*
* @param array $methods Methods.
*
* @return array
*/
public function add_australia_post_shipping_method( $methods ) {
$methods['flexible_shipping_australia_post'] = \WPDesk\WooCommerceShipping\AustraliaPost\AustraliaPostShippingMethod::class;
return $methods;
}
...