Answer the question
In order to leave comments, you need to log in
How to include the styles of the OpenCart module?
Good time of the day to everyone I
lifted the module from the content to the header
and brought it out. but for some reason the styles does not connect
the styles connection inside the catalog\controller\module\new_category_menu.php
<?php
class ControllerModuleNewCategoryMenu extends Controller {
public function index() {
$this->load->language('module/new_category_menu');
$this->document->addStyle('catalog/view/javascript/newcategory/new_category_menu.css');
$data['heading_title'] = $this->language->get('heading_title');
if (isset($this->request->get['path'])) {
$parts = explode('_', (string)$this->request->get['path']);
} else {
$parts = array();
}
Answer the question
In order to leave comments, you need to log in
1) Styles must be included before rendering the header, make sure to do so.
2) Check if paths are correct
3) File cache
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question