MinimalQuickViewPageLoadedEvent example

->addAssociation('mainCategories.category');

        $criteria
            ->getAssociation('media')
            ->addSorting(new FieldSorting('position'));

        $result = $this->productRoute->load($productIdnew Request()$salesChannelContext$criteria);
        $product = $result->getProduct();

        $page = new MinimalQuickViewPage($product);

        $event = new MinimalQuickViewPageLoadedEvent($page$salesChannelContext$request);

        $this->eventDispatcher->dispatch($event);

        return $page;
    }
}
Home | Imprint | This part of the site doesn't use cookies.