Assistance with Brand Taxonomy Schema Issues in WooCommerce

#973526
  • Resolved Hindi stack
    Rank Math free

    Hello Support Team,

    I am running a WooCommerce store and have set the brand name of products using WooCommerce’s default brand taxonomy. However, I recently received a critical error from Google stating:

    “Top critical issues: Either ‘offers’, ‘review’, or ‘aggregateRating’ should be specified.”

    Upon reviewing the brand taxonomy schema, I noticed that all products associated with a particular brand are automatically included in the schema structure of the brand taxonomy page. However, I am unable to find an option to modify the schema structure or add the ‘offers’ type to resolve this issue.

    I would like to include the ‘offers’ type in the schema as follows:

    {
    "@context": "https://schema.org",
    "@type": "Product",
    "name": {Product_Name},
    "offers": {
    "@type": "Offer",
    "price": {Product_Sale_Price},
    "priceCurrency": "INR",
    "availability": "https://schema.org/InStock"
    }
    }

    Additionally, I have noticed that custom field variables are not displaying correctly in the schema. Instead of showing the actual value, they appear as placeholders (e.g., %customfield(__product_version)% instead of 1.2.1).

    Could you please clarify how the schema is generated by default on the brand taxonomy page and provide guidance on how to customize it to meet Google’s requirements? Also, any insights on resolving the custom field variable issue would be greatly appreciated.

    Looking forward to your support.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    We apologize for the issue you are facing with the brand taxonomy schema in your WooCommerce store. Thank you for raising this concern.

    To address the critical error from Google regarding the missing ‘offers’, you need to ensure that the WooCommerce Product Schema is correctly set up for your products. Here’s how you can do that:

    1. Set the Schema Type: Navigate to WordPress Dashboard → Rank Math SEO → Titles & Meta → Products and ensure that the Schema Type is set to WooCommerce Product. This will help Rank Math automatically include the necessary fields like ‘offers’ in the schema markup.
      Set the Schema Type to WooCommerce Product

    2. Check Product Details: Make sure that each product has the required details filled out, including price and availability. The ‘offers’ section in the schema is generated based on these product details.

    3. Customizing Schema: If you want to customize the schema further, you may need to use a filter or hook in your theme’s functions.php file or a custom plugin to modify the output of the schema markup. Unfortunately, Rank Math does not provide a direct option to modify the schema structure for brand taxonomy pages through the dashboard.

    4. Custom Field Variables: Regarding the issue with custom field variables displaying as placeholders, ensure that you are using the correct syntax for custom fields in your theme or plugin. If they are not resolving correctly, it might be due to how they are being called in your template files. You may need to check if the custom fields are properly registered and accessible.

    If you continue to experience issues or need more specific guidance on customizing the schema, please reply to this ticket with your site URL, and a human agent from our support team will assist you further.

    We appreciate your patience and look forward to helping you resolve these issues!

    For reference, here is the current schema being generated:


    {"@context":"https://schema.org","@graph":[{"@type":"Place","@id":"https://example.com/#place","address":{"@type":"PostalAddress","addressRegion":"Mumbai","postalCode":"000000","addressCountry":"IN"}},{"@type":"Organization","@id":"https://example.com/#organization","name":"Example Store","url":"https://example.com","sameAs":["https://www.facebook.com/example"],"email":"s****@e**********","address":{"@type":"PostalAddress","addressRegion":"Mumbai","postalCode":"000000","addressCountry":"IN"},"logo":{"@type":"ImageObject","@id":"https://example.com/#logo","url":"https://example.com/wp-content/uploads/example-Store.png","contentUrl":"https://example.com/wp-content/uploads/example-Store.png","caption":"example Store","inLanguage":"en-US","width":"500","height":"500"},"description":"this is a example description","legalName":"example","location":{"@id":"https://example.com/#place"}},{"@type":"WebSite","@id":"https://example.com/#website","url":"https://example.com","name":"example Store","alternateName":"Example Store, Example Store, Example Name","publisher":{"@id":"https://example.com/#organization"},"inLanguage":"en-US"},{"@type":"BreadcrumbList","@id":"https://example.com/brand/test1/#breadcrumb","itemListElement":[{"@type":"ListItem","position":"1","item":{"@id":"https://example.com","name":"Home"}},{"@type":"ListItem","position":"2","item":{"@id":"https://example.com/brand/test1/","name":"Test 1"}}]},{"@type":"CollectionPage","@id":"https://example.com/brand/test1/#webpage","url":"https://example.com/brand/test1/","name":"Test 1 | example Store","isPartOf":{"@id":"https://example.com/#website"},"inLanguage":"en-US","breadcrumb":{"@id":"https://example.com/brand/test1/#breadcrumb"}},{"@context":"https://schema.org/","@graph":[{"@type":"Product","name":"Product1 %customfield(__product_version)% | example Store","url":"https://example.com/product/product1-link","@id":"https://example.com/product/product1-link","description":"Download Product1 Software version %customfield(__product_version)%"}]}]}

    Hello,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    This issue usually stems from a Product schema that has been automatically added to a product archive page or your case, a taxonomy page. Please access this specific taxonomy’s Titles & Meta settings in our plugin and make sure to enable the option: “Remove Snippet Data”.

    As for the variables you see in the schema structure, you are likely using the code validation. Some of the schema properties in the code validation are not parsed completely so we recommend you test the live product page in Rich Result Test instead since Rank Math will always be able to generate the schema on the frontend.

    If the issue persists, please share the affected page URL here so we can take a closer look at it.

    Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Assistance with Brand Taxonomy Schema Issues in WooCommerce’ is closed to new replies.