getdatakick / revws

PrestaShop / ThirtyBees Product Reviews module
https://store.getdatakick.com/en/revws-free?utm_source=github&utm_medium=web&utm_campaign=github
21 stars 9 forks source link

missing itemRiviewed field #157

Closed Fred64640 closed 2 years ago

Fred64640 commented 2 years ago

Hello, if I activate the Rich Snippets I have an error in the google console search for "missing itemRiviewed field" and I don't know why. Capture d’écran 2021-11-29 202138 Thanks Frédéric

getdatakick commented 2 years ago

This is bug in your theme, not related to revws module

carrinhos3b commented 5 months ago

Hello, if I activate the Rich Snippets I have an error in the google console search for "missing itemRiviewed field" and I don't know why. Capture d’écran 2021-11-29 202138 Thanks Frédéric

Hello, I have this issue too. Can you tell me how do you solved it? Thank you very much

Fred64640 commented 5 months ago

Hello, to this day it is not completely resolved I have never managed to correctly activate the richh snippsets. A priori it is a theme problem I think that the option works well on a default theme but not on a custom theme although I have tried everything.

Le lun. 11 mars 2024 à 15:52, carrinhos3b @.***> a écrit :

Hello, if I activate the Rich Snippets I have an error in the google console search for "missing itemRiviewed field" and I don't know why. [image: Capture d’écran 2021-11-29 202138] https://user-images.githubusercontent.com/92171844/143929727-da0c4b16-1efa-4e5b-97e0-a01f1375de7b.jpg Thanks Frédéric

Hello, I have this issue too. Can you tell me how do you solved it? Thank you very much

— Reply to this email directly, view it on GitHub https://github.com/getdatakick/revws/issues/157#issuecomment-1988629344, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV7G4RCOZQZT2STZUWKIFPTYXXAK3AVCNFSM5I75KR32U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJYHA3DEOJTGQ2A . You are receiving this because you authored the thread.Message ID: @.***>

--

carrinhos3b commented 5 months ago

I have the classic theme, and the same problem... Thank you

getdatakick commented 5 months ago

Again, this is not an issue with the module. It's the issue with the theme itself.

The generated HTML code of the product page looks like this:

<div itemscope="" itemtype="https://schema.org/Product">
    <h1 itemprop="name">Product name</h1>
    <span itemprop="price">$100</div>
    <div class="revws-section">
        <div class="review" itemprop="review" itemscope="" itemtype="http://schema.org/Review">
            <span itemprop="reviewRating" itemscope="" itemtype="http://schema.org/Rating">4</span>
        </div>
   </div>
</div>

The theme is responsible to emit metadata about product itself (itemtype="https://schema.org/Product"), revws module is responsible for emitting metadata about review (itemtype="http://schema.org/Review")

If the review <div itemtype="http://schema.org/Review"> is inside product <div itemtype="https://schema.org/Product">, the review will be associated with product.

You will get the missing itemReviewed error if

1) your theme does not emit metadata about product 2) your theme placed reviews section "outside" of <div itemtype="https://schema.org/Product"> scope

Neither of that is issue with revws module.

carrinhos3b commented 5 months ago

I never said the problem is of the revws module... isn't that what's in cause. The module is amazing! But the problem exists to many people and I'm only searching what to do to correct it (a explanation for newbies... where and what exactly to modify in the theme to correct the problem). Thank you all