interface DiscountTypeInterface (View source)

Methods

string
getName()

Return the name of the discount type.

apply(Cart $cart)

Execute and apply the discount if conditions are met.

Details

string getName()

Return the name of the discount type.

Return Value

string

Cart apply(Cart $cart)

Execute and apply the discount if conditions are met.

Parameters

Cart $cart

Return Value

Cart