Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

product.tpl fixing itemprop availability OutOfStock #13832

Closed
jferran95 opened this issue May 17, 2019 · 2 comments
Closed

product.tpl fixing itemprop availability OutOfStock #13832

jferran95 opened this issue May 17, 2019 · 2 comments
Labels
No change required Resolution: issue closed because expected as is Old Products Page Concerns the old product page

Comments

@jferran95
Copy link

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:

{if $product->quantity > 0}<link itemprop="availability" href="https://schema.org/InStock"/>{/if}

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.

@khouloudbelguith
Copy link
Contributor

Hi @jferran95,

With PS1.7, we use another theme by default is classic.
According to the Google Search Console, we manage to reproduce another issue reported in this ticket: #12687
Thanks!

@khouloudbelguith khouloudbelguith added NMI Status: issue needs more information Old Products Page Concerns the old product page labels May 17, 2019
@khouloudbelguith
Copy link
Contributor

Hi @jferran95,

Since we had no news from you for more than 30 days, I'll close this ticket. Feel free to open another one if you can give specific details.

Thanks!

@khouloudbelguith khouloudbelguith added No change required Resolution: issue closed because expected as is and removed NMI Status: issue needs more information labels Jun 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No change required Resolution: issue closed because expected as is Old Products Page Concerns the old product page
Projects
None yet
Development

No branches or pull requests

2 participants