私はこれまでに一度聞いたことがあるが、その質問はスレッド内で答えを持っていないようだ。だから私は別の質問を掲示しています。OpenCart 2に2つ目の(別の)登録フォームを作成しますか?
とにかく、私はOCバージョン2.1.0.2を使用しています。私は簡単にメールアドレスとパスワードを要求する第2の顧客登録ページを作成する必要があります。 (なし他のフィールド)は
だから私は、私は、その後のpublic_html /カタログ/コントローラ/アカウント/レジスタB内のファイルを編集し、私は
- catalog/controller/account/registerb.php
- catalog/model/account/customerb.php
- template/account/registerb.tpl
にコピーされたファイルの名前を変更し、以下のファイルに
- catalog/controller/account/register.php
- catalog/model/account/customer.php
- template/account/register.tpl
をコピー.php 私の新しいファイルを指し示す
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/account/registerb.tpl')) {
$this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/account/registerb.tpl', $data));
} else {
$this->response->setOutput($this->load->view('default/template/account/registerb.tpl', $data));
}
私は新しく作成されたファイル www.fake.com/index.php?route=account/registerb 私のgoogle chromeでエラーコード500が表示され、ページが読み込まれません。
私は何が欠けていますか?