2012-11-02 4 views
2

주문 확인 페이지에서 '이 정보를 사용하여 이메일이 전송되었습니다.'라는 메시지가 나타납니다.Prestashop - 주문 확인 페이지의 고객 이메일 표시 방법

은 내가 recievers가

'이메일은이 정보를 이메일 [email protected]로 전송 된 이메일을 보여주고 싶어요. 당신은 순서대로 고객의 전자 메일을 수신 {$customer->email}를 사용 할 수 있습니다 그 후

public function process() 
    { 
     parent::process(); 
     self::$smarty->assign(array(
      'is_guest' => self::$cookie->is_guest, 
      'HOOK_ORDER_CONFIRMATION' => Hook::orderConfirmation((int)($this->id_order)), 
      'HOOK_PAYMENT_RETURN' => Hook::paymentReturn((int)($this->id_order), (int)($this->id_module)) 
     )); 

     $order = new Order((int)($this->id_order)); //create order object 
     $customer = new Customer((int)($order->id_customer)); //create customer object 

     if (self::$cookie->is_guest) 
     { 
      self::$smarty->assign(array(
       'id_order' => $this->id_order, 
       'customer' => $customer, //assign variable 
       'id_order_formatted' => sprintf('#%06d', $this->id_order) 
      )); 
      /* If guest we clear the cookie for security reason */ 
      self::$cookie->mylogout(); 
     } 
    } 

:이 코드를 사용하면 OrderConfirmationController을 무시 필요한이

답변

0

:: 과정을() 변경

귀하의 테마의 확인.

감사합니다.

+0

Thamks. 어디서 처리 기능을 사용합니까? –

+0

OrderConfirmationController.php 파일을 override/controllers /에 넣어야합니다. 해당 파일에서 "프로세스"기능을 무시해야합니다. –