Méthode |
Description |
|
__construct ( ) |
Constructor. |
|
calc_percentage_adjustment ( float $cost, float $percent_adjustment, string $percent_operator, float $base_price ) : float |
Calculate the percentage adjustment for each shipping rate. |
|
calculate_extra_shipping ( $method, $rate ) |
Adds extra calculated flat rates. |
|
calculate_shipping ( array $package = [] ) |
calculate_shipping function. |
|
fee ( array $atts ) : string |
Work out fee (shortcode). |
|
find_shipping_classes ( mixed $package ) : array |
Finds and returns shipping classes and the products with said class. |
|
get_extra_cost ( string $cost_string, string $type, array $package ) : float |
Get extra cost. |
|
get_option_key ( ) : string |
Return the name of the option in the WP DB. |
|
get_package_item_qty ( array $package ) : integer |
Get items in package. |
|
init ( ) |
init function. |
|
init_form_fields ( ) |
Initialise Settings Form Fields. |
|
process_admin_options ( ) |
Process and redirect if disabled. |
|