Collection Sort Order
Specifies the sort order for the products in the collection.
Anchor to Valid valuesValid values
- Anchor to ALPHA_ASCALPHA_
ASC Alphabetically, in ascending order (A - Z).
- Anchor to ALPHA_DESCALPHA_
DESC Alphabetically, in descending order (Z - A).
- Anchor to BEST_SELLINGBEST_
SELLING By best-selling products.
- Anchor to CREATEDCREATED
By date created, in ascending order (oldest - newest).
- Anchor to CREATED_DESCCREATED_
DESC By date created, in descending order (newest - oldest).
- Anchor to MANUALMANUAL
In the order set manually by the merchant.
- Anchor to PRICE_ASCPRICE_
ASC By price, in ascending order (lowest - highest).
- Anchor to PRICE_DESCPRICE_
DESC By price, in descending order (highest - lowest).
Anchor to FieldsFields
- •OBJECT
The
Collection
object represents a group of products that merchants can organize to make their stores easier to browse and help customers find related products. Collections serve as the primary way to categorize and display products across online stores, sales channels, and marketing campaigns.There are two types of collections:
- Custom (manual) collections: You specify the products to include in a collection.
- Smart (automated) collections: You define rules, and products matching those rules are automatically included in the collection.
The
Collection
object provides information to:- Organize products by category, season, or promotion.
- Automate product grouping using rules (for example, by tag, type, or price).
- Configure product sorting and display order (for example, alphabetical, best-selling, price, or manual).
- Manage collection visibility and publication across sales channels.
- Add rich descriptions, images, and metadata to enhance discovery.
NoteCollections can be displayed in a store with Shopify's theme system through Liquid templates and can be customized with template suffixes for unique layouts. They also support advanced features like translated content, resource feedback, and contextual publication for location-based catalogs.
Learn about using metafields with smart collections.
- •INPUT OBJECT
The input fields required to create a collection.