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
Forum Search
Google Site Search
 All Forums
 General
 Search Engines & Marketing
 Google Merchant listings: Invalid enum value
Next Page
Author « Topic »
Page: of 2

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 09/17/2022 :  18:25:49  
If you look in your Google Search Console, notice the menu category labelled 'Shopping'. Under that see two sub-categories:

> Product snippets which we are all familiar with, and
> Merchant listings which is NEW as from Tuesday, 13 September 2022. Read the Google Blog Post here =>

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Now when you run a Product webpage URL (with standard ECT microdata snippets) through the Google Rich Results Test Tool, the 'Detected structured data' appears in two categories:

> Product snippets, 1 valid item detected, the usual non-critical issues, all good
> Merchant listings, 1 invalid item detected, groan

The 1 critical issue is: offers ... Invalid enum value in field 'itemCondition'

<meta itemprop="itemCondition" itemscope itemtype="http://schema.org/OfferItemCondition" content="http://schema.org/NewCondition" />

NOTE: That HTML code only appears when you enter this parameter in includes.php: (Yes, it can be omitted.)

$setschemacondition=TRUE; // Rich Snippet for Product item condition is set to "NewCondition".
// $schemaitemcondition="UsedCondition"; // OVERRIDE options are DamagedCondition, NewCondition, RefurbishedCondition, UsedCondition

==> So WHY would itemprop "itemCondition" pass as Valid in Product snippets but Invalid in Merchant listings

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

I went to the Google Search Community and grizzled: https://support.google.com/webmasters/thread/179656054

The answer given suggests the structured data was found on hidden content. The solution suggested is "This markup can (and should) be presented in conjunction with text that is visible to the user."

So Vince, if we had another element named "availability" to display on the Product webpage like ...

$detailpagelayout="productimage, productname, navigation, dateadded, sku, manufacturerlink, availability, reviewstarslarge, socialmedia, discounts, listprice, quantitypricing, options, price, addtocart, description, reviews, previousnext";

... that would / should fix it. And perhaps a way to select the Item Condition in Product Admin. Yes, what a pain, I agree.

I suppose a clean result in Merchant listings snippets is important? Do you think it is necessary to include "Item Condition" at all? Other Ecommerce Templates users might comment?

Gary

Edited by - ITZAP on 09/17/2022 18:52:58

midvalleydrifter001
Ecommerce Template Expert

USA
934 Posts

Posted - 09/17/2022 :  19:06:18  
That is weird...

I just tested a few of my product pages and they all come back with valid:

Product snippets
Merchant listings
Review snippets

No critical issues of any kind

Patrick

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 09/17/2022 :  19:24:38  
I see that Patrick, but you are using ...

<!-- ECT Product Schema Markup Generator v1.0 - by DLSS -->
<!-- JSON-LD Structured Data -->


Gary

midvalleydrifter001
Ecommerce Template Expert

USA
934 Posts

Posted - 09/17/2022 :  19:27:02  
Hey Gary,

Yes... I forgot I was using that.

Hopefully Vince can fix the stock ECT version.

Hope all is well with you.

Patrick

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 09/17/2022 :  19:51:12  
I am fine thanks Patrick. One question for you.
Curious to know if you are able to select the ItemCondition: NewCondition, UsedCondition, DamagedCondition, RefurbishedCondition
Or is every Product on your website advertised as NewCondition ?

Gary

Edited by - ITZAP on 09/17/2022 19:51:54

midvalleydrifter001
Ecommerce Template Expert

USA
934 Posts

Posted - 09/17/2022 :  19:55:02  
Everything is NewCondition as that is all we offer

DLSS
ECT Moderator

Canada
3957 Posts

Posted - 09/18/2022 :  08:42:38  
Hey Gary,

If used in conjunction with the Google Merchant Center feed I offer, the condition is changeable in admin and is represented in the schema.

Mike

Mike Beebe
President,
DataLinks Software Solutions
www.dlss.ca

Rate Me Here

ASP and PHP mods - www.dlss.ca/products.asp
A Tremendous Home - www.ATremendousHome.com
Buy Cigars Online www.CigarSmokeShop.net

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 09/18/2022 :  18:41:30  
Hi Mike,

Interesting to know that your Google Merchant Center AddOn permits the itemCondition to be changed in the ECT Admin Panel, thank you.

However, testing product pages on Patrick's Badman Bullets website, I must comment that your JSON-LD entry "itemCondition" : "http://schema.org/NewCondition" appears only in the Source Code.
Nowhere on the webpage itself does it tell the customer "Item Condition: New".

So that leaves me bewildered as to why Google Merchant Listings interpret your JSON-LD snippet as Valid, but the standard ECT microdata snippet as Invalid.

I say that is Bulltish !

Gary

DLSS
ECT Moderator

Canada
3957 Posts

Posted - 09/19/2022 :  08:33:51  
From how it reads, it sounds like if you are using microdata with HTML tags, the data must be both tagged and visible to the user. Not marked up for Google only.

Just my interpretation.

Mike

Mike Beebe
President,
DataLinks Software Solutions
www.dlss.ca

Rate Me Here

ASP and PHP mods - www.dlss.ca/products.asp
A Tremendous Home - www.ATremendousHome.com
Buy Cigars Online www.CigarSmokeShop.net

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 09/20/2022 :  19:29:00  

