PHP 클래스 WC_Shipping_Free_Shipping

A simple shipping method for free shipping.
저자: WooThemes
상속: extends WC_Shipping_Method
파일 보기 프로젝트 열기: woocommerce/woocommerce

공개 프로퍼티들

프로퍼티 타입 설명
$min_amount integer Min amount to be valid.
$requires string Requires option.

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( integer $instance_id )
$instance_id integer Shipping method instance.

calculate_shipping() 공개 메소드

Called to calculate shipping rates for this method. Rates can be added using the add_rate() method.
public calculate_shipping ( array $package = [] )
$package array Shipping package.

get_instance_form_fields() 공개 메소드

Get setting form fields for instances of this shipping method within zones.
public get_instance_form_fields ( ) : array
리턴 array

init() 공개 메소드

Initialize free shipping.
public init ( )

init_form_fields() 공개 메소드

Init form fields.
public init_form_fields ( )

is_available() 공개 메소드

See if free shipping is available based on the package and cart.
public is_available ( array $package ) : boolean
$package array Shipping package.
리턴 boolean

프로퍼티 상세

$min_amount 공개적으로 프로퍼티

Min amount to be valid.
public int $min_amount
리턴 integer

$requires 공개적으로 프로퍼티

Requires option.
public string $requires
리턴 string