๐๏ธPresales
Presale Feature Guide
Overview
What are Presales?
Working with Presale Products
Identifying Presale Products
const presaleProducts = await liquidCommerce.catalog.search({
filters: [{
key: ENUM_FILTER_KEYS.PRESALE,
values: ENUM_BINARY_FILTER.YES
}],
loc: {
address: {
one: '123 Main St',
city: 'New York',
state: 'NY',
zip: '10001'
}
}
});
// Extract presale information from products
presaleProducts.products.forEach(product => {
product.sizes.forEach(size => {
const presale = size.attributes?.presale;
if (presale?.isActive) {
console.log({
product: product.name,
availableFrom: presale.canPurchaseOn,
estimatedShipping: presale.estimatedShipBy,
status: 'Active Presale'
});
}
});
});Cart Response Structure
Adding Presale Items to Cart
Basic Implementation
Handling Presale Events
Checkout Process
Preparing Checkout
Time-Sensitive Checkout
Best Practices
1. Clear User Communication
2. Cart Separation
3. Error Recovery
Common Integration Patterns
Pattern 1: Presale Product Page
Pattern 2: Presale Collection Page
Limitations and Considerations
System Limitations
User Experience Considerations
Summary
Last updated

