Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

dimoonIT

Новичок
  
  • Posts

    3
  • Joined

  • Last visited

dimoonIT's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

1

Reputation

  1. В контроллер: $data['mid'] = HTTPS_SERVER . $_SERVER["REQUEST_URI"]; В twig: {{ mid }}
  2. Настроил под себя <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "BreadcrumbList", "itemListElement": [ {% for key,breadcrumb in breadcrumbs %} {% if key != 0 %} { "@type": "ListItem", "position": {{ key }}, "item": { "@id": "{{ breadcrumb.href }}", "name": "{{ breadcrumb['text']|striptags }}" } {% if loop.last == false %} }, {% else %} } {% endif %} {% endif %} {% endfor %} ] } </script>
  3. Спасипотому что за решение! Рилииет на 3.0.3.6 Немного добавил своего: $date_modified = $product_info['date_modified']; $date_add = $product_info['date_added']; if ($date_modified == "0000-00-00 00:00:00") { $this->response->addHeader('Last-Modified: '. gmdate('D, d M Y H:i:s \G\M\T', strtotime($date_add))); } else { $this->response->addHeader('Last-Modified: '. gmdate('D, d M Y H:i:s \G\M\T', strtotime($date_modified))); }
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.