Date-range availability
Availability computed per unit across a period rather than as a stock count, including the turnaround between two hires.
Dcey (dcey.com.tr) sells rental, not stock. The storefront is a Next.js application over Magento GraphQL, built so that date ranges, availability and returns live inside the transaction rather than as fields attached beside it.
Magento to GraphQL to Next.js, with the rental rules expressed once — in the commerce layer, where the order also lives.
Availability computed per unit across a period rather than as a stock count, including the turnaround between two hires.
Daily, weekly and longer tiers computed against the selected range, so the price the storefront shows is the price the order carries.
A Next.js front end reading Magento over GraphQL, with custom schema where the default one has no concept of a rental period.
The return is part of the same record as the hire, so a unit becomes available again because the system closed the transaction, not because someone remembered.
Standard e-commerce assumes an item leaves once. Rental assumes it comes back — and everything downstream changes.
Adding to cart without a date range means availability cannot be checked at the moment it matters.
One unit can be free next week and booked this week; a single number cannot express that.
When the storefront and the backend each implement rental logic, they eventually disagree in production.
The date picker is the primary interface, so it cannot be a page reload away from the catalogue.
The same availability question at property scale, across many operators.
Read the case study →The same platform under classic retail load, with ERP integration behind it.
Read the case study →Because the date picker is the product. The storefront needs to re-price and re-check availability as the customer moves the range, which is a poor fit for full page loads — and a good reason to separate the front end while keeping the rental rules in the commerce layer.
Yes. The pattern — availability by period, pricing on the range, one place that owns the rules — is not Magento-specific. Magento earns its place when the catalogue, customer groups and order model are already carrying weight.
Tell me what you are trying to build, automate or scale. You get a straight answer on fit within a day — and a name to call if it is not me.