Issue #2954 fixed
This commit is contained in:
parent
1d6b4e890f
commit
559954e88d
|
|
@ -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*
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -52,6 +52,8 @@ class CartController extends Controller
|
|||
*/
|
||||
public function index()
|
||||
{
|
||||
Cart::mergeCart();
|
||||
|
||||
Cart::collectTotals();
|
||||
|
||||
return view($this->_config['view'])->with('cart', Cart::getCart());
|
||||
|
|
|
|||
Loading…
Reference in New Issue