Jump to content

Google search console - Invalid object type for field "author" - Review area of my site


bnadauld
 Share

Recommended Posts

Google search console is throwing a warning on a number of my pages that included a review. I have an idea of what i need to fix but am unsure on what files of Prestashop that i need to adjust - where i might look on my server to find it for version 1.7?

Can anyone help me please?

code mode.png

affected page example.png

sc.png

sc2.png

 

Edited by bnadauld (see edit history)

Share this post


Link to post
Share on other sites

  • 2 months later...

just add in productcomments.tpl:

itemscope itemtype="https://schema.org/Person"><span itemprop="name">

<strong itemprop="author" itemscope itemtype="https://schema.org/Person"><span itemprop="name">{$comment.customer_name|escape:'html':'UTF-8'}</span>

 

  • Sad 1

Share this post


Link to post
Share on other sites

6 hours ago, odeg said:

just add in productcomments.tpl:

itemscope itemtype="https://schema.org/Person"><span itemprop="name">

<strong itemprop="author" itemscope itemtype="https://schema.org/Person"><span itemprop="name">{$comment.customer_name|escape:'html':'UTF-8'}</span>

 

i have no productcomments.tpl file to modify. its not even in a brand-new version of ps 1.7 latest build. or am i to create a new file?

Edited by bnadauld (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More