templates/block/razmetka.html.twig line 1

Open in your IDE?
  1. {# Organisation #}
  2. {% if env.site == env.dom and app.request.locale == 'ru' %}
  3. <script type="application/ld+json">
  4. {
  5.   "@context": "https://schema.org",
  6.   "@graph": [
  7.     {
  8.       "@type": "Organization",
  9.       "@id": "https://www.dombusin.com/#org",
  10.       "name": "Дом Бусин",
  11.       "legalName": "Дом Бусин",
  12.       "url": "https://www.dombusin.com/",
  13.       "logo": {
  14.         "@type": "ImageObject",
  15.         "@id": "https://www.dombusin.com/#logo",
  16.         "contentUrl": "https://www.dombusin.com/pic/images/dombusin-logo.png",
  17.         "url": "https://www.dombusin.com/pic/images/dombusin-logo.png",
  18.         "width": 1024,
  19.         "height": 1024,
  20.         "caption": "Лого Дом Бусин",
  21.         "encodingFormat": "image/png"
  22.       },
  23.       "knowsLanguage": ["ru", "uk"],
  24.       "areaServed": "UA",
  25.       "sameAs": [
  26.         "https://www.instagram.com/dombusin.com_official",
  27.         "https://www.facebook.com/dombusin.com.kh"
  28.       ],
  29.       "address": {
  30.         "@type": "PostalAddress",
  31.         "streetAddress": "ул. Академика Павлова, 142б",
  32.         "addressLocality": "Харьков",
  33.         "postalCode": "61000",
  34.         "addressRegion": "Харьковская область",
  35.         "addressCountry": "UA"
  36.       },
  37.       "contactPoint": [
  38.         {
  39.           "@type": "ContactPoint",
  40.           "contactType": "customer support",
  41.           "telephone": "+380800312370",
  42.           "contactOption": "TollFree",
  43.           "availableLanguage": ["ru", "uk"],
  44.           "hoursAvailable": [{
  45.             "@type": "OpeningHoursSpecification",
  46.             "dayOfWeek": [
  47.             "https://schema.org/Monday",
  48.             "https://schema.org/Tuesday",
  49.             "https://schema.org/Wednesday",
  50.             "https://schema.org/Thursday",
  51.             "https://schema.org/Friday"
  52.         ],
  53.           "opens": "09:00",
  54.           "closes": "17:00"
  55.         }]
  56.         },
  57.         {
  58.           "@type": "ContactPoint",
  59.           "contactType": "customer support",
  60.           "telephone": "+380674400560"
  61.         },
  62.         {
  63.           "@type": "ContactPoint",
  64.           "contactType": "customer support (Telegram)",
  65.           "telephone": "+380506989171",
  66.           "name": "Telegram"
  67.         },
  68.         {
  69.           "@type": "ContactPoint",
  70.           "contactType": "customer support (Viber)",
  71.           "telephone": "+380685472889",
  72.           "name": "Viber"
  73.         },
  74.         {
  75.           "@type": "ContactPoint",
  76.           "contactType": "retail",
  77.           "email": "[email protected]"
  78.         },
  79.         {
  80.           "@type": "ContactPoint",
  81.           "contactType": "wholesale",
  82.           "email": "[email protected]"
  83.         }
  84.       ],
  85.       "hasMerchantReturnPolicy": {
  86.         "@type": "MerchantReturnPolicy",
  87.         "name": "Условия возврата и обмена",
  88.         "url": "https://www.dombusin.com/usloviya-vozvrata-i-obmena",
  89.         "applicableCountry": "UA",
  90.         "returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow",
  91.         "merchantReturnDays": 14,
  92.         "returnMethod": "https://schema.org/ReturnByMail",
  93.         "returnFees": "https://schema.org/FreeReturn",
  94.         "refundType": "https://schema.org/FullRefund"
  95.       }
  96.     },
  97.     {
  98.       "@type": "WebSite",
  99.       "@id": "https://www.dombusin.com/#website",
  100.       "url": "https://www.dombusin.com/",
  101.       "name": "Дом Бусин",
  102.       "publisher": { "@id": "https://www.dombusin.com/#org" },
  103.       "inLanguage": "ru",
  104.       "potentialAction": {
  105.           "@type": "SearchAction",
  106.           "target": "https://www.dombusin.com/catalog/search?q={search_term_string}",
  107.           "query-input": "required name=search_term_string"
  108.         }
  109.     }
  110.   ]
  111. }
  112. </script>
  113. {% endif %}
  114. {% if env.site == env.dom and app.request.locale == 'uk' %}
  115. <script type="application/ld+json">
  116. {
  117.   "@context": "https://schema.org",
  118.   "@graph": [
  119.     {
  120.       "@type": "Organization",
  121.       "@id": "https://www.dombusin.com/#org",
  122.       "name": "Дом Бусин",
  123.       "legalName": "Дом Бусин",
  124.       "url": "https://www.dombusin.com/",
  125.       "logo": {
  126.         "@type": "ImageObject",
  127.         "@id": "https://www.dombusin.com/#logo",
  128.         "contentUrl": "https://www.dombusin.com/pic/images/dombusin-logo.png",
  129.         "url": "https://www.dombusin.com/pic/images/dombusin-logo.png",
  130.         "width": 1024,
  131.         "height": 1024,
  132.         "caption": "Лого Дом Бусин",
  133.         "encodingFormat": "image/png"
  134.       },
  135.       "knowsLanguage": ["ru", "uk"],
  136.       "areaServed": "UA",
  137.       "sameAs": [
  138.         "https://www.instagram.com/dombusin.com_official",
  139.         "https://www.facebook.com/dombusin.com.kh"
  140.       ],
  141.       "address": {
  142.         "@type": "PostalAddress",
  143.         "streetAddress": "вул. Академіка Павлова, 142б",
  144.         "addressLocality": "Харків",
  145.         "postalCode": "61000",
  146.         "addressRegion": "Харківська область",
  147.         "addressCountry": "UA"
  148.       },
  149.       "contactPoint": [
  150.         {
  151.           "@type": "ContactPoint",
  152.           "contactType": "customer support",
  153.           "telephone": "+380800312370",
  154.           "contactOption": "TollFree",
  155.           "availableLanguage": ["ru", "uk"],
  156.           "hoursAvailable": [{
  157.             "@type": "OpeningHoursSpecification",
  158.             "dayOfWeek": [
  159.             "https://schema.org/Monday",
  160.             "https://schema.org/Tuesday",
  161.             "https://schema.org/Wednesday",
  162.             "https://schema.org/Thursday",
  163.             "https://schema.org/Friday"
  164.         ],
  165.           "opens": "09:00",
  166.           "closes": "17:00"
  167.         }]
  168.         },
  169.         {
  170.           "@type": "ContactPoint",
  171.           "contactType": "customer support",
  172.           "telephone": "+380674400560"
  173.         },
  174.         {
  175.           "@type": "ContactPoint",
  176.           "contactType": "customer support (Telegram)",
  177.           "telephone": "+380506989171",
  178.           "name": "Telegram"
  179.         },
  180.         {
  181.           "@type": "ContactPoint",
  182.           "contactType": "customer support (Viber)",
  183.           "telephone": "+380685472889",
  184.           "name": "Viber"
  185.         },
  186.         {
  187.           "@type": "ContactPoint",
  188.           "contactType": "retail",
  189.           "email": "[email protected]"
  190.         },
  191.         {
  192.           "@type": "ContactPoint",
  193.           "contactType": "wholesale",
  194.           "email": "[email protected]"
  195.         }
  196.       ],
  197.       "hasMerchantReturnPolicy": {
  198.         "@type": "MerchantReturnPolicy",
  199.         "name": "Умови повернення та обміну",
  200.         "url": "https://www.dombusin.com/uk/usloviya-vozvrata-i-obmena",
  201.         "applicableCountry": "UA",
  202.         "returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow",
  203.         "merchantReturnDays": 14,
  204.         "returnMethod": "https://schema.org/ReturnByMail",
  205.         "returnFees": "https://schema.org/FreeReturn",
  206.         "refundType": "https://schema.org/FullRefund"
  207.       }
  208.     },
  209.     {
  210.       "@type": "WebSite",
  211.       "@id": "https://www.dombusin.com/uk#website",
  212.       "url": "https://www.dombusin.com/uk",
  213.       "name": "Дом Бусин",
  214.       "publisher": { "@id": "https://www.dombusin.com/#org" },
  215.       "inLanguage": "uk",
  216.       "potentialAction": {
  217.           "@type": "SearchAction",
  218.           "target": "https://www.dombusin.com/uk/catalog/search?q={search_term_string}",
  219.           "query-input": "required name=search_term_string"
  220.         }
  221.     }
  222.   ]
  223. }
  224. </script>
  225. {% endif %}
  226. {% if env.site == env.mix and app.request.locale == 'pl' %}
  227. <script type="application/ld+json">
  228. {
  229.   "@context": "https://schema.org",
  230.   "@graph": [
  231.     {
  232.       "@type": "Organization",
  233.       "@id": "https://mixform.pl/#org",
  234.       "name": "Mixform",
  235.       "legalName": "Mixform",
  236.       "url": "https://mixform.pl/",
  237.       "logo": {
  238.         "@type": "ImageObject",
  239.         "@id": "https://mixform.pl/#logo",
  240.         "contentUrl": "https://mixform.pl/pic/images/mixform-logo.png",
  241.         "url": "https://mixform.pl/",
  242.         "width": 1024,
  243.         "height": 1024,
  244.         "caption": "Logo Mixform",
  245.         "encodingFormat": "image/png"
  246.       },
  247.       "sameAs": [
  248.         "https://www.instagram.com/mixform.pl/",
  249.         "https://www.facebook.com/pl.mixform"
  250.       ],
  251.       "email": "[email protected]",
  252.       "telephone": "+48668522718",
  253.       "address": {
  254.         "@type": "PostalAddress",
  255.         "streetAddress": "ul. Czajcza 2",
  256.         "addressLocality": "Wrocław",
  257.         "postalCode": "51-422",
  258.         "addressRegion": "Dolnośląskie",
  259.         "addressCountry": "PL"
  260.       },
  261.       "areaServed": "PL",
  262.       "contactPoint": [
  263.         {
  264.           "@type": "ContactPoint",
  265.           "contactType": "customer support",
  266.           "email": "[email protected]",
  267.           "telephone": "+48668522718",
  268.           "availableLanguage": ["pl","uk"],
  269.           "areaServed": "PL",
  270.           "hoursAvailable": [{
  271.             "@type": "OpeningHoursSpecification",
  272.             "dayOfWeek": [
  273.               "https://schema.org/Monday",
  274.               "https://schema.org/Tuesday",
  275.               "https://schema.org/Wednesday",
  276.               "https://schema.org/Thursday",
  277.               "https://schema.org/Friday"
  278.             ],
  279.             "opens": "09:00",
  280.             "closes": "16:00"
  281.           }]
  282.         },
  283.         {
  284.           "@type": "ContactPoint",
  285.           "contactType": "sales",
  286.           "email": "[email protected]",
  287.           "telephone": "+48668522718",
  288.           "availableLanguage": ["pl","uk"],
  289.           "areaServed": "PL",
  290.           "hoursAvailable": [{
  291.             "@type": "OpeningHoursSpecification",
  292.             "dayOfWeek": [
  293.               "https://schema.org/Monday",
  294.               "https://schema.org/Tuesday",
  295.               "https://schema.org/Wednesday",
  296.               "https://schema.org/Thursday",
  297.               "https://schema.org/Friday"
  298.             ],
  299.             "opens": "09:00",
  300.             "closes": "16:00"
  301.           }]
  302.         }
  303.       ],
  304.       "hasMerchantReturnPolicy": {
  305.         "@type": "MerchantReturnPolicy",
  306.         "name": "Polityka zwrotów Mixform",
  307.         "url": "https://mixform.pl/info",
  308.         "applicableCountry": "PL",
  309.         "returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow",
  310.         "merchantReturnDays": 14,
  311.         "returnMethod": "https://schema.org/ReturnByMail",
  312.         "returnFees": "https://schema.org/FreeReturn",
  313.         "refundType": "https://schema.org/FullRefund"
  314.       }
  315.     },
  316.     {
  317.       "@type": "WebSite",
  318.       "@id": "https://mixform.pl/#website",
  319.       "url": "https://mixform.pl/",
  320.       "name": "Mixform",
  321.       "publisher": { "@id": "https://mixform.pl/#org" },
  322.       "inLanguage": ["pl","uk"],
  323.       "potentialAction": [
  324.         {
  325.           "@type": "SearchAction",
  326.           "target": "https://mixform.pl/catalog/search?q={search_term_string}",
  327.           "query-input": "required name=search_term_string"
  328.         },
  329.         {
  330.           "@type": "SearchAction",
  331.           "target": "https://mixform.pl/uk/catalog/search?q={search_term_string}",
  332.           "query-input": "required name=search_term_string"
  333.         }
  334.       ]
  335.     }
  336.   ]
  337. }
  338. </script>
  339. {% endif %}
  340. {% if env.site == env.mix and app.request.locale == 'uk' %}
  341. <script type="application/ld+json">
  342. {
  343.   "@context": "https://schema.org",
  344.   "@graph": [
  345.     {
  346.       "@type": "Organization",
  347.       "@id": "https://mixform.pl/#org",
  348.       "name": "Mixform",
  349.       "legalName": "Mixform",
  350.       "url": "https://mixform.pl/",
  351.       "logo": {
  352.         "@type": "ImageObject",
  353.         "@id": "https://mixform.pl/#logo",
  354.         "contentUrl": "https://mixform.pl/pic/images/mixform-logo.png",
  355.         "url": "https://mixform.pl/",
  356.         "width": 1024,
  357.         "height": 1024,
  358.         "caption": "Логотип Mixform",
  359.         "encodingFormat": "image/png"
  360.       },
  361.       "sameAs": [
  362.         "https://www.instagram.com/mixform.pl/",
  363.         "https://www.facebook.com/pl.mixform"
  364.       ],
  365.       "email": "[email protected]",
  366.       "telephone": "+48668522718",
  367.       "address": {
  368.         "@type": "PostalAddress",
  369.         "streetAddress": "вул. Чайча 2",
  370.         "addressLocality": "Вроцлав",
  371.         "postalCode": "51-422",
  372.         "addressRegion": "Нижньосілезьке воєводство",
  373.         "addressCountry": "PL"
  374.       },
  375.       "areaServed": "PL",
  376.       "contactPoint": [
  377.         {
  378.           "@type": "ContactPoint",
  379.           "contactType": "customer support",
  380.           "email": "[email protected]",
  381.           "telephone": "+48668522718",
  382.           "availableLanguage": ["pl","uk"],
  383.           "areaServed": "PL",
  384.           "hoursAvailable": [{
  385.             "@type": "OpeningHoursSpecification",
  386.             "dayOfWeek": [
  387.               "https://schema.org/Monday",
  388.               "https://schema.org/Tuesday",
  389.               "https://schema.org/Wednesday",
  390.               "https://schema.org/Thursday",
  391.               "https://schema.org/Friday"
  392.             ],
  393.             "opens": "09:00",
  394.             "closes": "16:00"
  395.           }]
  396.         },
  397.         {
  398.           "@type": "ContactPoint",
  399.           "contactType": "sales",
  400.           "email": "[email protected]",
  401.           "telephone": "+48668522718",
  402.           "availableLanguage": ["pl","uk"],
  403.           "areaServed": "PL",
  404.           "hoursAvailable": [{
  405.             "@type": "OpeningHoursSpecification",
  406.             "dayOfWeek": [
  407.               "https://schema.org/Monday",
  408.               "https://schema.org/Tuesday",
  409.               "https://schema.org/Wednesday",
  410.               "https://schema.org/Thursday",
  411.               "https://schema.org/Friday"
  412.             ],
  413.             "opens": "09:00",
  414.             "closes": "16:00"
  415.           }]
  416.         }
  417.       ],
  418.       "hasMerchantReturnPolicy": {
  419.         "@type": "MerchantReturnPolicy",
  420.         "name": "Політика повернення Mixform",
  421.         "url": "https://mixform.pl/uk/info",
  422.         "applicableCountry": "PL",
  423.         "returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow",
  424.         "merchantReturnDays": 14,
  425.         "returnMethod": "https://schema.org/ReturnByMail",
  426.         "returnFees": "https://schema.org/FreeReturn",
  427.         "refundType": "https://schema.org/FullRefund"
  428.       }
  429.     },
  430.     {
  431.       "@type": "WebSite",
  432.       "@id": "https://mixform.pl/#website",
  433.       "url": "https://mixform.pl/",
  434.       "name": "Mixform",
  435.       "publisher": { "@id": "https://mixform.pl/#org" },
  436.       "inLanguage": ["pl","uk"],
  437.       "potentialAction": [
  438.         {
  439.           "@type": "SearchAction",
  440.           "target": "https://mixform.pl/catalog/search?q={search_term_string}",
  441.           "query-input": "required name=search_term_string"
  442.         },
  443.         {
  444.           "@type": "SearchAction",
  445.           "target": "https://mixform.pl/uk/catalog/search?q={search_term_string}",
  446.           "query-input": "required name=search_term_string"
  447.         }
  448.       ]
  449.     }
  450.   ]
  451. }
  452. </script>
  453. {% endif %}
  454. {% if env.site == env.mix and app.request.locale == 'uk' %}
  455. <script type="application/ld+json">
  456. {
  457.   "@context": "https://schema.org",
  458.   "@graph": [
  459.     {
  460.       "@type": "Organization",
  461.       "@id": "https://mixform.pl/#org",
  462.       "name": "Mixform",
  463.       "legalName": "Mixform",
  464.       "url": "https://mixform.pl/",
  465.       "logo": {
  466.         "@type": "ImageObject",
  467.         "@id": "https://mixform.pl/#logo",
  468.         "contentUrl": "https://mixform.pl/pic/images/mixform-logo.png",
  469.         "url": "https://mixform.pl/",
  470.         "width": 1024,
  471.         "height": 1024,
  472.         "caption": "Логотип Mixform",
  473.         "encodingFormat": "image/png"
  474.       },
  475.       "sameAs": [
  476.         "https://www.instagram.com/mixform.pl/",
  477.         "https://www.facebook.com/pl.mixform"
  478.       ],
  479.       "email": "[email protected]",
  480.       "telephone": "+48668522718",
  481.       "address": {
  482.         "@type": "PostalAddress",
  483.         "streetAddress": "вул. Чайча 2",
  484.         "addressLocality": "Вроцлав",
  485.         "postalCode": "51-422",
  486.         "addressRegion": "Нижньосілезьке воєводство",
  487.         "addressCountry": "PL"
  488.       },
  489.       "areaServed": "PL",
  490.       "contactPoint": [
  491.         {
  492.           "@type": "ContactPoint",
  493.           "contactType": "customer support",
  494.           "email": "[email protected]",
  495.           "telephone": "+48668522718",
  496.           "availableLanguage": ["pl","uk"],
  497.           "areaServed": "PL",
  498.           "hoursAvailable": [{
  499.             "@type": "OpeningHoursSpecification",
  500.             "dayOfWeek": [
  501.               "https://schema.org/Monday",
  502.               "https://schema.org/Tuesday",
  503.               "https://schema.org/Wednesday",
  504.               "https://schema.org/Thursday",
  505.               "https://schema.org/Friday"
  506.             ],
  507.             "opens": "09:00",
  508.             "closes": "16:00"
  509.           }]
  510.         },
  511.         {
  512.           "@type": "ContactPoint",
  513.           "contactType": "sales",
  514.           "email": "[email protected]",
  515.           "telephone": "+48668522718",
  516.           "availableLanguage": ["pl","uk"],
  517.           "areaServed": "PL",
  518.           "hoursAvailable": [{
  519.             "@type": "OpeningHoursSpecification",
  520.             "dayOfWeek": [
  521.               "https://schema.org/Monday",
  522.               "https://schema.org/Tuesday",
  523.               "https://schema.org/Wednesday",
  524.               "https://schema.org/Thursday",
  525.               "https://schema.org/Friday"
  526.             ],
  527.             "opens": "09:00",
  528.             "closes": "16:00"
  529.           }]
  530.         }
  531.       ],
  532.       "hasMerchantReturnPolicy": {
  533.         "@type": "MerchantReturnPolicy",
  534.         "name": "Політика повернення Mixform",
  535.         "url": "https://mixform.pl/uk/info",
  536.         "applicableCountry": "PL",
  537.         "returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow",
  538.         "merchantReturnDays": 14,
  539.         "returnMethod": "https://schema.org/ReturnByMail",
  540.         "returnFees": "https://schema.org/FreeReturn",
  541.         "refundType": "https://schema.org/FullRefund"
  542.       }
  543.     },
  544.     {
  545.       "@type": "WebSite",
  546.       "@id": "https://mixform.pl/#website",
  547.       "url": "https://mixform.pl/",
  548.       "name": "Mixform",
  549.       "publisher": { "@id": "https://mixform.pl/#org" },
  550.       "inLanguage": ["pl","uk"],
  551.       "potentialAction": [
  552.         {
  553.           "@type": "SearchAction",
  554.           "target": "https://mixform.pl/catalog/search?q={search_term_string}",
  555.           "query-input": "required name=search_term_string"
  556.         },
  557.         {
  558.           "@type": "SearchAction",
  559.           "target": "https://mixform.pl/uk/catalog/search?q={search_term_string}",
  560.           "query-input": "required name=search_term_string"
  561.         }
  562.       ]
  563.     }
  564.   ]
  565. }
  566. </script>
  567. {% endif %}
  568. {# BreadcrumbList #}
  569. {% if args[0] != '/' and args[0] != '' and bc|length %}
  570. <script type="application/ld+json">
  571.   {
  572.     "@context": "https://schema.org",
  573.     "@type": "BreadcrumbList",
  574.     "itemListElement": [
  575.       {% set i = 0 %}
  576.       {% set ll = '' %}
  577.       {% for l, t in bc %}
  578.       {% if i == 0 %}
  579.         {% set ll = l %}
  580.       {% endif %}
  581.       {
  582.         "@type": "ListItem",
  583.         "position": {% set i = i + 1 %}{{ i }},
  584.         "name": "{{ t|replace({'"': ''})|striptags }}",
  585.         "item": "{{ env.host_static ~ l }}"
  586.         
  587.       }{% if not loop.last %},{% endif %}      
  588.       {% endfor %}
  589.       {% if prod %}
  590.       ,{
  591.         "@type": "ListItem",
  592.         "position": {% set i = i + 1 %}{{ i }},
  593.         "name": "{{ prod.name|replace({'"': ''})|striptags }}"
  594.         {% if not loop.last %},
  595.         "item": "{{ env.host_static ~ ll ~ 'catalog/prod-' ~ prod.id }}"
  596.         {% endif %}
  597.         
  598.       }
  599.       {% endif %}
  600.     ]
  601.   }
  602. </script>
  603. {% endif %}
  604. {# ProdList #}
  605. {% if args[0] == 'catalog' and cat and prod is empty %}
  606.   {% if (paginator.cnt - paginator.start) < paginator.results %}
  607.     {% set numberOfItems = paginator.cnt - paginator.start %}
  608.   {% elseif paginator.results < paginator.cnt %}
  609.     {% set numberOfItems = paginator.results %}  
  610.   {% else %}
  611.     {% set numberOfItems = paginator.cnt - paginator.start %}
  612.   {% endif %}
  613. <script type="application/ld+json">
  614. {
  615.   "@context":"https://schema.org",
  616.   "@type":"CollectionPage",
  617.   "name":"{{ cat.name }}",
  618.   {% if paginator.start %}
  619.   "url":"https://{{ app.request.host }}/catalog/cat-{{ cat.id }}-{{ cat.intname }}?start={{ paginator.start }}",
  620.   {% else %}
  621.   "url":"https://{{ app.request.host }}/catalog/cat-{{ cat.id }}-{{ cat.intname }}",
  622.   {% endif %}
  623.   
  624.   "mainEntity":{
  625.     "@type":"ItemList",
  626.     "numberOfItems":{{ numberOfItems }},
  627.     "itemListElement":[
  628.     {% set i = 0 %}
  629.     {% for item in prods %}
  630.       {
  631.         "@type": "ListItem",
  632.         "position": {% set i = i + 1 %}{{ i + paginator.start }},
  633.         "name": "{{ item.name }}",
  634.         "url": "https://{{ app.request.host }}{{ dump('/catalog/prod-' ~ item.id) }}"        
  635.       }
  636.       {% if not loop.last %},{% endif %}
  637.     {% endfor %}      
  638.     ]
  639.   }
  640. }
  641. </script>
  642. {% endif %}
  643. {# ProdCont #}
  644. {% if args[0] == 'catalog' and prod %}
  645. {% set bc_cat = '' %}
  646. {% for l, t in bc %}
  647.   {% if not loop.first %}
  648.     {% set bc_cat = bc_cat ~ t %}
  649.     {% endif %}      
  650.   {% if not loop.last and not loop.first %}
  651.     {% set bc_cat = bc_cat ~ ' > ' %}
  652.   {% endif %}
  653. {% endfor %}
  654. <script type="application/ld+json">
  655. {
  656.     "@context": "https://schema.org",    
  657.     "@type": "Product",
  658.     "name": "{{ prod.name }}",
  659.     "description": "{{ prod.cont }}",
  660.     "sku": "{{ prod.art }}",
  661.     "image": [
  662.       { "@type": "ImageObject", "contentUrl": "{{ env.host_static ~ '/pic/prod-l/' ~ prod.id ~ '.jpg' }}", "width": 1200, "height": 1200 }
  663. {% for photo in photos %}
  664.       ,{ "@type": "ImageObject", "contentUrl": "{{ env.host_static ~ '/pic/photo/' ~ photo.id ~ '.jpg' }}", "width": 700, "height": 700 }
  665. {% endfor %}
  666.     ],
  667.     "category": "{{ bc_cat|raw }}",
  668.     "offers": {
  669.       "@type": "Offer",
  670.       "url": "https://{{ app.request.getHost() }}{% if app.request.locale != default_lang %}/{{ app.request.locale }}{% endif %}/catalog/prod-{{ prod.id }}",
  671.       "priceCurrency": "{{ sett.get('valuta_code')|raw }}",
  672.       "price": "{{ (prod.price * (100 - prod.skidka) / 100)|fmtmoney2 }}",
  673.       "availability": "https://schema.org/{% if prod.num > 0 or prod.num2 > 0 or prod.num3 > 0 %}InStock{% else %}OutOfStock{% endif %}",
  674.       "itemCondition": "https://schema.org/NewCondition",
  675.       "seller": { "@type": "Organization", "@id": "https://{{ app.request.host }}/#org" }
  676.     }    
  677.   }
  678. </script>
  679.   
  680.   {# "material": "Аметист",
  681.   "color": "Фіолетовий",
  682.   "size": "6~7×5~6 мм",
  683.   "countryOfOrigin": { "@type": "Country", "name": "Бразилія" },
  684.   "additionalProperty": [
  685.     { "@type": "PropertyValue", "name": "номер кольору", "value": "02 Amethyst" },
  686.     { "@type": "PropertyValue", "name": "Форма отвору", "value": "Наскрізний" },
  687.     { "@type": "PropertyValue", "name": "Застосування", "value": "Намистини" },
  688.     { "@type": "PropertyValue", "name": "Огранювання", "value": "Гранені" },
  689.     { "@type": "PropertyValue", "name": "Форма", "value": "Круглі" },
  690.     { "@type": "PropertyValue", "name": "Забарвлення", "value": "Незабарвлені" }
  691.   ],
  692.   "image": [
  693.     { "@type": "ImageObject", "contentUrl": "https://mixform.pl/pic/prod-l/81956.jpg", "width": 1200, "height": 1200 },
  694.     { "@type": "ImageObject", "contentUrl": "https://mixform.pl/pic/photo/198510.jpg", "width": 700, "height": 700 },
  695.     { "@type": "ImageObject", "contentUrl": "https://mixform.pl/pic/photo/198511.jpg", "width": 700, "height": 700 },
  696.     { "@type": "ImageObject", "contentUrl": "https://mixform.pl/pic/photo/198509.jpg", "width": 700, "height": 700 }
  697.   ],
  698.   "offers": {
  699.     "@type": "Offer",
  700.     "url": "https://mixform.pl/uk/catalog/prod-81956",
  701.     "priceCurrency": "PLN",
  702.     "price": "67.35",
  703.     "availability": "https://schema.org/InStock",
  704.     "itemCondition": "https://schema.org/NewCondition",
  705.     "seller": { "@type": "Organization", "@id": "https://mixform.pl/#org" },
  706.    "inventoryLevel": { "@type": "QuantitativeValue", "value": 12 }
  707.   } #}
  708. {% endif %}