diff --git a/templates/_partials/microdata/product-jsonld.tpl b/templates/_partials/microdata/product-jsonld.tpl index 3f5f3253..3cd39ee3 100644 --- a/templates/_partials/microdata/product-jsonld.tpl +++ b/templates/_partials/microdata/product-jsonld.tpl @@ -48,9 +48,8 @@ {if !empty($product.cover)}"image" :"{$product.cover.bySize.home_default.url}",{/if} "sku": "{if $product.reference}{$product.reference}{else}{$product.id}{/if}", "mpn": "{if $product.mpn}{$product.mpn}{elseif $product.reference}{$product.reference}{else}{$product.id}{/if}" - {if $product.ean13},"gtin13": "{$product.ean13}" - {elseif $product.upc},"gtin13": "{$product.upc}" - {/if} + {if $product.ean13},"gtin": "{$product.ean13}"{/if} + {if $product.upc},"gtin12": "{$product.upc}"{/if} {if $product_manufacturer->name OR $shop.name}, "brand": { "@type": "Brand", @@ -76,7 +75,6 @@ "offers": { "@type": "Offer", "priceCurrency": "{$currency.iso_code}", - "name": "{$product.name|strip_tags:false}", "price": "{$product.price_amount}", "url": "{$product.url}", "priceValidUntil": "{($smarty.now + (int) (60*60*24*15))|date_format:"%Y-%m-%d"}", @@ -87,9 +85,6 @@ {/foreach} ]{/strip}, {/if} - "sku": "{if $product.reference}{$product.reference}{else}{$product.id}{/if}", - "mpn": "{if $product.mpn}{$product.mpn}{elseif $product.reference}{$product.reference}{else}{$product.id}{/if}", - {if $product.ean13}"gtin13": "{$product.ean13}",{elseif $product.upc}"gtin13": "0{$product.upc}",{/if} {if $product.condition == 'new'}"itemCondition": "https://schema.org/NewCondition",{/if} {if $product.show_condition > 0} {if $product.condition == 'used'}"itemCondition": "https://schema.org/UsedCondition",{/if}