mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 07:31:31 +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