Projekt

Allgemein

Profil

GX-Abgewiesen #49406

Von Till Tepelmann vor mehr als 6 Jahren aktualisiert

Die Rich Snippets für https://schema.org/LocalBusiness sind unvollständig und müssen ggf. mit Name und Anschrift usw. ergänzt werden. 

 Im Trunsted Shops Widget wird LocalBusiness ausgegeben, aber keine weiteren Informationen, es fehlen z.B. currenciesAccepted, openingHours, paymentAccepted,priceRange Informationen: 

 zusätzlich müsste man dann auch noch Properties from Place angeben wie z.B. address 

 `$logoManager = MainFactory::create('GMLogoManager', 'gm_logo_shop'); 
				 $logoUrl = $logoManager->logo_path . $logoManager->logo_file; 
				 $snippet = '<script type="application/ld+json">'; 
				 $snippet .= '{'; 
				 $snippet .= '    "@context": "http://schema.org/",'; 
				 $snippet .= '    "@type": "LocalBusiness",'; 
				 $snippet .= '    "name": "' . $shopName . '",'; 
				 $snippet .= '    "image": "' . $logoUrl . '",'; 
				 $snippet .= '    "aggregateRating": {'; 
				 $snippet .= '      "@type": "AggregateRating",'; 
				 $snippet .= '      "ratingValue": "' . $result . '",'; 
				 $snippet .= '      "bestRating": "' . $max . '",'; 
				 $snippet .= '      "ratingCount": "' . $count . '"'; 
				 $snippet .= '    }'; 
				 $snippet .= '}'; 
				 $snippet .= '</script>';` 

 Eventuell LocalBusiness einfach entfernen, wenn die weiteren Informationen nicht zur Verfügung stehen.

Zurück