7 calls to Calculator::add() in Commerce Core 8.2
- BuyXGetY::calculateExpectedGetQuantity in modules/
promotion/ src/ Plugin/ Commerce/ PromotionOffer/ BuyXGetY.php - Calculates the expected get quantity.
- BuyXGetY::mergeQuantities in modules/
promotion/ src/ Plugin/ Commerce/ PromotionOffer/ BuyXGetY.php - Merges the first quantity list with the second quantity list.
- CalculatorTest::testArithmetic in modules/
price/ tests/ src/ Unit/ CalculatorTest.php - @covers ::add @covers ::subtract @covers ::multiply @covers ::divide @covers ::compare @covers ::trim
- CartManager::addOrderItem in modules/
cart/ src/ CartManager.php - Adds the given order item to the given cart order.
- OrderItemQuantity::evaluate in modules/
promotion/ src/ Plugin/ Commerce/ Condition/ OrderItemQuantity.php - Evaluates the condition.
- Price::add in modules/
price/ src/ Price.php - Adds the given price to the current price.
- TaxRatePercentage::calculateTaxAmount in modules/
tax/ src/ TaxRatePercentage.php - Calculates the tax amount for the given price.