darryldecode / laravelshoppingcart

Shopping Cart Implementation for Laravel Framework
1.34k stars 438 forks source link

Call to a member function applyCondition() in Cart #289

Open stefanotombari opened 3 years ago

stefanotombari commented 3 years ago

If i open a cart with products with conditions i get this error.

This is the ErrorException ErrorException thrown with message "Call to a member function applyCondition() on string (View: /var/www/resources/views/site/pages/cart.blade.php)"

This is the Error /var/www/vendor/darryldecode/cart/src/Darryldecode/Cart/ItemCollection.php $newPrice = $condition->applyCondition($toBeCalculated);