Merge pull request #5188 from devansh-webkul/cart-merger

Fixed cart items which get increased when navigating away from the buy now functionality #5179
This commit is contained in:
Glenn Hermans 2021-10-05 08:05:01 +02:00 committed by GitHub
commit f4c1b37504
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -15,7 +15,11 @@ class CartMerger
*/
public function handle($request, Closure $next)
{
\Cart::mergeDeactivatedCart();
/**
* Currently removing the buy now cart only because in live
* instance merging not happen properly need to check this.
*/
\Cart::activateCartIfSessionHasDeactivatedCartId();
return $next($request);
}