Product in search console

#66090
  • Resolved Thibaut Fontaine
    Rank Math pro

    Hello,

    All my products are not declared to the search console.How can I declare them to the search console?

    Also, there are missing fields: https://ibb.co/gMvL1by

    It can be that we generate a URL for each variation as you can see here:
    https://lerepaireduchef.fr/bar Barbecue-kamado/

    However it would be possible to add the missing info by adding the info of the default variation on the URL declared with the search console.

    Here is how the information for our google shopping feed is mapped, maybe it will help you answer me: https://ibb.co/6tbVwc

    thanks in advance

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

    You seem to ave marked this as resolved. Do you still require our assistance?

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hi michael for GTIN and Price we are good 😉

    But I open new ticket for this error.
    I have an error critic in this page, it’s come frome rankmath because when i desactivate rankmath, i have no more error :https://lerepaireduchef.fr/garantie/

    AH01071: Got error ‘PHP message: PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘rewrite_search_slug_pagination’ not found or invalid function name in /var/www/vhosts/lerepaireduchef.fr/httpdocs/wp-includes/class-wp-hook.php on line 287PHP message: PHP Fatal error: Uncaught Error: Call to a member function get_price() on null in /var/www/vhosts/lerepaireduchef.fr/httpdocs/wp-content/plugins/woocommerce/includes/wc-product-functions.php:962\nStack trace:\n#0 /var/www/vhosts/lerepaireduchef.fr/httpdocs/wp-content/themes/themify-ultra-child/functions.php(327): wc_get_price_including_tax()\n#1 /var/www/vhosts/lerepaireduchef.fr/httpdocs/wp-includes/class-wp-hook.php(287): {closure}()\n#2 /var/www/vhosts/lerepaireduchef.fr/httpdocs/wp-includes/plugin.php(249): WP_Hook->apply_filters()\n#3 /var/www/vhosts/lerepaireduchef.fr/httpdocs/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(103): apply_filters_ref_array()\n#4 /var/www/vhosts/lerepaireduchef.fr/httpdocs/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-opengraph.php(173): RankMath\\OpenGraph\\OpenGraph->do_filter()\n#5 /var/www/vhosts/lerepaireduchef.fr/httpdocs/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-facebook.php(338): RankMath\\OpenGr…’

    And in my function.php I added this code yesterday for GTIN :

    // GTIN données structurées

    add_filter( ‘rank_math/snippet/rich_snippet_product_entity’, function( $entity ) {
    if ( ! is_product() ) {
    return $entity;
    }

    $product = wc_get_product( get_the_ID() );
    if ( ! $product->is_type( ‘variable’ ) ) {
    $entity[‘gtin13’] = get_post_meta( get_the_ID(), ‘hwp_var_gtin’, true );
    return $entity;
    }
    $variations = $product->get_available_variations();

    if ( ! empty( $variations ) ) {
    $entity[‘gtin13’] = get_post_meta( $variations[0][‘variation_id’], ‘hwp_var_gtin’, true );
    }

    return $entity;
    } );

    Hello,

    We are glad the first issue is resolved.

    Let’s resolve the new issue in your other ticket.

    Looking forward to helping you.

    Thank you.

Viewing 3 replies - 31 through 33 (of 33 total)

The ticket ‘Product in search console’ is closed to new replies.