Перейти к содержимому


Ошибка Микроразметки < Отсутствует Поле "availability" >


  • Авторизуйтесь для ответа в теме
В этой теме нет ответов

#1 metry

metry

    Активный участник

  • Модераторы
  • 585 сообщений

Отправлено 26 Август 2019 - 13:53



В Редакторе шаблонов-->Товары после :


<div class="price-box" itemprop="offers" itemscope itemtype="https://schema.org/Offer">


добавьте микроразметку:


<meta itemprop="availability" content="{% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE && goods.MAX_REST_VALUE==0 %}https://schema.org/OutOfStock{% ELSE %}https://schema.org/InStock{% ENDIF %}"/>


далее после:


<div class="price-box">


добавьте:


<meta itemprop="availability" content="{% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE && goods.MAX_REST_VALUE==0 %}https://schema.org/OutOfStock{% ELSE %}https://schema.org/InStock{% ENDIF %}"/>


так же в Редакторе шаблонов-->HTML для Новинок после:


                                      <a href="{index_page_new_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_new_goods.NAME}" itemprop="name">{index_page_new_goods.NAME}</a>
                                      <meta itemprop="description" content="{% IF index_page_new_goods.DESCRIPTION_SHORT %}{index_page_new_goods.DESCRIPTION_SHORT}{% ELSE %}Описание отсутствует{% ENDIF %}">
                                    </div>
                                    <div class="item-content">
                                      <div class="item-price">
                                        <div class="price-box" itemprop="offers" itemscope itemtype="https://schema.org/Offer">


добавьте микроразметку:


<meta itemprop="availability" content="{% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE && index_page_new_goods.MAX_REST_VALUE==0 %}https://schema.org/OutOfStock{% ELSE %}https://schema.org/InStock{% ENDIF %}"/>


для Хитов после:


                                      <a href="{index_page_favorites_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_favorites_goods.NAME}" itemprop="name">{index_page_favorites_goods.NAME}</a>
                                      <meta itemprop="description" content="{% IF index_page_favorites_goods.DESCRIPTION_SHORT %}{index_page_favorites_goods.DESCRIPTION_SHORT}{% ELSE %}Описание отсутствует{% ENDIF %}">
                                    </div>
                                    <div class="item-content">
                                      <div class="item-price">
                                        <div class="price-box" itemprop="offers" itemscope itemtype="https://schema.org/Offer">


добавьте:


<meta itemprop="availability" content="{% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE && index_page_favorites_goods.MAX_REST_VALUE==0  %}https://schema.org/OutOfStock{% ELSE %}https://schema.org/InStock{%ENDIF %}" />


для товаров на Главной после:


                                      <a href="{index_page_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_goods.NAME}" itemprop="name">{index_page_goods.NAME}</a>
                                      <meta itemprop="description" content="{% IF index_page_goods.DESCRIPTION_SHORT %}{index_page_goods.DESCRIPTION_SHORT}{% ELSE %}Описание отсутствует{% ENDIF %}">
                                    </div>
                                    <div class="item-content">
                                      <div class="item-price">
                                        <div class="price-box" itemprop="offers" itemscope itemtype="https://schema.org/Offer">


добавьте:


<meta itemprop="availability" content="{% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE && index_page_goods.MAX_REST_VALUE==0 %}https://schema.org/OutOfStock{% ELSE %}https://schema.org/InStock{% ENDIF %}" />





Количество пользователей, читающих эту тему: 0

0 пользователей, 0 гостей, 0 анонимных