Answer the question
In order to leave comments, you need to log in
How to make a separate header for category pages?
Hello. Opencart version 2.3. It is necessary to swap the blocks in the header on the category pages. Did it like this:
if ($_SERVER['REQUEST_URI']=="/shiny" || $_SERVER['REQUEST_URI']=="/index.php?route=product/category") {
Answer the question
In order to leave comments, you need to log in
Do a similar check in your header controller:
$data['is_category'] = false;
if (isset($this->request->get['route']) && $this->request->get['route'] == 'product/category') {
$data['is_category'] = true;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question