diff --git a/src/Config/cart.php b/src/Config/cart.php index 1f06222..b87faed 100644 --- a/src/Config/cart.php +++ b/src/Config/cart.php @@ -3,18 +3,6 @@ use Money\Money; return [ - - /* - |-------------------------------------------------------------------------- - | Gross price as base price - |-------------------------------------------------------------------------- - | - | This default value is used to select the method to calculate prices and taxes - | If true the item price is managed as a gross price, so taxes will be calculated by separation/exclusion - | - */ - - 'calculator' => \Gloudemans\Shoppingcart\Calculation\DefaultCalculator::class, /* |-------------------------------------------------------------------------- diff --git a/src/Exceptions/InvalidCalculatorException.php b/src/Exceptions/InvalidCalculatorException.php deleted file mode 100644 index abc5370..0000000 --- a/src/Exceptions/InvalidCalculatorException.php +++ /dev/null @@ -1,9 +0,0 @@ -getCartDiscount(0); - config(['cart.calculator' => GrossPrice::class]); - - $cartItem = $cart->add(new BuyableProduct([ - 'name' => 'First item', - 'price' => 100, - ]), 2); - - $cart->setGlobalTax(22); - - // check net price - $this->assertEquals(new Money(8197, new Currency('USD')), $cartItem->priceNet); - } - /** * Get an instance of the cart. *