2016-12-07 1 views
1

저는 Schema.org 마크 업에 익숙하지 않기 때문에 실제 부동산 마크 업을 위해 다음 코드를 제안했습니다. priceSpecification에 대한 제안을 사용해서는 안됩니다. 나는 지금 잃어버린다. 당신이 Product에 대한 Offer를 추가하려면Schema.org의 Google SDTT에서 오류가 발생했습니다. 제품, 쿠폰 및 가격 지정

{ 
    "@context": "http://schema.org/", 
    "@type": "Product", 
    "name": "Nodorus - Precinct 17", 
    "image": "http://www.setiaalam.com.my/images/products/p17/nodorus-c.jpg", 
    "description": "A distinct modern link residence set amidst award-winning green spans, wetland wonders and multiple amenities. Come home to articulately crafted spaces where architecture and nature's beauty infuse home with fresh chic. Rejoice in this cosy new addition to Setia Alam North.", 
    "additionalType": "Product", 
    "Offer": { 
    "@type": "PriceSpecification", 
    "priceCurrency": "RM", 
    "priceSpecification": { 
     "minPrice": "593000", 
     "maxPrice": "890000" 
    }, 
    "availability": "http://schema.org/InStock", 
    "seller": { 
     "@type": "Organization", 
     "name": "S P Setia" 
    } 
    } 
} 

답변

2

, 당신은 offers property을 사용해야합니다.

{ 
    "@context": "http://schema.org/", 
    "@type": "Product", 
    "Offer": {} 
} 

당신은이를 사용할 수 있습니다 : (Offer는 속성이 아니기 때문에, 이해가되지 않습니다) 그래서 그 대신이의

{ 
    "@context": "http://schema.org/", 
    "@type": "Product", 
    "offers": {} 
} 

offers 값의 유형 PriceSpecification이 아니라 Offer이어야합니다.

PriceSpecificationpriceSpecification 속성을 통해 Offer에 추가 할 수 있습니다.

{ 
    "@context": "http://schema.org/", 
    "@type": "Product", 
    "offers": { 
    "@type": "Offer", 
    "priceSpecification": { 
     "@type": "PriceSpecification" 
    } 
    } 
} 
:

그래서 구조는 다음과 같다 수