Skip to content

Commit

Permalink
Product Indexer: Add description
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreGauthier committed Mar 25, 2024
1 parent 86f2a13 commit ba68dd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Indexer/ProductIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ private function formatProduct(ProductInterface $product, ChannelInterface $chan
'id' => "{$product->getId()}",
'sku' => [$product->getCode()],
'name' => [$product->getTranslation($locale->getCode())->getName()],
'description' => [$product->getTranslation($locale->getCode())->getDescription()],
'image' => [$this->formatMedia($product) ?: null],
'price' => $this->formatPrice($variant, $channel),
'stock' => [
Expand Down

0 comments on commit ba68dd2

Please sign in to comment.