Missing microdata itemprop="price" in Debut

New Member
3 0 1

Hi. I’m running an XML feed to Google Merchant Centre so I can run Shopping Adword campaigns. Everything seems to be fine except I’m getting a missing microdata warning, which I now understand is due to the missing itemprop="price" property, which is an essential attribute of http://schema.org/Offer.

The current schema.org/Offer code in Debut is as below, but as you can see, there is no itemprop="price" property.

I’m afraid I’m a complete novice when it comes to coding but I can see that the product price value is determined by the code. I just don’t know how to integrate the itemprop="price" code into it. I know I need to include <meta itemprop="price" content="????"> but what’s the content and where should it go?

I’d be very grateful if anyone can help me out. Huge thanks in advance!

 

 <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
          <meta itemprop="priceCurrency" content="{{ shop.currency }}">

          <link itemprop="availability" href="http://schema.org/{% if product.available %}InStock{% else %}OutOfStock{% endif %}">

          <p class="product-single__price product-single__price-{{ section.id }}{% unless current_variant.available %} product-price--sold-out{% endunless %}">
            {% if current_variant.compare_at_price > current_variant.price %}
                <span class="visually-hidden">{{ 'products.product.regular_price' | t }}</span>
                <s id="ComparePrice-{{ section.id }}">{{ current_variant.compare_at_price | money }}</s>
                <span class="product-price__price product-price__price-{{ section.id }} product-price__sale product-price__sale--single">
                  <span id="ProductPrice-{{ section.id }}">{{ current_variant.price | money }}</span>
                  <span class="product-price__sale-label product-price__sale-label-{{ section.id }}">{{ 'products.product.on_sale' | t }}</span>
                </span>
            {% else %}
              <span class="visually-hidden">{{ 'products.product.regular_price' | t }}</span>
              <s id="ComparePrice-{{ section.id }}" class="hide">{{ current_variant.compare_at_price | money }}</s>
              <span class="product-price__price product-price__price-{{ section.id }}">
                <span id="ProductPrice-{{ section.id }}">{{ current_variant.price | money }}</span>
                <span class="product-price__sale-label product-price__sale-label-{{ section.id }} hide">{{ 'products.product.on_sale' | t }}</span>
              </span>
            {% endif %}
          </p>

0 Likes