Product page on brands block I created pages for brands that I sell on my shop. Each product is associated with a brand taxonomy term. I created a view block that displays pages of brands. The block is displayed throughout the store and displays the entire list of brands. How to display only those brands related to product pages?

I know we need to use contextual filters, but I do not know how to configure.
You can do this with the following:


Create a new View to display the Taxonomy Terms for Brand

In the Views UI, add a new Relationship Taxonomy term: Content with term, and uncheck "require this relationship".
Add a new Contextual filter : Content: Nid and choose the just-created relationship as the relationship. Provide default value > Content ID From URL under When the filter value is NOT available.