Skip to content

Commit

Permalink
STRF-7604 - Fixes itemprop availability meta tag for price including …
Browse files Browse the repository at this point in the history
…tax case in price.html component.
  • Loading branch information
bc-jz committed Nov 22, 2019
1 parent b7732ac commit a164f02
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 a164f02

Please sign in to comment.