wpdesk / wp-ups-shipping-method
UPS Shipping Method
This package's canonical repository appears to be gone and the package has been frozen as a result.
3.5.0
2024-08-13 11:54 UTC
Requires
- php: >=7.4
- octolize/wp-ups-oauth: ^1.0
- psr/log: ^1.1
- wpdesk/abstract-shipping: ^2.11
- wpdesk/ups-shipping-service: ^3.1
- 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
- dev-master
- 3.5.0
- 3.4.4
- 3.4.3
- 3.4.2
- 3.4.1
- 3.4.0
- 3.3.3
- 3.3.2
- 3.3.1
- 3.3.0
- 3.3.0-beta1
- 3.2.1
- 3.2.0
- 3.2.0-beta2
- 3.2.0-beta1
- 3.1.0
- 3.1.0-beta1
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 3.0.0-beta3
- 3.0.0-beta2
- 3.0.0-beta1
- 2.9.1
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.1-beta3
- 2.5.1-beta2
- 2.5.1-beta1
- 2.5.0
- 2.5.0-beta2
- 2.4.0
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.2
- 2.2.2-beta1
- 2.2.1
- 2.2.0
- 2.2.0-beta1
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.2-beta1
- 2.1.1
- 2.1.0
- 2.1.0-beta1
- 2.0.5
- 2.0.4
- 2.0.2
- 2.0.1
- 2.0.0
- 1.0.1
- 1.0.0
- dev-feature/ajax-points
This package is auto-updated.
Last update: 2024-09-13 12:09:44 UTC
README
UPS Shipping Method
Allows to integrate WooCommerce shipping methods interface with UPS 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-ups-shipping-method
- https://gitlab.com/wpdesk/predators/library/ups-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-ups-shipping-method
Example usage
<?php
...
public function hooks() {
add_filter( 'woocommerce_shipping_methods', array( $this, 'add_ups_shipping_method' ) );
}
/**
* Adds shipping method to Woocommerce.
*
* @param array $methods Methods.
*
* @return array
*/
public function add_ups_shipping_method( $methods ) {
$methods['flexible_shipping_ups'] = \WPDesk\WooCommerceShipping\Ups\UpsShippingMethod::class;
return $methods;
}
...