Schema for products with no GTIN, MPN, or brand

#65329
  • Resolved Domivan Llc
    Rank Math free

    Hello,
    thank you for this great SEO plugin.

    I have an issue in Search Console: No global identifier provided (e.g., gtin, mpn, isbn)

    I could use Product GTIN (EAN, UPC, ISBN) for WooCommerce plugin. However I even sell customized products what do not have any GTIN, EAN or UPC.

    I these cases Google asks: If your product is new (which you submit through the condition attribute) and it doesn’t have assigned product identifiers (GTIN,…) that meet the requirements below, then submit identifier_exists with a value of no or false.

    Here is a link https://support.google.com/merchants/answer/6324478?hl=en

    Is there any chance how to get <g:identifier_exists>no</g:identifier_exists> for the products without any GTIN?

    Thank you in advance.

Viewing 4 replies - 16 through 19 (of 19 total)
  • Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Thank you for the follow up.

    To fix SKU and availability issue I added a sample SKU to this product(https://www.smallpartsorganizer.com/stackable-storage-bins/bolt-bin/) as shown below:

    I also added the code below in your child theme functions.php which fixed the Global identifier issue:

    
    /**
    * Filter to add GTIN to Variable Products.
    *
    * @param array $entity Snippet Data
    * @return array
    */
    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
       if(is_product()){
         $product = new WC_Product( get_the_ID() );
         if( $product->is_type( 'simple' ) ){
           $gtin_value = get_post_meta($product->get_id(),'_wpm_gtin_code', true);
           $entity['gtin8'] = $gtin_value;
         }elseif($product->is_type( 'variable' )){
           $variation = new WC_Product_Variation(get_the_ID());
           $gtin_value = get_post_meta($variation->get_id(),'_wpm_gtin_code', true);
           $entity['gtin8'] = $gtin_value;
         }
       }
       
       return $entity;
    });
    

    Please acquire some reviews and ratings to get rid of the aggregateRating and review warnings.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hi Michael,
    thank you so much. It looks that is working now!!!

    Hello,

    We are super happy that this resolved your issue.

    Please let us know if we can mark this as resolved. Do not hesitate to ask if there are any further question(s)

    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.

Viewing 4 replies - 16 through 19 (of 19 total)

The ticket ‘Schema for products with no GTIN, MPN, or brand’ is closed to new replies.