How to include "itemCondition" and "logo" schema tags in the schema.org product snippets?

StackOverflow https://stackoverflow.com/questions/19643218

  •  01-07-2022
  •  | 
  •  

سؤال

I'm trying to add schema.org snippets to my products page. My client requested me to display following schema.org tags in the products single page

1) itemCondition

2) logo (display only the brand image URL)

Schema.org gives only the tags description for each tags but haven't mentioned how it's should to be implement for most tags. Currently my snippet display as follows

<div itemscope itemtype="http://schema.org/Product">
    <img itemprop="image" src="/uploads/pen102-a13-olv_1.jpg" />
    <span itemprop="name">BOWERBRIDGE INSULATED JKT</span>


    <div itemprop="offers" itemscope itemtype="http://schema.org/AggregateOffer">
      <span itemprop="lowPrice">$400</span>
        to <span itemprop="highPrice">$600</span>
        from <span itemprop="offerCount">20</span> sellers
    </div>
</div>

Could anyone please let me know how can I include the my client required tags to above snippet.

My client required following schema.org tags.

1) itemCondition

2) logo (display only the brand image URL)

EDIT

<div itemscope itemtype="http://schema.org/Product">
    <meta itemprop='logo' content='http://rstest.mydomain.com/images/userfiles/logos/stone-island.png'/>

    <span itemprop='itemCondition'><br />
        • Removable arm badge logo<br />
        • Pull over hoddy<br />
        • Panel pocket<br />
        • Regular fit<br />
        • Zip side pockets<br />
        • Long sleeve<br />
        • 100% Cotton<br />
        • 40 Degree wash<br />
        <br />
        591565220<br />
        <br />
        View our full range of <a href="http://www.mydomain.com/mens/hoodies/" target="_self">Mens Hoodies</a>
    </span>
</div>

Audience code

<div itemscope itemtype="http://schema.org/Product">
  <span itemprop="audience" itemscope itemtype="http://schema.org/PeopleAudience">
    <meta itemprop="gender" content="male"/>
  </span>
</div>

Error: Page contains property "gender" which is not part of the schema.

هل كانت مفيدة؟

المحلول

For logo: Instead of the meta element you should use the link element:

<link itemprop="logo" href="http://rstest.mydomain.com/images/userfiles/logos/stone-island.png" />

For itemCondition: You should not use br elements here. Use a ul for the features, div for the article number, and p for the "View our full range …".

For audience: PeopleAudience doesn’t support the gender property (it’s for People only). You probably mean the suggestedGender property.

نصائح أخرى

You can use Structured Data Helper to do the tagging for you (at least for logo):

https://www.google.com/webmasters/markup-helper/u/0/

If you play around with other properties similar to itemCondition, you can get idea of how the markup should look like.

This worked for me:

<span itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
  <meta itemprop="name" content="http://example.com"/>
  <meta itemprop="url"  content="http://example.com/myurl"/>
  <div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
    <meta itemprop="url" content="http://example.com/logo.png"/>
  </div>
</span>
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top