{% sw_extends '@Storefront/storefront/component/product/listing.html.twig' %}
{% block product_listing %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{% set count = cutvertFaqs|length %}
{% set num = 1 %}
{% for cutvertFaq in cutvertFaqs %}
{
"@type": "Question",
"name": "{{ cutvertFaq.question }}",
"acceptedAnswer": {
"@type": "Answer",
"text": "{{ cutvertFaq.answer }}"
}
}{% if num < count %},{% endif %}
{% set num = num + 1 %}
{% endfor %}
]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Product",
"image": [
"{{ cutvertImages[0] }}",
"{{ cutvertImages[1] }}",
"{{ cutvertImages[2] }}"
],
"name": "{{ config('core.basicInformation.shopName') }}",
{% if cutvertProductRepo['ratingCount'] > 0 %}
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "{{ cutvertProductRepo['absoluteRating'] }}",
"ratingCount": "{{ cutvertProductRepo['ratingCount'] }}"
},
{% endif %}
"sameAs" : [
"{{ cutvertSeoConfig['facebook'] }}",
"{{ cutvertSeoConfig['twitter'] }}",
"{{ cutvertSeoConfig['instagram'] }}",
"{{ cutvertSeoConfig['youtube'] }}"
],
"offers": {
"@type": "AggregateOffer",
"lowPrice": "{{ cutvertProductRepo['minPrice'] }}",
"priceCurrency": "EUR"
}
}
</script>
<script type="application/ld+json">
{
"@context":"https://schema.org",
"@type":"ItemList",
"itemListElement":[
{% set count = cutvertSeoUrls|length %}
{% set num = 1 %}
{% for url in cutvertSeoUrls %}
{
"@type":"ListItem",
"position":"{{ num }}",
"url": "{{ url['url'] }}",
"name":"{{ url['name'] }}"
}{% if num < count %},{% endif %}
{% set num = num + 1 %}
{% endfor %}
]
}
</script>
{{ parent() }}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"image": ["{{ theme_config('sw-logo-tablet') |sw_encode_url }}"],
"name": "{{ config('core.basicInformation.shopName') }}",
"address": {
"@type": "PostalAddress",
"streetAddress": "{{ cutvertSeoConfig['street'] }}",
"addressLocality": "{{ cutverSeotConfig['houseNumber'] }}",
"addressRegion": "{{ cutvertSeoConfig['state'] }}",
"postalCode": "{{ cutvertSeoConfig['postalCode'] }}",
"addressCountry": "{{ cutvertSeoConfig['country'] }}"
},
"sameAs" : [
"{{ cutvertSeoConfig['facebook'] }}",
"{{ cutvertSeoConfig['twitter'] }}",
"{{ cutvertSeoConfig['instagram'] }}",
"{{ cutvertSeoConfig['youtube'] }}"
],
"url": "{{ cutvertShopURL }}",
"telephone": "{{ cutvertSeoConfig['telnumber'] }}",
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Monday",
"opens": "{{ cutvertSeoConfig['mondayOpen'] }}",
"closes": "{{ cutvertSeoConfig['mondayClose'] }}"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Tuesday",
"opens": "{{ cutvertSeoConfig['tuesdayOpen'] }}",
"closes": "{{ cutvertSeoConfig['tuesdayClose'] }}"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Wednesday",
"opens": "{{ cutvertSeoConfig['wednesdayOpen'] }}",
"closes": "{{ cutvertSeoConfig['wednesdayClose'] }}"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Thursday",
"opens": "{{ cutvertSeoConfig['thursdayOpen'] }}",
"closes": "{{ cutvertSeoConfig['thursdayClose'] }}"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Friday",
"opens": "{{ cutvertSeoConfig['fridayOpen'] }}",
"closes": "{{ cutvertSeoConfig['fridayClose'] }}"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Saturday",
"opens": "{{ cutvertSeoConfig['saturdayOpen'] }}",
"closes": "{{ cutvertSeoConfig['saturdayClose'] }}"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Sunday",
"opens": "{{ cutvertSeoConfig['sundayOpen'] }}",
"closes": "{{ cutvertSeoConfig['sundayClose'] }}"
}
],
"department": [
{
"@type": "Shop",
"image": ["{{ theme_config('sw-logo-tablet') |sw_encode_url }}"],
"name": "{{ config('core.basicInformation.shopName') }}",
"telephone": "{{ cutvertSeoConfig['telnumber'] }}",
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Monday",
"opens": "{{ cutvertSeoConfig['mondayOpen'] }}",
"closes": "{{ cutvertSeoConfig['mondayClose'] }}"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Tuesday",
"opens": "{{ cutvertSeoConfig['tuesdayOpen'] }}",
"closes": "{{ cutvertSeoConfig['tuesdayClose'] }}"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Wednesday",
"opens": "{{ cutvertSeoConfig['wednesdayOpen'] }}",
"closes": "{{ cutvertSeoConfig['wednesdayClose'] }}"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Thursday",
"opens": "{{ cutvertSeoConfig['thursdayOpen'] }}",
"closes": "{{ cutvertSeoConfig['thursdayClose'] }}"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Friday",
"opens": "{{ cutvertSeoConfig['fridayOpen'] }}",
"closes": "{{ cutvertSeoConfig['fridayClose'] }}"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Saturday",
"opens": "{{ cutvertSeoConfig['saturdayOpen'] }}",
"closes": "{{ cutvertSeoConfig['saturdayClose'] }}"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Sunday",
"opens": "{{ cutvertSeoConfig['sundayOpen'] }}",
"closes": "{{ cutvertSeoConfig['sundayClose'] }}"
}
]
}
]
}
</script>
{% endblock %}