You are here

public function OrderItemInterface::getAdjustedTotalPrice in Commerce Core 8.2

Gets the adjusted order item total price.

The adjusted total price is calculated by applying the order item's adjustments to the total price. This can include promotions, taxes, etc.

Parameters

string[] $adjustment_types: The adjustment types to include in the adjusted price. Examples: fee, promotion, tax. Defaults to all adjustment types.

Return value

\Drupal\commerce_price\Price|null The adjusted order item total price, or NULL.

1 method overrides OrderItemInterface::getAdjustedTotalPrice()
OrderItem::getAdjustedTotalPrice in modules/order/src/Entity/OrderItem.php
Gets the adjusted order item total price.

File

modules/order/src/Entity/OrderItemInterface.php, line 153

Class

OrderItemInterface
Defines the interface for order items.

Namespace

Drupal\commerce_order\Entity

Code

public function getAdjustedTotalPrice(array $adjustment_types = []);