mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-03-15 14:35:10 +00:00
Fixed cart calculation methods
This commit is contained in:
@@ -334,7 +334,7 @@ class CartItem implements Arrayable, Jsonable
|
||||
}
|
||||
|
||||
if($attribute === 'total') {
|
||||
return $this->qty * ($this->priceTax);
|
||||
return $this->qty * $this->priceTax;
|
||||
}
|
||||
|
||||
if($attribute === 'taxTotal') {
|
||||
|
||||
Reference in New Issue
Block a user