product.tpl fixing itemprop availability OutOfStock #13832
Labels
No change required
Resolution: issue closed because expected as is
Old Products Page
Concerns the old product page
Through tool Google Search Console, errors are detected in file: product.tpl
The issue is field not found: itemprop="availability"
According to documentation: https://developers.google.com/search/docs/data-types/product
Field availability is mandatory.
The fix done in line:
PrestaShop/themes/default-bootstrap/product.tpl
Line 262 in 70d12a5
See before changes:
{if $product->quantity > 0}<link itemprop="availability" href="https://schema.org/InStock"/>{/if}
See after changes:
{if $product->quantity > 0}<link itemprop="availability" href="https://schema.org/InStock"/>{else}<link itemprop="availability" href="https://schema.org/OutOfStock"/>{/if}
Take into consideration this was fixed for version 1.6.1.x.
Similar fix might be applicable to other branches.
The text was updated successfully, but these errors were encountered: