• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 04.09.22, 12:18
  • Opened by: Eric Notarianni
  • Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

Ticket #23722 - just a little problem in the google console for indexing

hello Fred,
a little problem from google it seems in the field type of section brand needs not the type “thing” but

“offers”, “review”, ou “aggregateRating” see the exemple from google console please see how to correct this

error
VTO3211D-P2 - DAHUA - Platine vidéo IP - 2MP
2 problèmes critiques

Type d’objet non valide pour le champ “brand” Il faut indiquer “offers”, “review”, ou “aggregateRating” type
Product
name
VTO3211D-P2 - DAHUA - Platine vidéo IP - 2MP
description
VTO3211D-P2 - DAHUA - Platine vidéo IP - 2MP. La vidéoprotection et la sécurité aux meilleurs prix sur boutique.idms.fr
category
Portiers vidéo IP DAHUA
image
https://boutique.idms.fr/4146-home_default/vto3211d-p2.jpg sku
VTO3211D-P2
mpn
VTO3211D-P2
brand
type
Thing
name
Dahua
weight
type
QuantitativeValue
value
1.000000
unitCode
kg

Comments

Fred 04 Sep 2022, 19:43

Hi, Eric.
Could you please give me a link to a page where I can see the issue?

Eric Notarianni 05 Sep 2022, 09:12

in this link but i think all are like this, for differents brands, the @type for brands there is
is it possible to change all the @type for all brands , please

“brand”: {

    "@type": "Thing",
    "name": "Dahua"
  }
Fred 05 Sep 2022, 20:36

All that “microdata” are collected in the file /themes/classic/templates/_partials/microdata/product-jsonld.tpl and written by Prestashop developers.
We can try to report the issue to prestashop developers here https://github.com/prestashop

Eric Notarianni 07 Sep 2022, 23:16

yes, can you report to prestashop developers to have a correction for that , please Fred, it will good for all people

Fred 07 Sep 2022, 23:18

Need to clarify.
Do you want to change “@type“: “Thing” to “@type“: “Brand”?

Eric Notarianni 09 Sep 2022, 15:57

hello fred no i thing that google wants in this of the brand
“offers”, “review”, ou “aggregateRating”
i think it will be good for me to have “offers” in this field type of the section brand
it is that google says
Type d’objet non valide pour le champ “brand” Il faut indiquer “offers”, “review”, ou “aggregateRating” type

thanks to let me know how to do that please

Eric Notarianni 09 Sep 2022, 16:05

also please look in your google console to see what google says , i think you must have the same problem, normally with your exemple website

Eric Notarianni 09 Sep 2022, 16:19

it is very not clear with google after i see that about products on google central
https://developers.google.com/search/docs/advanced/structured-data/product

i see this exemple

<title>Executive Anvil</title>

  <script type="application/ld+json">
  {
    "@context": "https://schema.org/",
    "@type": "Product",
    "name": "Executive Anvil",
    "image": [
      "https://example.com/photos/1x1/photo.jpg",
      "https://example.com/photos/4x3/photo.jpg",
      "https://example.com/photos/16x9/photo.jpg"
     ],
    "description": "Sleeker than ACME's Classic Anvil, the Executive Anvil is perfect for the business traveler looking for something to drop from a height.",
    "sku": "0446310786",
    "mpn": "925872",
    "brand": {
      "@type": "Brand",
      "name": "ACME"
    },
    "review": {
      "@type": "Review",
      "reviewRating": {
        "@type": "Rating",
        "ratingValue": "4",
        "bestRating": "5"
      },
      "author": {
        "@type": "Person",
        "name": "Fred Benson"
      }
    },
    "aggregateRating": {
      "@type": "AggregateRating",
      "ratingValue": "4.4",
      "reviewCount": "89"
    },
    "offers": {
      "@type": "Offer",
      "url": "https://example.com/anvil",
      "priceCurrency": "USD",
      "price": "119.99",
      "priceValidUntil": "2020-11-20",
      "itemCondition": "https://schema.org/UsedCondition",
      "availability": "https://schema.org/InStock"
    }
  }
  </script>
</head>
<body>
</body>

</html>

Eric Notarianni 09 Sep 2022, 16:25

and i think they put
“description”: “Sleeker than ACME’s Classic Anvil, the Executive Anvil is perfect for the business traveler looking for something to drop from a height.”,

  "sku": "0446310786",
  "mpn": "925872",
  "brand": {
    "@type": "Brand",
    "name": "ACME"

they put “brand” in the type !!!

also for me is missing this, i think it is normal because i don’t display the price if user is not connected

“offers”: {

      "@type": "Offer",
      "url": "https://example.com/anvil",
      "priceCurrency": "USD",
      "price": "119.99",
      "priceValidUntil": "2020-11-20",
      "itemCondition": "https://schema.org/UsedCondition",
      "availability": "https://schema.org/InStock"
    }

also missing this
“review”: {

      "@type": "Review",
      "reviewRating": {
        "@type": "Rating",
        "ratingValue": "4",
        "bestRating": "5"
      },
      "author": {
        "@type": "Person",
        "name": "Fred Benson"
      }
    },
    "aggregateRating": {
      "@type": "AggregateRating",
      "ratingValue": "4.4",
      "reviewCount": "89"
    },
    "offers": {
      "@type": "Offer",
      "url": "https://example.com/anvil",
      "priceCurrency": "USD",
      "price": "119.99",
      "priceValidUntil": "2020-11-20",
      "itemCondition": "https://schema.org/UsedCondition",
      "availability": "https://schema.org/InStock"
    }

i think that you have reason as you say

Need to clarify.
Do you want to change “@type“: “Thing” to “@type“: “Brand”?

this is what i need in first, the others case i can’t have solution , i think for “offers”, “review”, ou “aggregateRating” type

Eric Notarianni 09 Sep 2022, 17:08

yes change “thing” by “brand” please

Fred 09 Sep 2022, 21:25

You can easily do that yourself.
- open the file

/themes/alysum/templates/_partials/microdata/product-jsonld.tpl

- find and change the line

"@type": "Thing",
Eric Notarianni 13 Sep 2022, 16:10

Thanks a lot fred ! have a nice day

Fred 13 Sep 2022, 17:09

You are welcome!