我在 Opencart 中有一个自定义页面,我想将其用于广告系列,目的是让人们在该网站上注册。
我的自定义页面是http://www.autohouseexpress.com/index.php?route=custom/helloworld
现在的问题是,如何将注册表单添加到该页面?
我是否仅从registration.tpl 复制内容?
谢谢你。
我在 Opencart 中有一个自定义页面,我想将其用于广告系列,目的是让人们在该网站上注册。
我的自定义页面是http://www.autohouseexpress.com/index.php?route=custom/helloworld
现在的问题是,如何将注册表单添加到该页面?
我是否仅从registration.tpl 复制内容?
谢谢你。
<OC_ROOT>\catalog\view\theme\<YOUR_THEME_FOLDE>\template\account\register.tpl<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
<h2><?php echo $text_your_details; ?></h2>
<div class="content">
<table class="form">
....
<?php echo bla bla bla; ?>都是相关的,只需打开文件中的注册控制器<OC_ROOT>\catalog\controller\account\register.php,找到function index()@class ControllerAccountRegister并搜索那里的变量(例如,你需要复制$this->data['action'],$this->data['text_your_details']等等