The token is part of the SalesChannelContext. You can get the customer's cart like this:
public function onProductPageLoadedEvent(ProductPageLoadedEvent $event) {
$cart = $this->cartService->getCart($event->getSalesChannelContext()->getToken(), $event->getSalesChannelContext());
}
The token is part of the SalesChannelContext. You can get the customer's cart like this: