Skip to content

getProducers(int items_per_page)

The getProducers method is used to get the ProducersList object that represents a list of all producers in the storefront.

Input parameters

items_per_page

int Number of items in a page of internal paginator. Parameter is optional. Default value is 100.

Returned value

The ProducersList object.

Example

source
{% set producers = ObjectApi.getProducers(3) %}
{% for producer in producers %}
    <p> {{ producer.name }} </p><br>
{% endfor %}
output
<p> Barilla </p>
<p> Milka </p>
<p> Disney </p>