$page =
$this->minimalQuickViewPageLoader->
load($request,
$context);
$this->
hook(new ProductQuickViewWidgetLoadedHook($page,
$context));
return $this->
renderStorefront('@Storefront/storefront/component/product/quickview/minimal.html.twig',
['page' =>
$page]);
} #[Route(path: '/product/{productId}/rating', name: 'frontend.detail.review.save', defaults: ['XmlHttpRequest' => true, '_loginRequired' => true], methods: ['POST'])]
public function saveReview(string
$productId, RequestDataBag
$data, SalesChannelContext
$context): Response
{ $this->
checkReviewsActive($context);
try { $this->productReviewSaveRoute->
save($productId,
$data,
$context);
} catch (ConstraintViolationException
$formViolations) { return $this->
forwardToRoute('frontend.product.reviews',
[ 'productId' =>
$productId,
'success' => -1,
'formViolations' =>
$formViolations,
'data' =>
$data,
],
['productId' =>
$productId]);
}