Skip to content

Commit

Permalink
Fix view_item output
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandoorn committed Jun 16, 2023
1 parent c3cfe25 commit 6d558a0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/TagManager/ViewItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
],
],
];

Expand Down

0 comments on commit 6d558a0

Please sign in to comment.