Skip to content
This repository has been archived by the owner on Jan 17, 2020. It is now read-only.

Commit

Permalink
add product identifier to search results
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Dec 17, 2014
1 parent 9e73287 commit 233584e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Spatie/GoogleSearch/GoogleSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public function getResults($query) {
$searchResults[$i]['product']['brand'] = $this->getPageMapProperty($item, 'product', 'brand');
$searchResults[$i]['product']['price'] = $this->getPageMapProperty($item, 'product', 'price');
$searchResults[$i]['product']['image'] = $this->getPageMapProperty($item, 'product', 'image');
$searchResults[$i]['product']['identifier'] = $this->getPageMapProperty($item, 'product', 'identifier');

$searchResults[$i]['offer']['price'] = $this->getPageMapProperty($item, 'offer', 'price');
$searchResults[$i]['offer']['pricecurrency'] = $this->getPageMapProperty($item, 'offer', 'pricecurrency');

Expand Down

0 comments on commit 233584e

Please sign in to comment.