"@type": "Person",
"name": "{{ $staff['name'] }}",
"jobTitle": "{{ $staff['role'] }}",
- "image": "{{ url('/') . $page->getImageURLByCollection($staff['photo']) }}",
+ "image": "{{ url('/') . $page->getImageURLByCollection($staff['photo']) }}"
}
</script>
@endforeach
"@type": "Organization",
"url": "{{ url('/') }}",
"address": "{{ preg_replace("/\r|\n/", " ", $global->address) }}",
- "telephone": "{{ $global->phone }}",
+ "telephone": "{{ $global->phone }}"
}
</script>
<h3><a class="text-navy" href="{{ $product->getEntity()->URL }}">{{ $product->get('reference') }}</a>
</h3>
<div class="product-highlights text-sm">
- {{$product->get('name')}}
+ {{ $product->get('name') }}
</div>
<p class="mt-4">
<a href="{{ $product->getEntity()->URL }}">
</a>
</p>
</div>
+
+ @include('partials.product-schema')
+
</div>
--- /dev/null
+<script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "Product",
+ "name": "{{ $product->get('name') }}",
+ "sku": "{{ $product->get('reference') }}",
+ "manufacturer": {
+ "@type": "Organization",
+ "name": "{{ $product->get('supplier') }}"
+ },
+ "mpn": "{{ $product->get('supplier_reference') }}",
+ "description": "{{ preg_replace("/\r|\n/", " ", $product->get('descriptions')) }}",
+ "image": "{{ url($product->getEntity()->image) }}",
+ "url": "{{ $product->getEntity()->URL }}"
+ }
+</script>