currency showing inr in google

#532342
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Thank you for contacting Rank Math about incorrect currency showing up in SERPs.

    I checked Google snippet Rich Results and it’s showing the price currency as PKR. https://search.google.com/test/rich-results/result/r%2Fproduct?id=0j4n0HvFLkBHo2Bg0DJHpQ
    It’s only in SERP which is showing incorrect currency.

    Would you please add these bit of code in functions.php

    function isBot(&$botname = ''){
    $bots = array(
    'rambler','googlebot','aport','yahoo','msnbot','turtle','mail.ru','omsktele',
    'yetibot','picsearch','sape.bot','sape_context','gigabot','snapbot','alexa.com',
    'megadownload.net','askpeter.info','igde.ru','ask.com','qwartabot','yanga.co.uk',
    'scoutjet','similarpages','oozbot','shrinktheweb.com','aboutusbot','followsite.com',
    'dataparksearch','google-sitemaps','appEngine-google','feedfetcher-google',
    'liveinternet.ru','xml-sitemaps.com','agama','metadatalabs.com','h1.hrn.ru',
    'googlealert.com','seo-rus.com','yaDirectBot','yandeG','yandex',
    'yandexSomething','Copyscape.com','AdsBot-Google','domaintools.com',
    'Nigma.ru','bing.com','dotnetdotcom'
    );
    foreach($bots as $bot)
    if(stripos($_SERVER['HTTP_USER_AGENT'], $bot) !== false){
    $botname = $bot;
    return true;
    }
    return false;
    }
    add_action('wp_head', function(){
    if( isBot() ){
    if (class_exists('WOOCS')) {
    global $WOOCS;
    $WOOCS->reset_currency();
    }
    }
    });

    You can follow this article on how to add codes in theme’s functions.php : https://rankmath.com/kb/wordpress-hooks-actions-filters/#functions-php-file

    Once the pages has been recrawled, it should show correct currency in SERPs. if the issues persists, I would suggest to open a ticket with Woocommerce as well.

    Hope this helps.

    Thank you

    code added how much time will take to implement

    Hello,

    Once the code is added, please allow Google to recrawl the pages and update their meta. We don’t know how much time it will take.

    Though I’m seeing INR in SERPs from India, I have colleagues from other part of the world who are seeing PKR before the price. The image below is shared by one of my colleague and he’s PKR as the price. https://i.rankmath.com/i/Zrd37K

    So, I would suggest please allow few days for it to get updated.

    Hope this helps.

    Thank you

    How to recrawl

    Hello,

    Google has a particular crawling schedule that determines what URLs to recheck and how often to do so.

    Please go through this article to understand how you can recrawl the URL / Website.
    https://www.contentkingapp.com/academy/google-index/faq/recrawl/

    Hope this helps.

    Thank you

    i added the code most products not showing on google 🙁

    Hello,

    The code above only tells the bot to print the correct currency.

    If you believe there’s some problem with SERPs not listing the products, I would really suggest posting the question to Woocommerce forum as Rank Math is printing the correct currency in the Schema.

    Hope this helps.

    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 7 replies - 1 through 7 (of 7 total)

The ticket ‘currency showing inr in google’ is closed to new replies.