<div itemscope itemtype="https://schema.org/Product">
<div class="detailname"><h1 itemprop="name">OZPIG Smoker</h1></div>
<div itemprop="offers" itemscope itemtype="https://schema.org/Offer">
<meta itemprop="priceCurrency" content="AUD"> <span class="price" id="pricediv0" itemprop="price" content="279.95">$279.95</span>
<meta itemprop="availability" content="http://schema.org/InStock" />
<p itemprop="itemCondition" itemscope itemtype="https://schema.org/OfferItemCondition">
Condition: <b itemscope itemtype="http://schema.org/NewCondition">New</b></p>

</div>
</div>

There is a Microdata snippet for "itemCondition" with text visible on the webpage to say "Condition: New". Run that <code> through the Google Rich Results Test Tool and the result given is:
> Product snippets, Valid
> Merchant listings, Invalid enum value in field 'itemCondition'

Therefore, Microdata being "visible to user" makes no difference.

In Merchant listings, the Google Testing Tool says the enum value "NewCondition" is Invalid. But this page https://schema.org/NewCondition confirms that the Testing Tool is wrong. But Google will not fess up to it.

For now, I have removed this $parameter from the includes.php configuration file:

// $setschemacondition=TRUE; // Rich Snippet for Product item condition is set to "NewCondition".

Now no snippet for itemprop="itemCondition" appears in the code and we get a clean Valid result in both Product snippets and Merchant listings.

Check again in 1 or 2 months and bet that Google will have fixed that false report.

Gary

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 09/20/2022 :  20:06:15  
Scratch that, I finally found the SOLUTION ...

<div itemscope itemtype="https://schema.org/Product">
<div class="detailname"><h1 itemprop="name">OZPIG Smoker</h1></div>
<link itemprop="image" href="https://example.com/photos/16x9/photo.jpg" />
<div itemprop="offers" itemscope itemtype="https://schema.org/Offer">
<meta itemprop="priceCurrency" content="AUD"> <span class="price" id="pricediv0" itemprop="price" content="279.95">$279.95</span>
<meta itemprop="availability" content="http://schema.org/InStock" />
<meta itemprop="itemCondition" content="https://schema.org/NewCondition" />
</div>
</div>

Run that <code> through the Google Rich Results Test Tool and the result given is:
> Product snippets, Valid
> Merchant listings, Valid

Therefore Vince, if you could kindly change the Microdata snippet inserted for:

$setschemacondition=TRUE;

From:
<meta itemprop="itemCondition" itemscope itemtype="http://schema.org/OfferItemCondition" content="http://schema.org/NewCondition" />

delete the red bit and just have:
<meta itemprop="itemCondition" content="http://schema.org/NewCondition" />

That will fix this issue

Gary

DLSS
ECT Moderator

Canada
3957 Posts

Posted - 09/21/2022 :  07:16:43  
Good find

Mike Beebe
President,
DataLinks Software Solutions
www.dlss.ca

Rate Me Here

ASP and PHP mods - www.dlss.ca/products.asp
A Tremendous Home - www.ATremendousHome.com
Buy Cigars Online www.CigarSmokeShop.net

Vince
Administrator

42785 Posts

Posted - 09/21/2022 :  08:10:57  
Well thanks very much once again, Gary . . . and that is now changed in the updater.

Vince

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

RJB
Ecommerce Template Expert

United Kingdom
790 Posts

Posted - 09/25/2022 :  10:19:34  
Hi, I seem to be getting the merchant listing error referred to in this post.. I just updated to 7.4.10 hoping this would fix it, but my pages are still producing this error. Is the fix included in this version or do I need to update to 7.5.3?

Richard.

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 09/25/2022 :  12:06:55  
Yes Richard, you need to update to the latest v7.5.3 advanced.

Gary

Vince
Administrator

42785 Posts

Posted - 09/25/2022 :  12:25:25  
Hi Richard
If you are not in a position to update to v7.5 now then please let me know and I'll get this fix into the v7.4 updater.

Vince

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

RJB
Ecommerce Template Expert

United Kingdom
790 Posts

Posted - 09/25/2022 :  12:25:28  
Thanks Gary ..I'll do that.

Richard.

RJB
Ecommerce Template Expert

United Kingdom
790 Posts

Posted - 09/26/2022 :  17:13:49  
Thanks Vince, but no need as I have now updated to 7.5. All seems to be working ok..

Richard.

pauld
Advanced Member

USA
486 Posts

Posted - 01/04/2023 :  16:14:49  
Vince, might you be able to provide a patch for this that we can apply to our v7.4.11 store?

We considered updating to 7.5 but it looks like some of our content would break.

Thanks in advance for any help you can give.

- Paul D.


Edited by - pauld on 01/04/2023 16:15:25

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 01/04/2023 :  19:43:04  
Hi Paul, all you need to do is ...

In vsadmin\inc folder, open incproddetail.php
Search for the one line containing: itemprop="itemCondition"
In that line delete the bit of code which says: itemscope itemtype="http://schema.org/OfferItemCondition"

So now that line will just say:

if(@$GLOBALS['setschemacondition']&&!$GLOBALS['noschemamarkup']) print '<meta itemprop="itemCondition" content="http://schema.org/'.(@$GLOBALS['schemaitemcondition']!=''?$GLOBALS['schemaitemcondition']:'NewCondition').'" />';

Save incproddetail.php and upload to server.

Gary

pauld
Advanced Member

USA
486 Posts

Posted - 01/05/2023 :  04:12:57  
Thanks for this, Gary.

Fingers crossed that the Invalid enum value in field "itemCondition" (in "offers") Merchant listing errors go away now that we've edited and uploaded incproddetail.php and Google re-indexes those pages.

This is much appreciated

Edited by - pauld on 01/05/2023 04:14:17
Page: of 2 « Topic »  
Next Page
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.05 seconds. Snitz Forums 2000