• Resolved netvest

    (@netvest)


    Hello. I have been trying to figure out why I was getting an “Invalid Currency code” for ZWL. So I switched to ZMW and everything is working perfectly. So I came to the conclusion that Zimbabwean Dollar Currency (ZWL) isn’t part of your currency codes. Are you able to add that currency code so that I avoid using a currency code from another country? (Note that I used some CSS to insert my ZWL after the ZMW but it doesn’t look okay)

    • This topic was modified 4 years, 10 months ago by netvest.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support mediawebster

    (@mediawebster)

    Hello

    The plugin works with all standard currencies – https://en.wikipedia.org/wiki/ISO_4217#Active_codes

    “Invalid Currency code” – It looks like the current payment system does not support this currency

    Thread Starter netvest

    (@netvest)

    Accoing to https://en.wikipedia.org/wiki/ISO_4217#Active_codes ZWL is an active currency code but if I add it as a currency, it shows the invalid currency error. I would like to think this means the plugin isnt picking ZWL as a valid currency even though its listed on that link

    Plugin Support mediawebster

    (@mediawebster)

    Hello

    The plugin works with all standard currencies.

    Please drop me a screenshots with this error

    Thread Starter netvest

    (@netvest)

    Please visit https://cloudvault.co.zw/sable/product/wings-5kg/ Its still in development phase and the Password to view the website is 87878.

    Select ZWL as your preferred currency and add least 2 products in the cart(I have a min amount restriction on check out for USD$15 or ZWL equivalent) then proceed to check out. Try to check out using cash on delivery method and see how it behaves.

    I have compiled screenshots of my settings and the error code, you can see it here

    NB* This error only appears when I am checking out using ZWL currency.

    Plugin Support mediawebster

    (@mediawebster)

    Hello

    But it does not depend on this plugin. It seems that the woocommerce does not support this currency and does not allow creating an order
    Try to add this code in functions.php

    		add_filter('woocommerce_currencies',function($currencies){	
    			$currencies['ZWL']="Currency name";
    			return $currencies;
    		});
    Thread Starter netvest

    (@netvest)

    Thank you, your code worked. I added that to the functions.php file in the child theme.

    Plugin Support mediawebster

    (@mediawebster)

    Hello
    Great! Welcome;)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Invalid currency code’ is closed to new replies.