collection

collection object only contain specific collection's object. The collection object has the following attributes:

collection.title

Returns the title of the collection.

collection.sort_by

Returns the sort order of the collection.

collection.product_count

Returns the number of products in a collection.

collection.handle

Returns the collection's handle.

collection.products

Returns the number of products in a collection. More info ›

collection.paginate

Returns the paginate object of the collection. More info ›

collection.id

Returns the unique ID of the collection.

collection.url

Returns the relative URL of the collection.

collection.description

Returns the description of the collection.

collection.filters

Returns an array of the storefront filters available for the collection.

collection.default_sort_by

Returns the collection's default sort order.

collection.page

Returns the current page number of the collection's paginated products.

icon-accounticon-add-newicon-add-storeicon-appicon-appleicon-archiveicon-arrowdownicon-ascicon-bookicon-cancelicon-cart-addonicon-checkouticon-cherryicon-collectionicon-comfirmicon-confirmicon-couponicon-creditsicon-currencyicon-dashboardicon-discounticon-disintegrateicon-domainicon-dscicon-duplicateicon-editicon-emailicon-exclamation-triangleicon-exporticon-eyeicon-eye-slashicon-fullscreenicon-fullscreen-closeicon-generalicon-gifticon-gridicon-hddicon-helpicon-importicon-infoicon-integrationicon-invoiceicon-likeicon-listicon-locationicon-logouticon-new-tabicon-not-secureicon-optionicon-ordericon-outline-arrowdownicon-pageicon-paymenticon-plusicon-posicon-pricingicon-printericon-producticon-product-sumicon-product-sum-xicon-redirecticon-reporticon-reseticon-searchicon-secureicon-settingicon-shippingicon-staricon-storeicon-switch-storeicon-tagicon-taxesicon-templateicon-themeicon-tickicon-trashicon-unarchiveicon-uploadicon-user-tagicon-usersicon-weighticon-wholesale