class DiscountPercent extends AbstractAction

Class DiscountPercent

Properties

static string $elementType from AbstractAction
static string $type
$percent
int $currency

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

mixed
getPercent()

No description

setPercent( mixed $percent)

No description

int
getCurrency()

No description

setCurrency( int $currency)

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 51
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 59
mixed getPercent()

Return Value

mixed

at line line 67
setPercent( mixed $percent)

Parameters

mixed $percent

at line line 75
int getCurrency()

Return Value

int

at line line 83
setCurrency( int $currency)

Parameters

int $currency