wpdesk / wp-dhl-express-shipping-method
DHL Express Shipping Method
1.3.0
2022-07-07 13:01 UTC
Requires
- php: >=5.6
- psr/log: ^1.1
- wpdesk/abstract-shipping: ^2.3
- wpdesk/dhl-express-shipping-service: ^1.3
- wpdesk/wp-pro-woocommerce-shipping: ^1.4
- wpdesk/wp-woocommerce-shipping: ^3.7.9
- wpdesk/wpdesk-packer: ^2.0
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-07 18:40:32 UTC
README
DHL Express Shipping Method
Allows to integrate WooCommerce shipping methods interface with DHL Express 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-dhl-express-shipping-method
- https://gitlab.com/wpdesk/predators/library/dhl-express-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-dhl-express-shipping-method
Example usage
<?php
...
public function hooks() {
add_filter( 'woocommerce_shipping_methods', array( $this, 'add_dhl_express_shipping_method' ) );
}
/**
* Adds shipping method to Woocommerce.
*
* @param array $methods Methods.
*
* @return array
*/
public function add_dhl_express_shipping_method( $methods ) {
$methods['flexible_shipping_dhl_express'] = \WPDesk\WooCommerceShipping\DhlExpress\DhlExpressShippingMethod::class;
return $methods;
}
...