Skip to main content

Fees


Fees

  • Full name: \kennethormandy\marketplace\services\Fees
  • Parent class: Component

Constants

ConstantVisibilityTypeValue
EVENT_BEFORE_CALCULATE_FEES_AMOUNTpublic'beforeCalculateFeesAmount'
EVENT_AFTER_CALCULATE_FEES_AMOUNTpublic'afterCalculateFeesAmount'

Methods

init

public init(): void

calculateFeesAmount

public calculateFeesAmount(\craft\commerce\models\LineItem $lineItem, \craft\commerce\elements\Order $order): int

Parameters:

ParameterTypeDescription
$lineItem\craft\commerce\models\LineItem
$order\craft\commerce\elements\Order


Automatically generated on 2024-11-13