Skip to content

Commit

Permalink
Fix missing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandoorn committed Oct 10, 2017
1 parent fc92c23 commit b38411a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TagManager/ProductDetailImpression.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private function addProductVariant(ProductVariantInterface $productVariant): voi
'name' => $product->getName(),
'id' => $product->getId(),
'price' => $this->getPrice($productVariant),
'category' => $item->getProduct()->getMainTaxon() ? $item->getProduct()->getMainTaxon()->getName() : '',
'category' => $product->getMainTaxon() ? $product->getMainTaxon()->getName() : '',
'variant' => $productVariant->getCode(),
];
}
Expand Down

0 comments on commit b38411a

Please sign in to comment.