title: Context::getContext() how to use in Prestashop Bankwire module
body: <p>I have some problem with getting delivery country on bankwire order step.
  I try in <code>modules/bankwire/bankwire.php</code> <code>function __construct()</code> with <code>Context::getContext();</code> get country name like this:</p>
  
  <pre><code>$context = Context::getContext();
  $this-&gt;context-&gt;smarty-&gt;assign('country_name', $context-&gt;country-&gt;name[1]);
  </code></pre>
  
  <p>and nothing. But in Cart.php it works fine with:</p>
  
  <pre><code>$context = Context::getContext();
  if ($context-&gt;country-&gt;name[1] == 'Germany') {}
  </code></pre>
  
  <p>Also I try to get country name in same <code>modules/bankwire/bankwire.php</code>  like this:</p>
  
  <pre><code>$context = Context::getContext();
  $delivery = new Address($context-&gt;cart-&gt;id_address_delivery);
  $this-&gt;context-&gt;smarty-&gt;assign('country_name', $delivery-&gt;country);
  </code></pre>
  
  <p>And get nothing too. But in <code>ParentOrderController.php</code> it works with:</p>
  
  <pre><code>$address = new Address($this-&gt;context-&gt;cart-&gt;id_address_delivery);
  $this-&gt;context-&gt;smarty-&gt;assign('country_name', $address-&gt;country);
  </code></pre>
  
  <p>Please can you tell me how can I get country name in bankwire and how can I use Context::getContext()?</p>
  
  <p>Thanks</p>