M
M
mauscode2019-06-20 19:23:20
opencart
mauscode, 2019-06-20 19:23:20

Display only in a specific OpenCart category?

Hello! Need help. I don't understand PHP very well.
I need one function to work only on one specific category and its subcategories.
This can be done somehow through if else by specifying the category id by setting a condition. Please tell me how to make this function work only for 1 category and its subcategory.
I hope I explained clearly. I thank you in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Pershin, 2019-06-20
@mauscode

Making conditions for specific categories is bad practice. It will be better for another category to define a different pattern. There is such a free module that can do this without crutches: https://opencartforum.com/files/file/1986-personal...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question