Update README.md

https://github.com/bumbummen99/LaravelShoppingcart/issues/11
Fixed copypasta in the Readme
This commit is contained in:
Patrick
2019-06-26 15:48:14 +02:00
committed by GitHub
parent d78b555aa1
commit 30cd02f5f8

View File

@@ -306,8 +306,8 @@ $cart->setTax($rowId, 21);
You can use the `setGlobalTax()` method to change the tax rate for all items in the cart. New items will receive the setGlobalTax as well. You can use the `setGlobalTax()` method to change the tax rate for all items in the cart. New items will receive the setGlobalTax as well.
```php ```php
Cart::setGlobalDiscount(21); Cart::setGlobalTax(21);
$cart->setGlobalDiscount(21); $cart->setGlobalTax(21);
``` ```
### Cart::setGlobalDiscount($discountRate) ### Cart::setGlobalDiscount($discountRate)
@@ -315,8 +315,8 @@ $cart->setGlobalDiscount(21);
You can use the `setGlobalDiscount()` method to change the discount rate for all items in the cart. New items will receive the discount as well. You can use the `setGlobalDiscount()` method to change the discount rate for all items in the cart. New items will receive the discount as well.
```php ```php
Cart::setGlobalDiscount(21); Cart::setGlobalDiscount(50);
$cart->setGlobalDiscount(21); $cart->setGlobalDiscount(50);
``` ```
### Cart::setDiscount($rowId, $taxRate) ### Cart::setDiscount($rowId, $taxRate)