Handle assigment for order delivery flow

This commit is contained in:
Almira Krdzic
2018-11-02 10:30:25 +01:00
parent 4b0fc6c61d
commit cdbefc7ef0
25 changed files with 1131 additions and 1047 deletions

View File

@@ -62,6 +62,19 @@ class Wiaas_Countries {
return '';
}
public static function get_country_code_by_currency($currency) {
foreach (self::$available_countries as $country) {
if ($country['currency'] === $currency) {
return $country['code'];
}
}
return null;
}
/**
* Registers product taxonomy for avaiable countries
*/