CodeExplorer getPositionPricesQuery example
$query =
$this->basketQueryHelper->
getInsertDiscountAttributeQuery($discountContext);
$query->
execute();
} } /**
* {@inheritdoc}
*/
public function getPositionPrices(DiscountContext
$discountContext) { $query =
$this->basketQueryHelper->
getPositionPricesQuery( $discountContext );
$rows =
$query->
execute()->
fetchAll(PDO::FETCH_ASSOC
);
return array_map(function D
$row) { return new Price( (float) $row['end_price'
] *
$row['quantity'
],
(float) $row['net_price'
] *
$row['quantity'
],
(float) $row['tax_rate'
],
null
);