_loadStartUIValues() {
    if (this._checkIfUserHasLocalData() == false) {
      // first time visitor site, thus order country select alphbetically and put china and usa as first two options in select
      this._updateCountriesForCountrySelect(["CHN", "USA", "NLD"]);
      this.importDutyPercentage = "4.2";
      this.taxPercentage = "21.0";
      this.clearanceCosts = "13.0";
      this.exchangeRate = this.exchangeRates["USD"]["exchangeRate"];

      this.symbol = "$"; // most people that order from china pay in euros
      this._updateCurrenciesForCurrencySelect(["USD", "EUR", "CNY"]);
    } else {
      const lastUSedValues = this.countriesLastUsedValues[this.lastCountryCode];

      this._updateCountriesForCountrySelect([
        this.lastCountryCode,
        "USA",
        "NLD",
      ]);
      this.importDutyPercentage = lastUSedValues.importDuties;
      this.taxPercentage = lastUSedValues.taxRate;
      this.clearanceCosts = lastUSedValues.clearanceCosts;
      this.exchangeRate = this.exchangeRates[lastUSedValues.currencyCode][
        "exchangeRate"
      ];
      this._updateCurrencySymbolByCurrencyCode(lastUSedValues.currencyCode);
      this._updateCurrenciesForCurrencySelect([
        lastUSedValues.currencyCode,
        "USD",
        "EUR",
      ]);
 
    }
  }
// load the start values of country en currency and the rest
load the start values of country en currency and the rest
load the start values of country en currency and the rest
_loadStartUIValues() {
    if (this._checkIfUserHasLocalData() == false) {
      this._updateCountriesForCountrySelect(["CHN", "USA", "NLD"]);
      this.importDutyPercentage = "4.2";
      this.taxPercentage = "21.0";
      this.clearanceCosts = "13.0";
      this.exchangeRate = this.exchangeRates["USD"]["exchangeRate"];
      this.symbol = "$"; 
      this._updateCurrenciesForCurrencySelect(["USD", "EUR", "CNY"]);
    } else {
      const lastUSedValues = this.countriesLastUsedValues[this.lastCountryCode];
      this._updateCountriesForCountrySelect([
        this.lastCountryCode,
        "USA",
        "NLD",
      ]);
      this.importDutyPercentage = lastUSedValues.importDuties;
      this.taxPercentage = lastUSedValues.taxRate;
      this.clearanceCosts = lastUSedValues.clearanceCosts;
      this.exchangeRate = this.exchangeRates[lastUSedValues.currencyCode][
        "exchangeRate"
      ];
      this._updateCurrencySymbolByCurrencyCode(lastUSedValues.currencyCode);
      this._updateCurrenciesForCurrencySelect([
        lastUSedValues.currencyCode,
        "USD",
        "EUR",
      ]);
    }
  }
_loadStartUIValues ( ) { if ( this . _checkIfUserHasLocalData ( ) == false ) { this . _updateCountriesForCountrySelect ( [ "CHN" , "USA" , "NLD" ] ) ; this . importDutyPercentage = "4.2" ; this . taxPercentage = "21.0" ; this . clearanceCosts = "13.0" ; this . exchangeRate = this . exchangeRates [ "USD" ] [ "exchangeRate" ] ; this . symbol = "$" ; this . _updateCurrenciesForCurrencySelect ( [ "USD" , "EUR" , "CNY" ] ) ; } else { const lastUSedValues = this . countriesLastUsedValues [ this . lastCountryCode ] ; this . _updateCountriesForCountrySelect ( [ this . lastCountryCode , "USA" , "NLD" , ] ) ; this . importDutyPercentage = lastUSedValues . importDuties ; this . taxPercentage = lastUSedValues . taxRate ; this . clearanceCosts = lastUSedValues . clearanceCosts ; this . exchangeRate = this . exchangeRates [ lastUSedValues . currencyCode ] [ "exchangeRate" ] ; this . _updateCurrencySymbolByCurrencyCode ( lastUSedValues . currencyCode ) ; this . _updateCurrenciesForCurrencySelect ( [ lastUSedValues . currencyCode , "USD" , "EUR" , ] ) ; } }
load the start values of country en currency and the rest
load the start values of country en currency and the rest
// first time visitor site, thus order country select alphbetically and put china and usa as first two options in select // most people that order from china pay in euros