Answer the question
In order to leave comments, you need to log in
Product filtering in Yii2. How?
Good day people, I myself am not a programmer, help me in any way you can)))
Tell me how to filter products on Yii2 so that when a specific parameter is activated, it does not move to the filter header from the general list. For example, in stores, as a rule, a check mark is placed next to the parameter and that's it, but in Yii2 this parameter disappears, and appears at the very top as activated. How to make it stay in the general list of filters?
Answer the question
In order to leave comments, you need to log in
Yii is not a CMS where you can give instructions like "go there, click here and it's done" - each project has its own implementation and its own subtleties. The solution to your problem depends solely on how and what exactly is done in your project. Therefore, it is better to hire a programmer who specializes in Yii to implement this task, rather than trying to do it yourself without the appropriate knowledge.
In yii, everything happens the way the developer intended. We clearly do not know how your project was made there. As Maxim Fedorov said , this is not a CMS. Apparently someone wrote a CMS based on yii.
To understand, I’ll give an analogy, you ask: “I was made a car out of iron, the door is not very comfortable there, but in a BMW it’s convenient, how to make the same out of iron.” Iron is a material for building machines. Yii framework for creating cms. So you have a site on some cms, which is written in yii. It can be written (as a machine is made) in 1,000,000 ways. Therefore, to answer your question, you need to see the code of your cms. You have to see how it's done.
As a rule, this is not a very big problem, and most likely even a layout issue (html + css + js) of a week for yii and php. But you can't do it on your own. Contact the developer, he will solve your problem.
If you are interested in how all this is written, in particular filters on yii2 - here is a video: yii2 filters (You are unlikely to understand what it is about, but it may become clearer how it works in general terms)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question