Skip to content

getProducer(int producer_id)

The getProducer method is used to get a Producer object that represents producer in the storefront.

Input parameters

producer_id

int Numeric identifier of the producer.

Returned value

The Producer object.

Example

source
{% set producer = ObjectApi.getProducer(producer_id) %}
{{ producer.name }}
output
Example producer