Page 1 of 1

Felder für die Rich Suchergebnisse | Google Rich Snippets

Posted: 01 Sep 2022, 19:42
by windergrosse
Moin,

ich möchte die Rich-Suchergebnisse einrichten. Mir fehlen allerdings die Felder zu den 4 gezeigten.
Kann mir die jemand nennen?

---

Hello, I want to create my google rich snippets. Can you guys tell me the four input fields that are shown below?

"ratingValue": "?",
"bestRating": "?"
"ratingValue": "?",
"reviewCount": "?"

Dnakeschön

<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Product",
"name": "' . $this->getItemData()['title'] . '",
"image": ["' . $this->getItemData()['image'] . '"],
"description": "' . $this->getItemData()['description_long'] . '",
"sku": "' . $this->getItemData()['sku'] . '",';

if($this->getItemData()['ean']){
$output .= '
"gtin13":"' . $this->getItemData()['ean'] . '",';};

if($this->getItemData()['mpn']){
$output .= '
"mpn":"' . $this->getItemData()['mpn'] . '",';};

if($this->getItemData()['upc']){
$output .= '
"upc":"' . $this->getItemData()['upc'] . '",';};

if($this->getItemData()['isbn']){
$output .= '
"isbn":"' . $this->getItemData()['isbn'] . '",';};

if($this->getItemData()['jan']){
$output .= '
"jan":"' . $this->getItemData()['jan'] . '",';};

$output .= '
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "?",
"reviewCount": "' . $this->getItemData()['???'] . '"

},
"brand": {
"@type": "Brand",
"name": "' . Factory::getConfig()->get('sitename') . '"
},
"offers": {
"@type": "Offer",
"priceCurrency": "EUR",
"price": "' . $this->getItemData()['price'] . '",
"priceValidUntil": "' . $untilDate . '",
"itemCondition": "' . $this->getItemData()['condition'] . '",
"availability": "' . $this->getItemData()['stock'] . '",
"URL": "' . Uri::current() . '",
"seller": {
"@type": "Organization",
"name": "' . Factory::getConfig()->get('sitename') . '"
}
}
}
</script>
<!-- END Item Rich Snippet -->
';

Re: Felder für die Rich Suchergebnisse | Google Rich Snippets

Posted: 04 Sep 2022, 12:17
by Jan
Hello, I want to create my google rich snippets. Can you guys tell me the four input fields that are shown below?
Hi, can you exactly describe what do you want to achieve? Do you have some current plugin ( https://www.phoca.cz/phocacart-extensio ... ets-plugin ) installed? Or do you create some own plugin?

What are these variables?

"ratingValue": "?",
"bestRating": "?"
"ratingValue": "?",
"reviewCount": "?"

Are they somehow connected to Phoca cart products?

If yes, you can get the results here in this table:

#__phocacart_reviews - so there you can ask with SQL query ratings, reviews, best review and the count.

Jan