Property | Type | Description | |
---|---|---|---|
$min_amount | integer | Min amount to be valid. | |
$requires | string | Requires option. |
Method | Description | |
---|---|---|
__construct ( integer $instance_id ) | Constructor. | |
calculate_shipping ( array $package = [] ) | Called to calculate shipping rates for this method. Rates can be added using the add_rate() method. | |
get_instance_form_fields ( ) : array | Get setting form fields for instances of this shipping method within zones. | |
init ( ) | Initialize free shipping. | |
init_form_fields ( ) | Init form fields. | |
is_available ( array $package ) : boolean | See if free shipping is available based on the package and cart. |
public __construct ( integer $instance_id ) | ||
$instance_id | integer | Shipping method instance. |
public calculate_shipping ( array $package = [] ) | ||
$package | array | Shipping package. |
public get_instance_form_fields ( ) : array | ||
return | array |
public is_available ( array $package ) : boolean | ||
$package | array | Shipping package. |
return | boolean |