Skip to content

Commit

Permalink
Merge pull request #1601 from bc-jz/STRF-7604
Browse files Browse the repository at this point in the history
STRF-7604 - Fix remaining itemprop availability tag for pricing
  • Loading branch information
bc-jz authored Nov 25, 2019
2 parents b7732ac + a164f02 commit 0a4f0b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/components/products/price.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
</span>
<span data-product-price-with-tax class="price price--withTax">{{price.with_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">
<meta itemprop="priceCurrency" content="{{currency_selector.active_currency_code}}">
<meta itemprop="url" content="{{product.url}}">
Expand Down

0 comments on commit 0a4f0b0

Please sign in to comment.