This commit is contained in:
Patrick Henninger
2020-07-28 15:36:04 +02:00
parent 5e3e584d16
commit 085693def0

View File

@@ -387,10 +387,12 @@ class CartItem implements Arrayable, Jsonable
if (isset($this->associatedModel)) {
return with(new $this->associatedModel())->find($this->id);
}
// no break
case 'modelFQCN':
if (isset($this->associatedModel)) {
return $this->associatedModel;
}
// no break
case 'weightTotal':
return round($this->weight * $this->qty, $decimals);
}