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 -->
';
Felder für die Rich Suchergebnisse | Google Rich Snippets
-
- Phoca Newbie
- Posts: 1
- Joined: 01 Sep 2022, 19:36
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Felder für die Rich Suchergebnisse | Google Rich Snippets
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?Hello, I want to create my google rich snippets. Can you guys tell me the four input fields that are shown below?
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
If you find Phoca extensions useful, please support the project