Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
You need to edit the following filter to fetch the EAN value from the database for each product and update the Schema accordingly:
add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
return $entity;
});
Don’t hesitate to get in touch if you have any other questions.
Hello, thank you for your answer,
How and where to include the code please?
With this modification the EAN code will be recognized as a value in the google rich snippet test?
Hello,
This filter needs to be included with one of the options explained here: https://rankmath.com/kb/wordpress-hooks-actions-filters/
Please note that you would need to edit the filter further to fetch the values from the EAN from each product and add them to the Schema markup.
Don’t hesitate to get in touch if you have any other questions.
Why doesn’t Rank math have this option automatically?
I mean all ecommerce stores in Europe need EAN code, and that this code need to be recognized in google rich snippet test.
Can you help me to set it up on my store?
Thank you for your time
Hello,
We have this option in the PRO plugin but in the Free version, this needs to be included with the filter we mentioned before.
Here’s an article on how to add this with the PRO version: https://rankmath.com/kb/gtin-mpn-woocommerce/
Don’t hesitate to get in touch if you have any other questions.
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.