M
M
Muvka2018-10-01 12:02:33
opencart
Muvka, 2018-10-01 12:02:33

Is there a way to get all information about the current page?

Tell me, is there an analogue of get_queried_object () from Wordpress in Opencart? For example, to find out in which category I am now.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zoozag, 2018-10-04
@zoozag

Looked in 2.3 by default is not present.
You can in the category controller before
add
Then the $category_id variable will be available to you in the category view

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question