Skip to content
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

Don't show login banner if no tickets exist. #1403

Open
wants to merge 2 commits into
base: production
Choose a base branch
from

Conversation

StevenDufresne
Copy link
Contributor

We currently show the "Login" banner regardless of whether the camps are selling tickets. This is particularly problematic for past events.

Looking at WordCamp Asia 2024, you see:

Screenshot 2024-10-21 at 10 22 27 AM

This PR makes it so we only show the banner when tickets are for sale.

Future considerations

In the case where the WordCamp hasn't been completed and new tickets will be going on sale, we could provide a banner to suggest users create an account ahead of time. I don't think that will be a compelling call to action without a useful feature in return like maybe "Create an account to be notified when tickets are back on sale".

I'll also follow up with another PR that changes that ticket-for-sale message.

@StevenDufresne StevenDufresne changed the title Don\'t show login banner if no tickets exist. Don't show login banner if no tickets exist. Oct 21, 2024
@@ -121,7 +121,7 @@ public function ticket_form_message() {
}

// Warn users that they will need to login to purchase a ticket
if ( ! is_user_logged_in() ) {
if ( $camptix->has_tickets_available() && ! is_user_logged_in() ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should probably check the status of the WordCamp as well, as an event can end with tickets still available.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, I guess it could rely on #1404

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants