这是register.tpl文件的代码。该变量被调用,这个$ action变量称为account / login.php文件,如何更改$ action变量的链接。
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
<h2><?php echo $text_your_details; ?></h2>
<div class="content">
<table class="form">
<tr>
<td><span class="required">*</span> <?php echo $entry_firstname; ?></td>
<td><input type="text" name="firstname" value="<?php echo $firstname; ?>" />
<?php if ($error_firstname) { ?>
<span class="error"><?php echo $error_firstname; ?></span>
<?php } ?></td>
</tr>
<tr>
<td><span class="required">*</span> <?php echo $entry_lastname; ?></td>
<td><input type="text" name="lastname" value="<?php echo $lastname; ?>" />
<?php if ($error_lastname) { ?>
<span class="error"><?php echo $error_lastname; ?></span>
<?php } ?></td>
</tr>
<tr>
<td><span class="required">*</span> <?php echo $entry_email; ?></td>
<td><input type="text" name="email" value="<?php echo $email; ?>" />
<?php if ($error_email) { ?>
<span class="error"><?php echo $error_email; ?></span>
<?php } ?></td>
</tr>
<tr>
<td><span class="required">*</span> <?php echo $entry_telephone; ?></td>
<td><input type="text" name="telephone" value="<?php echo $telephone; ?>" />
<?php if ($error_telephone) { ?>
<span class="error"><?php echo $error_telephone; ?></span>
<?php } ?></td>
</tr>
答案 0 :(得分:0)
尝试在控制器(register.php)中搜索$ data [&#39; action&#39;]变量。就在那里。
答案 1 :(得分:0)
解决方案如下。但请解释为什么要改变它,也许有人可以提供一些咨询或更好的解决方案......
文件在
中/opencart/catalog/controller/account/register.php
该行是
$data['action'] = $this->url->link('account/register', '', 'SSL');
如果您愿意,可以在此处更改。我会建议谨慎。示例是将行替换为:
// #CORECHANGE - Find later for upgrading
//$data['action'] = $this->url->link('account/register', '', 'SSL');
$newRegisterActionURL = "account/register/epos";
$data['action'] = $this->url->link($newRegisterActionURL, '', 'SSL');
答案 2 :(得分:0)
opencart项目中寄存器文件的html代码路径为:
/public_html/catalog/view/theme/megashop/template/account/register.tpl