You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if, in the cart, I change the quantity of an item that has an addon, the single price is not updated correctly because the price of the addon is not considered in the calculation. Have you already thought about it?
I suggest these changes: in CartiItem.php:
`public function __get($attribute) {
//......
if ('totalPriceAddons' == $attribute) {
if (! $this->options->has('addons')) {
return 0;
}
//.....
if ('total' === $attribute) {
return $this->qty * ($this->priceTax + $this->totalPriceAddons);
}
}`
if, in the cart, I change the quantity of an item that has an addon, the single price is not updated correctly because the price of the addon is not considered in the calculation. Have you already thought about it?
I suggest these changes: in CartiItem.php:
in Cart.php:
The text was updated successfully, but these errors were encountered: