<meta property="og:type" content="og:product" /><meta property="og:title" content="{{ Product.name }}" />
{% if Product.product_image_inc_main_and_chip[app.request.get('color')] is defined and Product.product_image_inc_main_and_chip[app.request.get('color')]['main_flg'] is not empty %}
{% set Color = Product.product_image_inc_main_and_chip[app.request.get('color')]['main_flg'] %}
<meta property="og:image" content="{{absolute_url(asset(Color.file_name,'save_image'))}}" />
{% else %}
<meta property="og:image" content="{{ url('homepage') }}{{ asset(Product.main_list_image|no_image_product, 'save_image') }}" />
{% endif %}
<meta property="og:description" content="{{BaseInfo.common_description}}{{ Page.description|striptags }}" />
<meta property="og:url" content="{{ product_detail_url(Product,null,{'color':app.request.get('color')}) }}" />
<meta property="product:price:amount" content="{{Product.getSalePriceMin }}"/>
<meta property="product:price:currency" content="{{ eccube_config.currency }}"/>
<meta property="product:product_link" content="{{ app.request.uri }}"/>
<meta property="product:retailer_title" content="{{ Product.name }}"/>
<script type="application/ld+json">
{% set aggregate = get_ukomi_review_aggregate(Product) %}
{% set reviews = get_ukomi_reviews(Product) %}
{
"@context": "https://schema.org/",
"@type": "Product",
"name": "{{Product.name}}",
"image": [
{% if Product.product_image_inc_main_and_chip[app.request.get('color')] is defined and Product.product_image_inc_main_and_chip[app.request.get('color')]['main_flg'] is not empty %}
{% set Color = Product.product_image_inc_main_and_chip[app.request.get('color')]['main_flg'] %}
"{{absolute_url(asset(Color.file_name,'save_image'))}}"
{% else %}
"{{absolute_url(asset(Product.main_list_image|no_image_product, 'save_image'))}}"
{% endif %}
],
"description":"{{ Page.description }}",
"gtin13":{{get_schema_gtin13(Product.ProductClasses)|raw}},
"sku":{{get_schema_sku(Product.ProductClasses)|raw}},
{% if Product.brand is defined and Product.brand is not null %}
"brand":{
    "@type": "Brand",
    "name": "{{Product.brand.name}}"
},
{% endif %}
{% if reviews is defined and reviews is not empty %} 
"review": [
{% for rws in reviews %}
{
    "@type": "Review",
    "reviewRating": {
        "@type": "Rating",
        "ratingValue": "{{rws.score}}"
    },
    "datePublished":"{{rws.created_at}}",
    "author": {
        "@type": "Person",
        "name": "{{rws.name}}"
    },
    "reviewBody": "{{rws.content}}"
}{% if loop.last is same as(false) %},{%- endif -%}
{% endfor %}
],
{% endif %}
{% if aggregate is defined and aggregate is not empty %}
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "{{aggregate.score}}",
"bestRating":"{{aggregate.max_score}}",
"worstRating":"{{aggregate.min_score}}",
"reviewCount": "{{aggregate.count}}"
},
{% endif %}
"offers": {
    "@type": "Offer",
    "url": "{{ product_detail_url(Product,null,{'color':app.request.get('color')}) }}",
    "itemCondition": "https://schema.org/NewCondition",
    "priceCurrency": "{{ eccube_config.currency }}",
    "price": "{{ Product.sale_price_inc_tax_min| number_format(0,'','')}}",
{% if Product.sales_end is not null and Product.sales_end is not empty %} 
    "priceValidUntil": "{{Product.sales_end|date('Y-m-d')}}",
{% endif %}
    "availability": "{{ Product.stock_find ? 'https://schema.org/InStock' : 'https://schema.org/OutOfStock' }}"
},
"isSimilarTo": [
{% for RelatedProduct in Product.RelatedProduct %}{
"@type": "Product",
"name": "{RelatedProduct.product.name}",
"url": "{{ product_detail_url(RelatedProduct.product,null) }}"
},{% endfor %}
]
}
</script>
<PageMap> <DataObject type="thumbnail">
{% for ProductImage in Product.DetailProductImages(selectColorId) %}
{% if loop.first %}
    <Attribute name="src" value="{{app.request.schemeAndHttpHost()}}{{ asset(ProductImage, 'save_image') }}"/>
{% endif %}
{% endfor %}
    <Attribute name="width" value="100"/>
    <Attribute name="height" value="133"/>
</DataObject>
</PageMap>