-
Notifications
You must be signed in to change notification settings - Fork 943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add availability support #892
Conversation
@@ -298,6 +299,12 @@ export class CheckoutPageComponent extends Component { | |||
<FormattedMessage id="CheckoutPage.providerStripeAccountMissingError" /> | |||
</p> | |||
); | |||
} else if (isTransactionInitiateBookingTimeNotAvailableError(speculateTransactionError)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
initiateTransactionError
needs some handling too. Otherwise ~parallel checkouts aka different persons pressing of book buttons at the same time might fail miserably.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check initiateOrderError
Add handling for the tx time already booked error to checkout page.
Fixes a bug in daily booking where selected end date styles are not cleared when updating start date with a date that is before the old start date and a booked date can be found between those old and new start dates.
Enable ending booking on the day another booking starts.
|
||
if (selectingEndDate) { | ||
// if end date is being selected first, block the day after a | ||
// booked date as a booking can end on the day the following booking starts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// if end date is being selected first, block the day after a booked date
// (as a booking can end on the day the following booking starts)
Notice!
Merging this change to your Flex client project will enable fetching available time slots for listing page and blocking unavailable ones in the date range picker. In order to properly take this feature in to use, an update is required to the transaction process.So if you are planning to merge this change into your Flex client, contact the Sharetribe Flex support at [email protected] in order to get your process updated accordingly.About the PR
Adds support for time slots fetched for a listing.
Fetching and showing availability in listing page is enabled by default. In order to disable availability set thefetchAvailableTimeSlots
variable tofalse
in src/config.js.EDIT: See #902 for enabling availability in your marketplace