private function getLinksOfProduct(ListProduct
$product,
$categoryId,
$addNumber) { $baseFile =
$this->config->
get('baseFile'
);
$context =
$this->contextService->
getShopContext();
$detail =
$baseFile . '?sViewport=detail&sArticle=' .
$product->
getId();
if ($categoryId) { $detail .= '&sCategory=' .
$categoryId;
} $rewrite =
Shopware()->
Modules()->
Core()->
sRewriteLink($detail,
$product->
getName());
if ($addNumber) { $rewrite .=
strpos($rewrite, '?'
) !== false ? '&' : '?';
$rewrite .= 'number=' .
$product->
getNumber();
} $basket =
$baseFile . '?sViewport=basket&sAdd=' .
$product->
getNumber();
$note =
$baseFile . '?sViewport=note&sAdd=' .
$product->
getNumber();
$friend =
$baseFile . '?sViewport=tellafriend&sDetails=' .
$product->
getId();
$pdf =
$baseFile . '?sViewport=detail&sDetails=' .
$product->
getId() . '&sLanguage=' .
$context->
getShop()->
getId() . '&sPDF=1';