2016-05-18 12 views

答えて

1

この機能(/catalog/controller/account/register.php)は、リダイレクト(より正確には$this->response->redirect($this->url->link('account/success'));)を担当します。どのページが「ありがとうございました」ページであることを確認する必要があります(今はわかりません)。

if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { 
      $customer_id = $this->model_account_customer->addCustomer($this->request->post); 

      // Clear any previous login attempts for unregistered accounts. 
      $this->model_account_customer->deleteLoginAttempts($this->request->post['email']); 

      $this->customer->login($this->request->post['email'], $this->request->post['password']); 

      unset($this->session->data['guest']); 

      // Add to activity log 
      $this->load->model('account/activity'); 

      $activity_data = array(
       'customer_id' => $customer_id, 
       'name'  => $this->request->post['firstname'] . ' ' . $this->request->post['lastname'] 
      ); 

      $this->model_account_activity->addActivity('register', $activity_data); 

      $this->response->redirect($this->url->link('account/success')); 
     } 
+0

ありがとうございました。しかし、どのように私はそれをリダイレクトすることができます私はあなたのページに感謝私はあなたのページリンクURL:www.exmpl.com/thank-you-page – user1990

+0

あなたはこれを書こうとしましたか?成功?それは働いていますか?もしそうでなければ、おそらくその良いオプションではないかもしれないが、行全体を以下のように置き換えてみてください: 'header( 'location:www.exmpl.com/thank-you-pag');'。それはうまくいくかもしれませんが、私は今それをテストすることができないので、わかりません。 –

+0

opencart v2.0でカスタムページを作成する方法を教えてください。私はこのリンクの助けを借りて作成しようとしています:http://code.tutsplus.com/tutorials/create-a-custom-page-in-opencart--cms-22054それは正しいですか? – user1990

関連する問題