This commit is contained in:
Pranshu Tomar 2020-04-28 19:22:30 +05:30
parent 1d6b4e890f
commit 559954e88d
3 changed files with 6 additions and 2 deletions

View File

@ -54,6 +54,8 @@
* #2943 [fixed] - Scroll images is not working
* #2954 [fixed] - The merging cart function does not work when already added all items of product into customer cart
## **v1.1.0 (24th of March 2020)** - *Release*

View File

@ -368,6 +368,8 @@ class Cart
continue;
}
$found = true;
$cartItem->quantity = $newQuantity = $cartItem->quantity + $guestCartItem->quantity;
if (! $this->isItemHaveQuantity($cartItem)) {
@ -387,8 +389,6 @@ class Cart
$guestCart->items->forget($key);
$this->cartItemRepository->delete($guestCartItem->id);
$found = true;
}
if (! $found) {

View File

@ -52,6 +52,8 @@ class CartController extends Controller
*/
public function index()
{
Cart::mergeCart();
Cart::collectTotals();
return view($this->_config['view'])->with('cart', Cart::getCart());