php - Prestashop 1.7 don't see my template file in module

Solution:
You need to call setTemplate() function as shown below:
class SupercheckoutFcontModuleFrontController extends ModuleFrontController
{
public function initContent()
{
parent::initContent();
$this->setTemplate('module:supercheckout/views/templates/front/order_detail.tpl');
}
}
The order_detail.tpl file should contain the following code:
{extends file=$layout}
{block name='content'}
YOUR_HTML_CONTENT_HERE
{/block}
Answer
Solution:
After some times and some helps, I found the solution.
Firstly, you need to indicate you template like @ventura show in her answer:
$this->setTemplate('module:supercheckout/views/templates/front/order_detail.tpl');
Secondly, to include you template in layout page, you need to
extend
thepage
template like this:{extends file='page.tpl'} {block name="page_content"} "trigger" {/block}
Answer
Solution:
Maybe int this way
$this->setTemplate('module:supercheckout/views/templates/front/order_detail.tpl');
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: a non-numeric value encountered in
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.