• Jim

    (@smokingblends)


    Guys,

    We have three warnings on everyone of our product pages. Anyone can click the link below and see the results of the structured data test.

    1. offerCount – The offerCount field is recommended. Please provide a value if available.

    This is just the number of items you have in stock. Woocommerce has a field for this. Why is it not connected to offerCount?

    2. brand – The brand field is recommended. Please provide a value if available.

    I understand you have a paid plugin that does this but this field is now being required by the current schema. It should be in the cart. All of the shopping carts, I know of, provide a brand field.

    3. This Product is missing a global identifier (e.g. isbn, mpn or gtin8). Please see documentation for valid identifiers.

    Woocommerce serves a world market. Most ( over 50% of items ) have a upc code. If you list products on Amazon they require one. If your product does not have one, they will provide one for you.

    Please make these simple fields available on your cart so we can comply with the current schema.

    This is so important that we are more than willing to do this ourselves but need some help. We have a functioning child theme.

    If we could get some help here, create the exact code that will provide these fields and how to install the code, it would be very helpful to other people also.

    • This topic was modified 6 years ago by Jim.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 27 total)
  • abossola

    (@abossola)

    I second this

    leighboys

    (@leighboys)

    same issue

    Plugin Support Ross V. a11n

    (@rossviviano)

    Automattic Happiness Engineer

    Hi there,

    None of these messages are coming from WooCommerce core, actually, and are coming from another plugin running on the site. Your best bet would be to disable plugins one by one until those messages go away. Once you find that out, you’ll want to get in touch with the developers of that plugin for support.

    Thread Starter Jim

    (@smokingblends)

    @rossviviano

    That is not correct.

    1. You do not have a field for Brand. How could someone using woocommerce not get a warning for the field? How could that be from a plugin?

    2. offerCount – You are not running this into the stock count fields so it is getting a warning when checked with googles structured data testing tool.

    3. This Product is missing a global identifier (e.g. isbn, mpn or gtin8). Please see documentation for valid identifiers.

    Woocommerce does not have a field that allows to you put the GIN. That is why you get a warning. How could any of these warning be related to another plugin??

    Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hello all schema experts,

    We include SKU for all products. If you’re not seeing a SKU in your markup, perhaps you have other plugins generating schema instead of WooCommerce.

    The other warnings are expected if your product does not include data for a brand or lacks reviews. WooCommerce will not make up values for these fields, and empty values still produce a warning.

    You can use Yoast to assign some values: https://yoast.com/wordpress/plugins/yoast-woocommerce-seo/

    @johndcoy

    Interesting, how can we include data for a brand and we have no field for input? I still don’t see this fixed.

    It’s really silly that WooCommerce does not include a brand field by default.

    This seems to work for us….

    add_filter('woocommerce_structured_data_product', function($markup, $product) {
    	$markup['brand'] = 'Kats Botanicals';
    	return $markup;
    }, 9, 2);
    Thread Starter Jim

    (@smokingblends)

    @cowboycode

    It is hard to believable that they are not getting this cart in full compliance with the latest schema.

    All of these fields should be included.

    1. Brand
    2. OfferCount – Very important if your product is listed in Google Shopping.
    3. Global identifier (e.g. isbn, mpn or gtin8).

    If you sell on Ebay, Amazon or anywhere else, they will have all of these fields.

    No errors, just warnings. Why not get the fields added so there are no more warnings?

    Are there any other major shopping carts that do not include these fields out of the box?

    • This reply was modified 5 years, 7 months ago by Jim.

    Awesome thank you for the code.

    @smokingblends

    You can use the same snippet above to add a Global identifier using Null as the value. Its not ideal but it works and removes the warnings.

    add_filter('woocommerce_structured_data_product', function($markup, $product) {
    	$markup['gtin13'] = 'null';
    	$markup['brand'] = 'Kats Botanicals';
    	return $markup;
    }, 9, 2);
    Thread Starter Jim

    (@smokingblends)

    Hey @abossola

    How are you adding the code? Are you using the plugin?

    Thanks for posting this code. Allot of people can benefit form it.

    Just add it to the functions.php file.

    Yes, using the latest version of WordPress and WooCom.

    Thread Starter Jim

    (@smokingblends)

    @abossola

    Which functions.php file? For the Theme or Word Press. Could you use the child theme?

    Thanks Again

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘woocommerce is not compliant with the current schema.’ is closed to new replies.