Skip to content

getCollection(int collection_id)

The getCollection method is used to get a Collection object that represents collection in the storefront.

Input parameters

collection_id

int Numeric identifier of the collection.

Returned value

The Collection object.

Example

source
{% set collection = ObjectApi.getCollection(collection_id) %}
{{ collection.name }}
output
Example collection