Answer the question
In order to leave comments, you need to log in
How to get the name of an OpenCart template?
I want to make a dynamic url for css in OpenCart.
Example:
Instead
<link href="catalog/view/theme/default/stylesheet/stylesheet.css" rel="stylesheet">
<link href="catalog/view/theme/<?php echo $templateurl; ?>/stylesheet/stylesheet.css" rel="stylesheet">
Answer the question
In order to leave comments, you need to log in
Where exactly do you need it and why?
In the general case, in the corresponding controller, you need to insert the code somewhere before
$this->data['templateurl'] = $this->config->get('config_template');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question