Skip to content

Commit

Permalink
STRF-3168 - Fix ItemAvailability microdata schema for product pages (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mjschock authored Mar 5, 2018
1 parent 746f539 commit b2a1989
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Draft
- Fix product options unhiding indexing issue. [#1176](https://github.com/bigcommerce/cornerstone/pull/1176)
- Fix ItemAvailability microdata schema for product pages. [#1174](https://github.com/bigcommerce/cornerstone/pull/1174)

## 1.13.2 (2018-02-28)

Expand Down
3 changes: 2 additions & 1 deletion templates/components/products/price.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
{{/if}}
<span data-product-price-without-tax class="price price--withoutTax">{{price.without_tax.formatted}}</span>
{{#if schema_org}}
<meta itemprop="availability" content="{{product.availability}}">
<meta itemprop="availability" itemtype="http://schema.org/ItemAvailability"
content="http://schema.org/{{#if product.pre_order}}PreOrder{{else if product.out_of_stock}}OutOfStock{{else if product.can_purchase '===' false}}OutOfStock{{else}}InStock{{/if}}">
<meta itemprop="itemCondition" itemtype="http://schema.org/OfferItemCondition" content="http://schema.org/{{product.condition}}Condition">
<div itemprop="priceSpecification" itemscope itemtype="http://schema.org/PriceSpecification">
<meta itemprop="price" content="{{price.without_tax.value}}">
Expand Down

0 comments on commit b2a1989

Please sign in to comment.