Fees
Fees
- Full name:
\kennethormandy\marketplace\services\Fees
- Parent class:
Component
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
EVENT_BEFORE_CALCULATE_FEES_AMOUNT | public | 'beforeCalculateFeesAmount' | |
EVENT_AFTER_CALCULATE_FEES_AMOUNT | public | 'afterCalculateFeesAmount' |
Methods
init
public init(): void
calculateFeesAmount
public calculateFeesAmount(\craft\commerce\models\LineItem $lineItem, \craft\commerce\elements\Order $order): int
Parameters:
Parameter | Type | Description |
---|---|---|
$lineItem | \craft\commerce\models\LineItem | |
$order | \craft\commerce\elements\Order |
Automatically generated on 2024-11-13