• Resolved Tommo

    (@5dt)


    I’m getting the “invalid ISO 4217 currency code” error in Google Search Console on all my pages where selling products. The currency I have is “GEL” (Georgian Lari).

    I contacted support, and they said to input “GEL” under Settings -> General -> Currency options.

    But there is no “currency code” option in that settings section. Only currency selection, which is already set to Georgian Lari.

    See screenshot: https://www.dropbox.com/s/68zlulu57xddj3x/Screenshot%202024-02-14%20at%2011.18.11.png?dl=0

    How do I input the currency code manually? And/or fix the invalid ISO issue another way?

    Thanks ??

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • If you’re comfortable with adding custom code to your site, you can use a function to explicitly declare “GEL” as the currency code. Here’s an example for WooCommerce that you can add to your theme’s functions.php file:

    add_filter('woocommerce_currencies', 'add_custom_currency');
    add_filter('woocommerce_currency_symbol', 'add_custom_currency_symbol', 10, 2);
    
    function add_custom_currency($currencies) {
        $currencies['GEL'] = __('Georgian Lari', 'woocommerce');
        return $currencies;
    }
    
    function add_custom_currency_symbol($currency_symbol, $currency) {
        switch ($currency) {
            case 'GEL': $currency_symbol = '?'; break; // Add your currency symbol if needed
        }
        return $currency_symbol;
    }
    
    Thread Starter Tommo

    (@5dt)

    Thanks! I can certainly do that if there is no other option ?? Thanks!

    Guessing that this will override any settings in the the dashboard, so if needing to change currency in the future I’d have to delete this code?

    Thanks again!

    Thread Starter Tommo

    (@5dt)

    Thanks again. This did not appear to fix it.

    I resubmitted and tested “live URL” on Google console, no change.

    Image of the issue on Google console: https://capture.dropbox.com/dzQtcmRhbkaXbL29

    Maybe there is some other problem going on here? Let me know what you think. Thanks!

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @5dt,

    WooCommerce, by default, uses the ISO 3166 standard. You can see that here for Georgia: https://www.iso.org/obp/ui/#iso:code:3166:GE

    So, if you set Georgian Lari in WooCommerce > Settings > Currency, there shouldn’t be any issues.

    I hope this provides some clarity. Please let us know if you have any other questions!

    Thread Starter Tommo

    (@5dt)

    Thanks for the response. That location is exactly where it is, and has always been, set to lari: https://www.dropbox.com/s/68zlulu57xddj3x/Screenshot%202024-02-14%20at%2011.18.11.png?dl=0

    And it does not solve the Google console issue https://capture.dropbox.com/dzQtcmRhbkaXbL29

    So I’m still stumped as to why this does not work. Any ideas?

    Thanks.

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @5dt,

    I tried reproducing the error, but everything seems to be in order. The issue appears to be arising from either a plugin you’re using or your current theme.

    In addition, I noticed something unusual while checking your site’s structural data. Instead of displaying the ISO format (like “USD”, “GBP”, “EUR”), it’s showing an icon. This isn’t the expected behavior and suggests that a plugin or your current theme is altering this behavior.

    Can you please temporarily disable all other plugins except WooCommerce, switch to a default theme like Store theme, and test again? More info: https://woo.com/document/how-to-test-for-conflicts/

    Let us know how that goes for you. Looking forward to hearing from you!

    Thread Starter Tommo

    (@5dt)

    Thanks! We found the issue. A setting in the theme plugin that asks for the currency – and it did not state if it wanted the symbol or 3 digit code, and the symbol was present. Now everything is working as expected.

    Thanks for your help!

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @5dt,

    I’m glad we were able to help! I will mark this thread as resolved. Should you have further inquiries, kindly create a new topic here.

    Meanwhile, if it isn’t too much to ask for – would you mind leaving us a review here?

    It only takes a couple of minutes but helps us tremendously. It would mean so much to us and would go a really long way.

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘invalid ISO 4217 currency code – GEL’ is closed to new replies.