|
34 | 34 | {if !empty($product.cover)}"image" :"{$product.cover.bySize.home_default.url}",{/if} |
35 | 35 | "sku": "{if $product.reference}{$product.reference}{else}{$product.id}{/if}", |
36 | 36 | "mpn": "{if $product.mpn}{$product.mpn}{elseif $product.reference}{$product.reference}{else}{$product.id}{/if}" |
37 | | - {if $product.ean13},"gtin13": "{$product.ean13}" |
38 | | - {elseif $product.upc},"gtin13": "{$product.upc}" |
39 | | - {/if} |
| 37 | + {if $product.ean13},"gtin": "{$product.ean13}"{/if} |
| 38 | + {if $product.upc},"gtin12": "{$product.upc}"{/if} |
40 | 39 | {if isset($product_manufacturer) && $product_manufacturer->name}, |
41 | 40 | "brand": { |
42 | 41 | "@type": "Brand", |
|
67 | 66 | "offers": { |
68 | 67 | "@type": "Offer", |
69 | 68 | "priceCurrency": "{$currency.iso_code}", |
70 | | - "name": "{$product.name|strip_tags:false}", |
71 | 69 | "price": "{$product.price_amount}", |
72 | 70 | "url": "{$product.url}", |
73 | 71 | "priceValidUntil": "{($smarty.now + (int) (60*60*24*15))|date_format:"%Y-%m-%d"}", |
|
78 | 76 | {/foreach} |
79 | 77 | ]{/strip}, |
80 | 78 | {/if} |
81 | | - "sku": "{if $product.reference}{$product.reference}{else}{$product.id}{/if}", |
82 | | - "mpn": "{if $product.mpn}{$product.mpn}{elseif $product.reference}{$product.reference}{else}{$product.id}{/if}", |
83 | | - {if $product.ean13}"gtin13": "{$product.ean13}",{elseif $product.upc}"gtin13": "0{$product.upc}",{/if} |
84 | 79 | {if !empty($product.show_condition) && !empty($product.condition)}"itemCondition": "{$product.condition.schema_url}",{/if} |
85 | 80 | "availability": "{$product.seo_availability}", |
86 | 81 | "seller": { |
|
0 commit comments