saya lagi build theme framework untuk Open cart 1.4.8b
ada beberapa hal saya mau nanyani. mohon penerangannya..
saya mengetahui bawa di \controller\product\category.php dan beberapa file php yg mengontrol loadnya tpl itu ke template default. apakah bisa itu dibuat atau detect ke nama theme?
ini contoh codenya.
Code: Select all
$this->template = $this->config->get('config_template') . '/template/product/category.tpl';
} else {
$this->template = default/template/product/category.tpl';
}
Code: Select all
$this->template = $this->config->get('config_template') . '/template/product/category.tpl';
} else {
$this->template = 'whatever_theme_name/template/product/category.tpl';
}