CodeExplorer getInsertDiscountAttributeQuery example
foreach ($discounts as $discount) { $discountContext->
setPrice($discount);
$discountContext->
setDiscountName( $discountBaseName .
($hasMultipleTaxes ? ' (' .
$discount->
getTaxRate() . '%)' : ''
) );
$query =
$this->basketQueryHelper->
getInsertDiscountQuery($discountContext);
$query->
execute();
$discountContext->
setBasketId($this->basketQueryHelper->
getLastInsertId());
$query =
$this->basketQueryHelper->
getInsertDiscountAttributeQuery($discountContext);
$query->
execute();
} } /**
* {@inheritdoc}
*/
public function getPositionPrices(DiscountContext
$discountContext) { $query =
$this->basketQueryHelper->
getPositionPricesQuery( $discountContext );