title: PrestaShop: tax calculation wrong because of wrong country id
body: <p>I have a problem by creating an XML Export for product data.<br />
  The PrestaShop Version I'm using is 1.7.3.1</p>
  <p><strong>our setup:</strong><br />
  One Site xyz.com where we have different routes for our countries .com/de and .com/at and .com/it</p>
  <p><strong>our need:</strong><br />
  We need a XML File which all products and the writh prices with the right tax calcualation (it's different in de/at and it).
  As I call the script via the browser and I'm not logged in.
  So I have no country id and the geotagging say I'm from Austria and get for ALL products the tax rate from Austria - Unfortunately it's wrong.</p>
  <p><strong>what I tried</strong> (one of many things I tried)<br />
  When I call the script for Italy I set the global context country to IT.</p>
  <pre class="lang-php prettyprint-override"><code>switch ( $shop ) {
      case &quot;DE&quot;:
          /* .... */
          break;
      case &quot;AT&quot;:
          /* .... */
          break;
      case &quot;IT&quot;:
          $id_shop = 6;
          $id_lang = 4;
          $replace = '.com/it/';
          $country = Country::getCountriesByZoneId(10, 4);
          Shop::setContext(Shop::CONTEXT_SHOP, 6);
          Context::getContext()-&gt;shop-&gt;id = 6;
          Context::getContext()-&gt;country = $country;
          break;
  }
  </code></pre>
  <p>but the tax calculation is wrong and I get always the same price for each country.</p>
  <p>Do you have ideas, how I could achieve the different tax rates?</p>
  <p>Thanks!</p>