new SmartCollection(shopify)
Creates a SmartCollection instance.
Parameters:
Name | Type | Description |
---|---|---|
shopify |
Shopify | Reference to the Shopify instance |
Methods
order(id, params) → {Promise}
Sets the ordering type and/or the manual order of products in a smart
collection.
Parameters:
Name | Type | Description |
---|---|---|
id |
Number | Smart collection ID |
params |
Object | Ordering parameters |
Returns:
Promise that resolves with the result
- Type
- Promise
products(id, params) → {Promise}
Retrieves a list of products in a smart collection.
Parameters:
Name | Type | Description |
---|---|---|
id |
Number | Smart collection ID |
params |
Object | Query parameters |
Returns:
Promise that resolves with the result
- Type
- Promise