Merge pull request #23774 from connorhu/patch-1
fixed availability schema protocol
This commit is contained in:
commit
3cc3565e61
|
@ -256,7 +256,7 @@ class WC_Structured_Data {
|
||||||
|
|
||||||
$markup_offer += array(
|
$markup_offer += array(
|
||||||
'priceCurrency' => $currency,
|
'priceCurrency' => $currency,
|
||||||
'availability' => 'https://schema.org/' . ( $product->is_in_stock() ? 'InStock' : 'OutOfStock' ),
|
'availability' => 'http://schema.org/' . ( $product->is_in_stock() ? 'InStock' : 'OutOfStock' ),
|
||||||
'url' => $permalink,
|
'url' => $permalink,
|
||||||
'seller' => array(
|
'seller' => array(
|
||||||
'@type' => 'Organization',
|
'@type' => 'Organization',
|
||||||
|
|
Loading…
Reference in New Issue