Products by Manufacturer

This explains how to create a page which lists products from a manufacturer. In concept, it works very similar to displaying products from a category.

First, create a page using the CMS action: shop:manufacturer

An example URL for this manufacturers page is: /manufacturer/:urlName@/:page?

Here's an example of the code you could use to display products from a manufacturer:

<div class="row">
  <div class="content twelve columns">
    <div class="row">
      <div class="product-list twelve columns"><code class="language-twig"><div class="product-list twelve columns">
        {% if not manufacturer %}
          <h2>Manufacturer not found</h2>
          <p>We are sorry, the requested manufacturer was not found, here's a list of them:</p>
          {% for man in manufacturers %}
            <a href="/manufacturer/{{ man.url_name }}">{{ man.name }}</a>
          {% endfor %}
        {% else %}
          <div class="row">
          {{ 
            partial('shop-product-list', {
              'products': products,
              'empty_text': 'There are no products for this manufacturer.'
            }) 
          }} 
          </div>
        {% endif %}
      </div>
    </div>
  </div>
</div>