Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Google Search Console - Product Warnings
Author « Topic »  

RJB
Ecommerce Template Expert

United Kingdom
780 Posts

Posted - 10/19/2021 :  13:20:46  
I just noticed that Google Search Console is showing that none of my products are valid. All products have recently been flagged with the warning 'Invalid object type for field "brand"'. This is in addition to previous warnings on many products stating 'Missing field "aggregateRating"' and 'Missing field "review"'. Should I be concerned about these warnings? and is there a fix the make the products valid?

Richard

Vince
Administrator

42488 Posts

Posted - 10/19/2021 :  13:41:58  
The review and aggregateRating warnings are just because the product hasn't been reviewed yet. The "Brand" warning might be worth taking a look at but it would help if you could post the markup you have for that. But in general the warnings are just warnings and I don't think they affect anything.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

John M
Advanced Member

457 Posts

Posted - 10/19/2021 :  15:27:33  
Hi Vince,

I added a brand function to incproddetail.php

function pddbrand(){
global $brand,$brandschemaidentifier,$showbrand,$rs;
if((@$brand!='' || $GLOBALS['hascustomlayout'])) print '<div class="detailbrand" itemscope itemtype="https://schema.org/Brand">' . ($showbrand!=''?'<span class="prodbrandlabel detailbrandlabel">' . 'Brand:' . '</span> ':'') . ($GLOBALS['noschemamarkup']?'':'<span itemprop="' . $GLOBALS['brandschemaidentifier'] . '">') . $brand . ($GLOBALS['noschemamarkup']?'':'</span>') . '</div>';
}

elseif($layoutoption=='brand') pddbrand();


I then added brand to product detail layout in the includes file:

$detailpagelayout="navigation,productname,productimage,discounts,productid,sreviews,sku,brand,options,contentregion4,instock,price,discountprice,currency,quantity,checkoutbutton,previousnext,socialmedia,description,catcontentregion,reviews,searchwords";

$brandschemaidentifier="brand:";
$showbrand="none";
$brand="Your Brand";


This passed the google validation check and the warnings went away.

You can then choose using css to display:

div.detailbrand{display: inline-block;}

or not display:

div.detailbrand{display: none;}

It would be nice if you could tidy this up and include this feature to your standard release.

John



Edited by - John M on 10/19/2021 15:33:37

ITZAP
Ecommerce Template Guru

Australia
1010 Posts

Posted - 10/20/2021 :  19:13:34  
Google's confusion regarding product "Brand" and "Manufacturer" itemprop fields has been discussed before. See the Suggestion Forum post here >>

Gary
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000