-
Hi,
Brand and gtin in schema are not recognized on product page. How to get it recognized?
Best, Chris
-
Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
Could you please share the affected URL so we can check?
Meanwhile, you can check these links to fix the Brand and GTIN for your products:
https://rankmath.com/kb/either-offers-review-or-aggregaterating-should-be-specified/#brand-missing
https://rankmath.com/kb/gtin-mpn-woocommerce/Looking forward to helping you.
Thank you.
Hi,
Regarding brand it says for the free version “Replace “Rank Math” text with your actual brand name and run your website through the Google Structured Data Testing Tool again”.
Does this mean replacing Rank Math with the attribute name I use for brands; or does it mean the actual brand name I want to use.. in that case it wouldn’t help me because I have several brands.
Regarding the Adding GTIN, ISBN & MPN Schema to WooCommerce Products Using Rank Math.. I understand I must have a pro version to get it read by search engines?
Hello,
In regards to your query regarding displaying the Brand Name of your Products, if you are using the free version of Rank Math, then in the below code, you can replace “Rank Math” with the actual brand name.
/** * Filter to add custom Brand for WooCommerce Products. */ add_filter('rank_math/snippet/rich_snippet_product_entity', function( $entity ) { $entity['brand'] = 'Rank Math'; //Replace Rank Math with actual Brand Name return $entity; } );
Using the above code, you’ll be able to set a single brand name for all your products.
If you want you set a specific brand name for each of your products, then instead of adding a static string in the filter code, you can return your product’s brand by getting its meta value. You can follow this guide for that: https://developer.wordpress.org/reference/functions/get_post_meta/
Or, if your brand is based on taxonomy, you may refer to this guide as well: https://stackoverflow.com/questions/56276674/how-to-get-the-brand-name-of-product-in-woocommerce
Further, you can also upgrade to Rank Math PRO and that would give you the option to choose a brand for your product from different parameters like Product Type, Product Visibility, Product Tags, or Product Categories.
You can refer to this knowledge base guide for more information on this – https://rankmath.com/kb/woocommerce-custom-brand-schema/
If you want to add GTIN, ISBN, or MPN to your WooCommerce products using the free version of Rank Math, then you’ll have to use the following filter and edit to your liking and fetch the GTIN from your application:
add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) { // Create the functionality to add the GTIN here return $entity; });
You can also use this plugin to add GTIN, ISBN, or MPN to your WooCommerce products – https://wordpress.org/plugins/woo-add-gtin/
Hope this helps.
Looking forward to helping you.
Thank 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.
The ticket ‘Brand and gtin in schema are not recognized. How to get it recognized?’ is closed to new replies.