class ShippingRule extends AbstractAction

Class ShippingRule

Properties

static string $elementType from AbstractAction
static string $type
int $shippingRule

Methods

setValues( array $values)

No description

string
__toString()

No description

static  string
getElementType()

No description

static  string
getType()

No description

float
getPriceModification( Carrier $carrier, Cart $cart, Address $address, float $price)

get addition/discount for shipping

float|boolean
getPrice( Carrier $carrier, Cart $cart, Address $address)

get price for shipping

int
getShippingRule()

No description

setShippingRule( int $shippingRule)

No description

Details

in AbstractActionCondition at line line 36
setValues( array $values)

Parameters

array $values

in AbstractActionCondition at line line 54
string __toString()

Return Value

string

in AbstractActionCondition at line line 62
static string getElementType()

Return Value

string

in AbstractActionCondition at line line 70
static string getType()

Return Value

string

at line line 48
float getPriceModification( Carrier $carrier, Cart $cart, Address $address, float $price)

get addition/discount for shipping

Parameters

Carrier $carrier
Cart $cart
Address $address
float $price

Return Value

float

in AbstractAction at line line 50
float|boolean getPrice( Carrier $carrier, Cart $cart, Address $address)

get price for shipping

Parameters

Carrier $carrier
Cart $cart
Address $address

Return Value

float|boolean $price

at line line 62
int getShippingRule()

Return Value

int

at line line 70
setShippingRule( int $shippingRule)

Parameters

int $shippingRule