Данный код в формате Javascript+JSON позволит добавить и поддерживать микроразметку на страницу товара для движка интернет-магазина Shop-Script. Скопируйте данный код в самый конец файла product.html {foreach $product.skus as $min}
{$minmax[] = $min.price}
{/foreach}
{$reviews_count = count($reviews)}
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Product",
"name": "{$product.name|escape}",
"image": "{$img}",
"description": "{$product.summary|escape}",
{if $sku.sku}
"sku": "{$sku.sku|escape}",
{/if}
{if $product.sku_type}
{$default_sku_features = $product.sku_features}
{$product_available = $product.status}
"offers": {
"@type": "AggregateOffer",
"priceCurrency": "{$product.currency}",
"offerCount": "{count($product.skus)}",
"lowPrice": "{min($minmax)}",
"highPrice": "{max($minmax)}",
"offers": [
{foreach $product.skus as $sku}
{
"@type": "Offer",
"url": "{$wa->currentU