The collection object

The collection object has the following attributes:

collection.all_products_count

Returns the total number of products in a collection, even when the collection is filtered.

For example, if a collection has 24 products in total, then the following input would lead to the following output:

collection.all_tags

Returns a list of all product tags in a collection, even when the collection is filtered. A maximum of 1,000 tags can be returned.

collection.all_types

Returns a list of all product types in a collection.

For example, if a collection contained products of type Accessories, Chairs, and Shoes, then the following input would lead to the following output:

collection.all_vendors

Returns a list of all product vendors in a collection.

For example, if a collection contained products from Shopify, Shirt Company, and Montezuma vendors, then the following input would lead to the following output:

collection.current_type

You can query for products of a certain type at the /collections/types URL with a query parameter in the format of ?q=[type], where [type] is your desired product type. Fo