The volume and complexity of products can significantly impact checkout performance. You may want to use specific attributes to filter which products appear in the checkout widget.
Alternative Product Filters
To achieve this, include the "products"
object in the <script>
tag and specify the filter using one of the following attributes:
CategoryID
CategoryID
Filter products by the category instead of using the dashboard settings.
Go to Products > Categories and select the desired category.
Copy the category ID.
Category ID
Paste the ID in
"categoryId"
attribute in the"products"
object.{
"apiKey": "<YOUR_API_KEY_TOKEN>",
"products": {
"categoryId": "<CATEGORY_ID_1>",
},
"features": {
"calendarFirst": {
"enabled": true
}
}
}
This allows you to specify a CalendarFirst category or switch between categories as needed.
ProductIds
ProductIds
Filter by specific products.
Go to Products > Products and open the products you want to include in the checkout.
Copy their product IDs.
Product ID
List these IDs in the
"productIds"
array in the"products"
object.{
"apiKey": "<YOUR_API_KEY_TOKEN>",
"products": {
"productIds": [
"<PRODUCT_ID_1>",
"<PRODUCT_ID_2>"
]
}
"features": {
"calendarFirst": {
"enabled": true
}
}
}
DestinationId
DestinationId
Filter products by destination.
Go to Products > Destinations and select the desired destination.
Press the EDIT DETAILS button and copy the destination ID.
Destination ID
Add the ID to the
"destinationId"
attribute in the"products"
object.{
"apiKey": "<YOUR_API_KEY_TOKEN>",
"products": {
"destinationId": "<DESTINATION_ID_1",
},
"features": {
"calendarFirst": {
"enabled": true
}
}
}
Featured
Featured
Include only products that are listed in a featured category.
π NOTE
Make sure the featured category is assigned to the calendar-first web checkout.
Category with Featured Products
Add the "featured": true
attribute in the "products"
object.
{
"apiKey": "<YOUR_API_KEY_TOKEN>",
"products": {
"featured": "true",
},
"features": {
"calendarFirst": {
"enabled": true
}
}
}
This ensures that only products assigned to categories with the 'Featured' box checked will be listed.