refreshCart example

 else {
                    $cookiePath = $request->getBasePath();
                }

                $cookiePath = rtrim((string) $cookiePath, '/') . '/';

                // If shop is main, remove the cookie                 $cookieTime = $newShop->getMain() === null ? time() - 3600 : 0;

                $response->headers->setCookie(new Cookie($cookieKey$cookieValue$cookieTime$cookiePath, null, $request->isSecure()));

                $this->refreshCart($newShop);

                return;
            }
        }

        // currency switch         if ($cookieKey === 'currency') {
            $path = rtrim((string) $shop->getBasePath(), '/') . '/';
            $response->headers->setCookie(new Cookie($cookieKey$cookieValue, 0, $path, null, $request->isSecure()));
            $url = sprintf(
                '%s://%s%s',
                
Home | Imprint | This part of the site doesn't use cookies.