Answer the question
In order to leave comments, you need to log in
Separate template for opencart text page?
Hello)
The question is most likely stupid, but still do not judge the beginner.
How to make a separate page, for example "Shipping and payment" and link it to a separate template.
Maybe there are some free modules?
help me please)
Answer the question
In order to leave comments, you need to log in
See controller information/information
There look for lines like:
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/information/information.tpl')) {
$this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/information/information.tpl', $data));
} else {
$this->response->setOutput($this->load->view('default/template/information/information.tpl', $data));
}
if ($information_id == {id нужной статьи}) {
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/information/information.tpl')) {
$this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/information/{новое название шаблона}.tpl', $data));
} else {
$this->response->setOutput($this->load->view('default/template/information/{новое название шаблона}.tpl', $data));
}
} else {
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/information/information.tpl')) {
$this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/information/information.tpl', $data));
} else {
$this->response->setOutput($this->load->view('default/template/information/information.tpl', $data));
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question