diff --git a/src/TagManager/ViewItem.php b/src/TagManager/ViewItem.php index 853a43a..331316d 100644 --- a/src/TagManager/ViewItem.php +++ b/src/TagManager/ViewItem.php @@ -64,11 +64,13 @@ private function addViewItemData(ProductInterface $product): void $data = [ 'items' => [ - 'item_id' => $this->productIdentifierHelper->getProductIdentifier($product), - 'item_name' => $product->getName(), - 'affiliation' => $this->channelContext->getChannel()->getName(), - 'item_category' => null !== $mainTaxon ? $mainTaxon->getName() : '', - 'index' => 0, + [ + 'item_id' => $this->productIdentifierHelper->getProductIdentifier($product), + 'item_name' => $product->getName(), + 'affiliation' => $this->channelContext->getChannel()->getName(), + 'item_category' => null !== $mainTaxon ? $mainTaxon->getName() : '', + 'index' => 0, + ], ], ];