title: Prestashop 1.7 module : Need to get "Country" and "State" names, "Products" and "Order message"
body: <p>I am developing a module, it gets <em>order details</em> when order statut is changed to <em>&quot;shipped&quot;</em> by admin, to post them to a third party application with api. I am using Prestashop <strong>V 1.7.7.0.</strong></p>
  <p>I still need to get <strong>&quot;country&quot;</strong> and <strong>&quot;state&quot; names</strong>, <strong>&quot;products&quot;</strong> and <strong>&quot;order message&quot;</strong>. How can i do that please?</p>
  <p>Also, the module can't be installed in prestashop. Is my code right?</p>
  <p><strong>Need help please. Thanks</strong></p>
  <pre><code>public function hookActionOrderStatusPostUpdate($params)
      {
          if($params['newOrderStatus']-&gt;id == 13)
          {
              $order = new Order((int)$params['id_order']);
              $address = new Address((int)$order-&gt;id_address_delivery);
              $customer = new Customer((int)($address-&gt;id_customer));
              $country = new Country((int)($address-&gt;id_country));
              $state = new Country((int)($address-&gt;id_state));
              
              $tel_cl = $address-&gt;phone;
              $name_lastname_cl = $address-&gt;lastname . ' ' . $address-&gt;firstname;
              $country_cl = **Not yet**;
              $state_cl = **Not yet**;
              $adress_cl = $address-&gt;address1 . ' ' . $address-&gt;address2;
              $tel_2_cl = $address-&gt;phone_mobile
              $products = **Not yet**;
              $quantity = &quot;1&quot;
              $cod = $order-&gt;total_paid
              $note = **Not yet(order message)**;
  
              $Url_str = 'http://example.com/api/set_parcel_post.php?id=123&amp;tel_cl='.$tel_cl.'&amp;name_lastname_cl='.$name_lastname_cl.'&amp;country_cl='.$country_cl.'&amp;state_cl='.$state_cl.'&amp;address_cl='.$address_cl.'&amp;tel_2_cl='.$tel_2_cl.'&amp;products='.$products.'&amp;cod='.$cod.'&amp;Quantity='.$Quantity.'&amp;note='.$note;
  
      $json = file_get_contents($Url_str);
      $result = json_decode($json);
          }
      }
  </code></pre>