prenom = $order->customer->first_name; $this->nom = $order->customer->last_name; $this->facturation_adresse = $order->address->address; $this->facturation_cp = $order->address->zipcode; $this->facturation_ville = $order->address->city; $this->livraison_adresse = $order->delivery_address->address; $this->livraison_cp = $order->delivery_address->zipcode; $this->livraison_ville = $order->delivery_address->city; $this->societe = $order->customer->company; $this->email = $order->customer->email; $this->numero_commande = $order->ref; $this->date_commande = $order->created_at; } }