Answer the question
In order to leave comments, you need to log in
Push a thought. How to filter by cities in a post?
There is a website with companies, each company has branches that can be in different cities. Tell me how to implement a filter by city?
What are the main problems:
- the filter should not be in the category of companies, but on the page of each company in the form of links to cities prntscr.com/gy1fsi
- after selecting a city, a new page opens with branches only in this city
example of a link to a company - /company/ 123/
link example after filtering
/company/123/moscow/
/company/123/samara/
or numeric options
/company/123/city/1/
/company/123/city/54/
Where to start? What features to use? Maybe someone came across similar solutions / plugins? I would appreciate any help, thanks!
Answer the question
In order to leave comments, you need to log in
From the url you get "moscow", and in the selection of branches you look for those branches that are tied to "moscow"
PS
As an option for displaying branches: xn--80aaej4awmhc4b2g.xn--p1ai/catalog/8664#filial
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question