Hi
I want created multiple tpl file for module opencart, how to develop it?
Example: In module welcome, I created mutiple tpl (welcome1, welcome2...) and select it in admin and load to home
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/welcome.1tpl')){
$this->template = $this->config->get('config_template') . '/template/module/welcome1.tpl';
}else{
$this->template = 'default/template/module/welcome1.tpl';}
Thanks!
Who is online
Users browsing this forum: No registered users and 5 guests